Template:Ambox: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(code by User:This, that and the other to add a unique HTML ID to all article maintenance tags, per ta)
m (89 revisions imported from templatewiki:Template:Ambox)
 
(22 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{#invoke:Message box|ambox}}{{#ifeq:{{{small}}}|left|[[Category:Articles using small message boxes]]}}<noinclude>
{{#ifeq:{{{subst}}}|SUBST
|{{#if:{{{name|}}}
{{documentation}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
|{{error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
{{En-WP attribution notice|Template:Ambox}}
}}[[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}}}
|{{{text}}}
}}
}}
|{{Ambox/core
|type = {{{type|}}}
|image = {{{image|}}}
|imageright = {{{imageright|}}}
|class = {{{class|}}}
|style = {{{style|}}}
|textstyle = {{{textstyle|}}}
|text = {{{text}}}
|date = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
|{{#ifeq:{{{date|¬}}}|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
|{{{date|}}}
}}
}}
}}{{cat handler
|main={{ambox/category
|cat={{{cat|{{{category|}}}}}}
|date={{{date|}}}
|all={{{all|}}}
}}
|template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message boxes]]}}
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
|{{#ifeq:{{{doc}}}|no|
|{{documentation}}<!-- Transclude documentation on template page -->
}}
}}<noinclude>

{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 18:08, 6 September 2020

Wikipedia logo This template uses material from the Wikipedia template Template:Ambox, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).