Template:Mbox/doc: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
__NOTOC__ | __NOTOC__ | ||
== Usage == | == Usage == | ||
This | This is a metatemplate to be used to create a varitey of information message box templates. This should only be used in the '''Template''' namespace. | ||
The image used should never be larger than 45px {{x}} 45px (which is the default size). | |||
{{tj|Mbox | {{tj|Mbox | ||
| | | small: | ||
| | | color: | ||
| | | style: | ||
| | | image: | ||
| width: | |||
| | | header: | ||
| | | content: | ||
| | | note: | ||
| | | cat: | ||
| | |||
}} | }} | ||
== Parameters == | |||
{| class="wikitable" | |||
== | |- | ||
! style="width: 10%"|Parameter !! Description !! Examples | |||
|- | |||
| {{para|small}} || To use a small box || {{para|small|yes}} | |||
! | |||
|- | |- | ||
| {{ | | {{para|color}} || To change the color of the side bar || #85CBD9 | ||
|- | |- | ||
| {{ | | {{para|style}} || To alter the CSS style of the table || {{para|style|background-color:#DC1F16}} | ||
|- | |- | ||
| {{ | | {{para|image}} || A image file to be displayed on the left. Please try to always include an image. || {{para|image|Light bulb.png}} | ||
|- | |- | ||
| {{ | | {{para|width}} || The width of the image. || {{para|width|20}} | ||
|- | |- | ||
| {{ | | {{para|header}} || Title of the information || {{para|header|Current}} | ||
|- | |- | ||
| {{para|content}} || The information to be presented || {{para|content|This is a recently released CD so all the information here is subject to change or might be missing. All information should be verified before removing this banner.}} | |||
|- | |- | ||
| {{ | | {{para|note}} || This text will be smaller than the rest of the text in the message box. Can me used to point to help pages or anything else. || {{para|note|Please help expand this article.}} | ||
|- | |- | ||
| {{ | | {{para|cat}} || If the message box automatically applies a category to the page it will be written here. || {{para|cat|Recheck}} | ||
|} | |} | ||
Note: The small parameter should only be used when the message box is to be used in the section of an article page. | |||
== Currently Used Message Boxes == | |||
{{Current message boxes}} | |||
== TemplateData == | == TemplateData == | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "This is a metatemplate to be used to create a varitey of message box templates.", | |||
"params": { | "params": { | ||
" | "small": { | ||
"label": " | "label": "Small Mode", | ||
"description": " | "description": "Creates a small format message box.", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ " | "suggestedvalues": [ "yes" ], | ||
"required": false | "required": false | ||
}, | }, | ||
" | "color": { | ||
"label": " | "label": "Bar Color", | ||
"description": "The | "description": "The color of the side bar.", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ " | "suggested": true, | ||
"suggestedvalues": [ "#DC1F16", "#C0CE73", "pink", "green" ] | |||
}, | }, | ||
" | "style": { | ||
"label": " | "label": "CSS Style", | ||
"description": " | "description": "Allows for the altering of the table CSS.", | ||
"type": "string", | "type": "string", | ||
" | "example": "background-color: orange;", | ||
"required": | "required": false | ||
}, | }, | ||
"image": { | "image": { | ||
Line 91: | Line 78: | ||
"description": "You can choose a specific image instead of the default.", | "description": "You can choose a specific image instead of the default.", | ||
"type": "string", | "type": "string", | ||
"example": " | "suggested": true, | ||
"example": "Some image.png" | |||
}, | }, | ||
" | |||
"label": "Image | "width": { | ||
"description": " | "label": "Image Width", | ||
"type": " | "description": "To specify the width of the image. Must be smaller than 45px", | ||
"example": " | "type": "number", | ||
"example": "40", | |||
"required": false | "required": false | ||
}, | }, | ||
" | "header": { | ||
"label": " | "label": "Title", | ||
"description": " | "description": "Title of the information.", | ||
"type": "string", | "type": "string", | ||
"required": true | |||
"required": | |||
}, | }, | ||
" | "content": { | ||
"label": " | "label": "Content", | ||
"description": " | "description": "The information to be presented.", | ||
"type": "string", | "type": "string", | ||
"required": true | |||
"required": | |||
}, | }, | ||
" | "note": { | ||
"label": " | "label": "Small Note", | ||
"description": " | "description": "Can me used to point to help pages or anything else.", | ||
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
}, | }, | ||
" | "cat": { | ||
"label": " | "label": "Category", | ||
"description": " | "description": "To automatically apply a category to the page.", | ||
"type": "string", | "type": "string", | ||
"suggested": true, | "suggested": true, | ||
"required": false | "required": false | ||
} | } | ||
Line 149: | Line 123: | ||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Utility Templates]] | |||
}}}}</includeonly> | }}}}</includeonly> |
Revision as of 01:08, 2 July 2023
It contains usage information, categories and other content that is not part of the original template page.
|
Usage
This is a metatemplate to be used to create a varitey of information message box templates. This should only be used in the Template namespace.
The image used should never be larger than 45px × 45px (which is the default size).
Parameters
Parameter | Description | Examples |
---|---|---|
|small= |
To use a small box | |small=yes
|
|color= |
To change the color of the side bar | #85CBD9 |
|style= |
To alter the CSS style of the table | |style=background-color:#DC1F16
|
|image= |
A image file to be displayed on the left. Please try to always include an image. | |image=Light bulb.png
|
|width= |
The width of the image. | |width=20
|
|header= |
Title of the information | |header=Current
|
|content= |
The information to be presented | |content=This is a recently released CD so all the information here is subject to change or might be missing. All information should be verified before removing this banner.
|
|note= |
This text will be smaller than the rest of the text in the message box. Can me used to point to help pages or anything else. | |note=Please help expand this article.
|
|cat= |
If the message box automatically applies a category to the page it will be written here. | |cat=Recheck
|
Note: The small parameter should only be used when the message box is to be used in the section of an article page.
Currently Used Message Boxes
Template Call | Usage | Where to Put It |
---|---|---|
{{BLCD current}} | Newly released BLCD pages | Top of the page |
{{BLCD future}} | Coming soon BLCD pages | Top of the page |
{{Drama current}} | Newly released Drama CD pages | Top of the page |
{{Drama future}} | Coming soon Drama CD pages | Top of the page |
{{R18 current}} | Newly released R18 CD pages | Top of the page |
{{R18 future}} | Coming soon R18 CD pages | Top of the page |
{{Notice}} | For delivering important information | Top of the page |
{{Delete}} | To mark a page for deletion | Top of the page |
{{Section delete}} | To notify when a section header should be deleted | Under the section header |
{{Cleanup}} | To mark a page for cleanup | Top of the page |
{{Stub}} | To mark a page that needs expanding | Top of the page |
{{Section}} | To mark a section that needs expanding | Under the section header |
{{Archived}} | To mark a page to be archived | Top of the page |
TemplateData
This is a metatemplate to be used to create a varitey of message box templates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Small Mode | small | Creates a small format message box.
| String | optional |
Bar Color | color | The color of the side bar.
| String | suggested |
CSS Style | style | Allows for the altering of the table CSS.
| String | optional |
Image | image | You can choose a specific image instead of the default.
| String | suggested |
Image Width | width | To specify the width of the image. Must be smaller than 45px
| Number | optional |
Title | header | Title of the information. | String | required |
Content | content | The information to be presented. | String | required |
Small Note | note | Can me used to point to help pages or anything else. | String | optional |
Category | cat | To automatically apply a category to the page. | String | suggested |