No edit summary
No edit summary
Line 30: Line 30:
<td class="mbox-text"><div class="mbox-text-div">{{#if:{{{headline|{{{head|{{{2|}}}}}}}}}|<strong>{{{headline|{{{head|{{{1}}}}}}}}}</strong>{{#if:{{{content|{{{text|{{{body|{{{2|}}}}}}}}}}}}|<span class="mbox-tap">Tap for more</span><div class="hide-when-compact">{{{content|{{{text|{{{body|{{{2}}}}}}}}}}}}</div>}}|{{{content|{{{text|{{{body|{{{1}}}}}}}}}}}}}}</div>{{#if:{{{foot|}}}|<div class="hide-when-compact"><small>{{{foot}}}</small></div>}}</td>
<td class="mbox-text"><div class="mbox-text-div">{{#if:{{{headline|{{{head|{{{2|}}}}}}}}}|<strong>{{{headline|{{{head|{{{1}}}}}}}}}</strong>{{#if:{{{content|{{{text|{{{body|{{{2|}}}}}}}}}}}}|<span class="mbox-tap">Tap for more</span><div class="hide-when-compact">{{{content|{{{text|{{{body|{{{2}}}}}}}}}}}}</div>}}|{{{content|{{{text|{{{body|{{{1}}}}}}}}}}}}}}</div>{{#if:{{{foot|}}}|<div class="hide-when-compact"><small>{{{foot}}}</small></div>}}</td>
</tr>
</tr>
</table><templatestyles src="Mbox/styles.css" /><includeonly>{{#if:{{NAMESPACE}}||{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}}}{{#ifeq:{{NAMESPACE}}|Template|{{#ifeq:{{ROOTPAGENAME}}|Mbox||{{#ifexist:{{FULLPAGENAME}}/doc|{{Documentation}}|{{Documentation|content=
</table><templatestyles src="Mbox/styles.css" />{{#if:{{NAMESPACE}}||{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}}}<noinclude>{{Documentation}}</noinclude>
 
This template is a [[Help:Notices|notice]]. You can add it to any page to let others know something about that page.
 
{{#if:{{{category|}}}|It will also categorize pages into the [[:Category:{{{category}}}]].}}
 
== Usage ==
 
To add this notice to a page, simply edit the page and add the following wikitext:
 
<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki>
 
And that's it! Save the changes and see the notice displayed!
 
== See also ==
 
* [[Help:Notices]]
* [[Template:Mbox]]
 
[[Category:Notice templates]]
}}}}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 18:20, 9 October 2020

Page Template:Mbox/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "wikitext").

Template documentation

Create

Cookies help us deliver our services. By using our services, you agree to our use of cookies.