Template:Notice: Difference between revisions

From Leurent
Jump to navigation Jump to search
(Add Template Notice)
 
No edit summary
Line 1: Line 1:
{{Mbox
{{ambox
| name = Notice
| name = Notice
| subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
| demospace = {{{demospace|}}}
| demospace = {{{demospace|}}}
| style = {{#if:{{{style|}}} |{{#if:{{{small|}}}||margin:inherit auto;width:80%;}} {{{style}}} }}
| image = {{#if:{{{image|}}}| [[Image:{{{image}}}|40px|Notice]] }}
| subst = <includeonly>{{subst:substcheck}}</includeonly>
| type = notice
| text =
| image = {{#if:{{{image|}}} |[[File:{{{image}}}|40px|Notice]]}}
{{#if:{{{header|}}}
| <div style="text-align:center;">'''{{{header}}}'''</div>
| small = {{{small|}}}
}}{{{1|{{{text}}}}}}
| smallimage = {{#if:{{{image|}}} |[[File:{{{image}}}|30px|Notice]]}}
| small = {{{small|}}}
| imageright = {{#if:{{{imageright|}}} |{{{imageright}}} |{{#if:{{{shortcut|{{{shortcut1|}}}}}} |{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}}} }}
| textstyle = {{{textstyle|text-align: {{#if:{{{center|}}}|center|{{{align|left}}}}};}}}
| smallimage = {{#if:{{{image|}}}| [[File:{{{image}}}|30px|Notice]] }}
| text = {{#if:{{{header|{{{heading|{{{title|}}}}}}}}} |<div style="{{{headstyle|text-align: {{#if:{{{center|}}}|center|left}};}}}">'''{{{header|{{{heading|{{{title|}}}}}}}}}'''</div>}}<!--
-->{{{text|{{{content|{{{reason|{{{1}}}}}}}}}}}}
}}<noinclude>
}}<noinclude>
{{Documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 20:38, 17 August 2017

[edit] [[[:Template:Purge]]] Template documentation

Usage

<templatedata> { "params": { "1": { "label": "Text for notice", "type": "content", "required": true }, "image": {}, "header": {}, "small": {} }, "description": "Adds a notice inside a box", "format": "inline" } </templatedata>