Jump to content

Template:Tmbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Adding "nocat=true" category suppression. Templates that just used {{tmbox}} in their documentation were categorised.
switch to Lua version
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#invoke:Message box|tmbox}}<noinclude>
{{#ifeq:{{{small|}}}|yes
| {{tmbox/core
| small = yes
| type = {{{type|}}}
| image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }}
| imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }}
| style = {{{style|}}}
| class = {{{class|}}}
| textstyle = {{{textstyle|}}}
| text = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }}
}}
| {{tmbox/core
| type = {{{type|}}}
| image = {{{image|}}}
| imageright = {{{imageright|}}}
| style = {{{style|}}}
| class = {{{class|}}}
| textstyle = {{{textstyle|}}}
| text = {{{text}}}
}}
}}<!--

List all templates that use tmbox in "Category:Talk message boxes":
--><includeonly>{{#ifeq:{{NAMESPACE}}|Template
| {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}
| <!--We are on a rootpage, not a /doc or /sandbox page-->
{{#ifeq:{{{nocat|}}}|true
| <!--Don't categorise-->
| [[Category:Talk message boxes]]
}}
}}
}}</includeonly><!--

--><noinclude>

{{pp-template}}
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>
</noinclude>

Latest revision as of 12:46, 20 October 2013