Sophivorus (talk | contribs) No edit summary |
Sophivorus (talk | contribs) 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>{{#if:{{NAMESPACE}}||{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}}}< | </table><templatestyles src="Mbox/styles.css" /><includeonly>{{#if:{{NAMESPACE}}||{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}}}{{#ifeq:{{NAMESPACE}}|Template|{{#ifeq:{{ROOTPAGENAME}}|Mbox||{{Documentation|content= | ||
This template is a [[Help:Notices|notice]]. You can add it to any page to let others know something about that page. | |||
== Usage == | |||
To add this notice to a page, simply edit the page and add the following wikitext: | |||
<tt><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki></tt> | |||
And that's it! Save the changes and see the notice displayed! | |||
== See also == | |||
* [[Help:Notices]] | |||
* [[Template:Mbox]] | |||
[[Category:Notices]] | |||
}}}}}}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 15:13, 9 October 2020
Page Template:Mbox/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "wikitext").
Template documentation