Template:Ambox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
m rename class, tweak categorisation
m 1 revision imported
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#ifeq:{{{subst}}}|SUBST
{{#invoke:Message box|ambox}}{{#ifeq:{{{small}}};{{NAMESPACENUMBER}}|left;0|[[Category:Articles using small message boxes]]}}<noinclude>
|{{#if:{{{name|}}}
{{documentation}}
  |{{Error|Template {{Tlx|{{{name}}}}} has been incorrectly substituted.}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
}}[[Category:Pages with incorrectly substituted templates]]
}}{{#ifeq:{{{small}}}|left
|{{Ambox/core
  |small      = left
  |type      = {{{type|}}}
  |image      = {{#if:{{{smallimage|}}}
  |{{{smallimage}}}
  |{{{image|}}}
  }}
  |imageright = {{#if:{{{smallimageright|}}}
  |{{{smallimageright}}}
  |{{{imageright|}}}
  }}
  |class      = {{{class|}}}
  |style      = {{{style|}}}
  |textstyle  = {{{textstyle|}}}
  |text      = {{#if:{{{smalltext|}}}
  |{{{smalltext}}}
  |{{#if:{{{issue|}}}
    |{{{issue}}}
    |{{{text}}}
  }}
  }}
}}
|{{Ambox/core
  |type      = {{{type|}}}
  |image      = {{{image|}}}
  |imageright = {{{imageright|}}}
  |class      = {{{class|}}}
  |style      = {{{style|}}}
  |textstyle  = {{{textstyle|}}}
  |text      = {{{text|}}} {{{issue<includeonly>|</includeonly>}}}<span class="hide-when-compact"> {{#switch:{{{talk|¬}}}
  |¬        = <!-- No talk link used -->
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|&#32;More details and relevant discussion can be found on the [[{{TALKPAGENAME}}|talk page]].}}
  |#default = &#32;More details and relevant discussion can be found on {{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
    |[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]]
    |the [[{{TALKPAGENAME}}#{{{talk}}}|talk page]]
  }}.
  }} {{{fix<includeonly>|</includeonly>}}}</span>{{#switch:{{{date|¬}}}
  |¬        = <!-- No date used -->
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|&#32;<small>''({{CURRENTMONTHNAME}} {{CURRENTYEAR}})''</small>}}
  |#default = &#32;<small>''({{{date}}})''</small>
  }}
}}
}}{{Category handler
|main={{Ambox/category
  |cat={{{cat|{{{category|}}}}}}
  |all={{{all|}}}
  |date={{{date|}}}
}}{{Ambox/category
  |cat={{{cat2|{{{category2|}}}}}}
  |all={{{all2|}}}
  |date={{{date|}}}
}}{{Ambox/category
  |cat={{{cat3|{{{category3|}}}}}}
  |all={{{all3|}}}
  |date={{{date|}}}
}}
|template={{#switch:Template:{{{name|<noinclude>Ambox</noinclude>}}}
  |{{FULLPAGENAME}} = [[Category:Article message templates]]
  |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}}
}}
}}<noinclude>
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 20:44, 28 November 2023