Template:Mbox/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
   | header:
   | header:
   | content:
   | content:
  | cat:
}}
}}


Line 37: Line 36:
|-
|-
| {{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|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|cat}} || If the message box automatically applies a category to the page it will be written here. || {{para|cat|Recheck}}
|}
|}


Line 63: Line 60:
"type": "string",
"type": "string",
"suggested": true,
"suggested": true,
            "aliases": [ "Color" ],
"suggestedvalues": [ "#DC1F16", "#C0CE73", "pink", "green" ]
"suggestedvalues": [ "#DC1F16", "#C0CE73", "pink", "green" ]
},
},
Line 98: Line 96:
"type": "string",
"type": "string",
"required": true
"required": true
},
"cat": {
"label": "Category",
"description": "To automatically apply a category to the page.",
"type": "string",
"suggested": true,
"required": false
}
}
}
}
Line 114: Line 105:


<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:Utility templates]]
[[Category:Utility Templates]]
}}}}</includeonly>
}}}}</includeonly>

Latest revision as of 01:48, 20 August 2023

Light bulb.png }}
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).

{{Mbox
| small =
| color =
| style =
| image =
| width =
| header =
| content =
}}

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: 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.

Template parameters

ParameterDescriptionTypeStatus
Small Modesmall

Creates a small format message box.

Suggested values
yes
Stringoptional
Bar Colorcolor Color

The color of the side bar.

Suggested values
#DC1F16 #C0CE73 pink green
Stringsuggested
CSS Stylestyle

Allows for the altering of the table CSS.

Example
background-color: orange;
Stringoptional
Imageimage

You can choose a specific image instead of the default.

Example
Some image.png
Stringsuggested
Image Widthwidth

To specify the width of the image. Must be smaller than 45px

Example
40
Numberoptional
Titleheader

Title of the information.

Stringrequired
Contentcontent

The information to be presented.

Stringrequired