Template:Notice: Difference between revisions

From Leurent
Jump to navigation Jump to search
(Add Template Notice)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Mbox
{{Mbox
| name = Notice
| name = Notice
| demospace = {{{demospace|}}}
| style = {{{style|}}}
| textstyle = {{{textstyle|}}}
| style = {{#if:{{{style|}}} |{{#if:{{{small|}}}||margin:inherit auto;width:80%;}} {{{style}}} }}
| subst = <includeonly>{{subst:substcheck}}</includeonly>
| subst = <includeonly>{{subst:substcheck}}</includeonly>
| demospace = {{{demospace|}}}
| type = notice
| image = {{#if:{{{image|}}} |[[File:{{{image}}}|40px|Notice]]}}
| image = {{#if:{{{image|}}}|[[File:{{{image}}}|40px|Notice]]}}
| small = {{{small|}}}
| small = {{{small|}}}
| smallimage = {{#if:{{{image|}}} |[[File:{{{image}}}|30px|Notice]]}}
| smallimage = {{#if:{{{image|}}}|[[File:{{{image}}}|30px|Notice]]}}
| imageright = {{#if:{{{imageright|}}} |{{{imageright}}} |{{#if:{{{shortcut|{{{shortcut1|}}}}}} |{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}}} }}
| imageright = {{#if:{{{imageright|}}}|{{{imageright|}}}|{{#if:{{{shortcut|{{{shortcut1|}}}}}}|{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}} }} }} }}
| textstyle = {{{textstyle|text-align: {{#if:{{{center|}}}|center|{{{align|left}}}}};}}}
| text = {{#if:{{{header|{{{heading|}}}}}}|<div style="text-align: center">'''{{{header|{{{heading}}}}}}'''</div>}}{{{text|{{{1}}}}}}

| text = {{#if:{{{header|{{{heading|{{{title|}}}}}}}}} |<div style="{{{headstyle|text-align: {{#if:{{{center|}}}|center|left}};}}}">'''{{{header|{{{heading|{{{title|}}}}}}}}}'''</div>}}<!--
}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude>
-->{{{text|{{{content|{{{reason|{{{1}}}}}}}}}}}}
}}<noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 21:37, 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>