Template:Fmbox/doc
From Hack/Mine Wiki
(Difference between revisions)
(bgYVYc I loved your blog article.Much thanks again. Will read on...) |
m (Reverted edits by 37.233.27.142 (talk) to last revision by Frizzil) |
||
| (2 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | <noinclude>{{Documentation subpage}}</noinclude> | |
| + | <!-- PUT HERE THE DOCUMENTATION --> | ||
| + | == Parameters == | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! Parameter | ||
| + | ! Options | ||
| + | ! Notes | ||
| + | |- | ||
| + | | type | ||
| + | | warning/editnotice/system | ||
| + | |- | ||
| + | | class | ||
| + | | | ||
| + | | Additional CSS styling for the message box (pulled from another stylesheet ([[Mediawiki:Common.css]]) | ||
| + | |- | ||
| + | | style | ||
| + | | | ||
| + | | Additional CSS styling for the message box (manually declared) | ||
| + | |- | ||
| + | | image | ||
| + | | <code><nowiki>[[File:example.example|40px]]</nowiki></code> | ||
| + | | If bank, Auto detected and chosen by <code>type</code>. | ||
| + | Default images: | ||
| + | * warning: [[:File:Cmbox deletion.png]] | ||
| + | * editnotice: [[:File:Imbox notice.png]] | ||
| + | * (default)/system: [[:File:Imbox notice.png]] | ||
| + | |- | ||
| + | | textstyle | ||
| + | | | ||
| + | | CSS formatting for the displayed text | ||
| + | |- | ||
| + | | text | ||
| + | | | ||
| + | | The message to be displayed | ||
| + | |- | ||
| + | | imageright | ||
| + | | <code><nowiki>[[File:example.example|40px]]</nowiki></code> | ||
| + | | File to be shown on the right side of the message | ||
| + | |} | ||
| + | === Example messages === | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! Message type | ||
| + | ! Code | ||
| + | ! Example output | ||
| + | |- | ||
| + | | (default) | ||
| + | | <pre>{{Fmbox | ||
| + | |type = | ||
| + | |text = Example message text. | ||
| + | }}</pre> | ||
| + | | {{Fmbox |type= |text=Example message text.}} | ||
| + | |- | ||
| + | | warning | ||
| + | | | ||
| + | <pre>{{Fmbox | ||
| + | |type = warning | ||
| + | |text = Example message text. | ||
| + | }}</pre> | ||
| + | | {{Fmbox |type=warning |text=Example message text.}} | ||
| + | |- | ||
| + | | editnotice | ||
| + | | | ||
| + | <pre>{{Fmbox | ||
| + | |type = editnotice | ||
| + | |text = Example message text. | ||
| + | }}</pre> | ||
| + | | {{Fmbox |type=editnotice |text=Example message text.}} | ||
| + | |- | ||
| + | | system | ||
| + | | | ||
| + | <pre>{{Fmbox | ||
| + | |type = system | ||
| + | |text = Example message text. | ||
| + | }}</pre> | ||
| + | | {{Fmbox |type=system |text=Example message text.}} | ||
| + | |} | ||
| + | |||
| + | <includeonly> | ||
| + | <!-- PUT HERE THE CATEGORIES OF THE TEMPLATE --> | ||
| + | [[Category:Info templates|{{PAGENAME}}]] | ||
| + | </includeonly> | ||
Latest revision as of 17:24, 4 September 2014
[edit] Parameters
| Parameter | Options | Notes |
|---|---|---|
| type | warning/editnotice/system | |
| class | Additional CSS styling for the message box (pulled from another stylesheet (Mediawiki:Common.css) | |
| style | Additional CSS styling for the message box (manually declared) | |
| image | [[File:example.example|40px]]
|
If bank, Auto detected and chosen by type.
Default images:
|
| textstyle | CSS formatting for the displayed text | |
| text | The message to be displayed | |
| imageright | [[File:example.example|40px]]
|
File to be shown on the right side of the message |
[edit] Example messages
| Message type | Code | Example output | ||
|---|---|---|---|---|
| (default) | {{Fmbox
|type =
|text = Example message text.
}}
|
| ||
| warning |
{{Fmbox
|type = warning
|text = Example message text.
}}
|
| ||
| editnotice |
{{Fmbox
|type = editnotice
|text = Example message text.
}}
|
| ||
| system |
{{Fmbox
|type = system
|text = Example message text.
}}
|
|