Difference between revisions of "Template:Ambox"

From The Crowdsourced Resource-Based Economy Knowledgebase
Jump to: navigation, search
m (1 revision)
 
Line 1: Line 1:
 
{{#ifeq:{{{subst}}}|SUBST
 
{{#ifeq:{{{subst}}}|SUBST
 
  |{{#if:{{{name|}}}
 
  |{{#if:{{{name|}}}
   |{{Error|Template {{Tlx|{{{name}}}}} has been incorrectly substituted.}}
+
   |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
 
  }}[[Category:Pages with incorrectly substituted templates]]
 
  }}[[Category:Pages with incorrectly substituted templates]]
}}{{#ifeq:{{{small}}}|left
+
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
  |{{Ambox/core
+
  |type = {{{type|}}}
  |small      = left
+
|image = {{{image|}}}
  |type      = {{{type|}}}
+
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
  |image      = {{#if:{{{smallimage|}}}
+
|imageright = {{{imageright|}}}
  |{{{smallimage}}}
+
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
  |{{{image|}}}
+
|class = ambox-{{#switch:{{{type|}}}
  }}
+
   |speedy = speedy
  |imageright = {{#if:{{{smallimageright|}}}
+
  |delete = delete
  |{{{smallimageright}}}
+
  |content = content
  |{{{imageright|}}}
+
  |style = style
  }}
+
  |move = move
   |class      = {{{class|}}}
+
  |protection = protection
  |style     = {{{style|}}}
+
  |notice|#default = notice
  |textstyle  = {{{textstyle|}}}
+
}} {{{class|}}}
  |text      = {{#if:{{{smalltext|}}}
+
|style = {{{style|}}}
  |{{{smalltext}}}
+
|textstyle  = {{{textstyle|}}}
  |{{{text}}}  
+
|smalltext  = {{{smalltext|}}}
   }}
+
|talk = {{#switch:{{{talk|¬}}}
 +
  |¬        = <!-- No talk link used -->
 +
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
 +
   |#default = {{{talk}}}
 
  }}
 
  }}
  |{{Ambox/core
+
  |issue = {{#switch:{{{sect|¬}}}
  |type      = {{{type|}}}
+
   |¬ = <!-- No section parameter used -->
   |image      = {{{image|}}}
+
  |  = This article
  |imageright = {{{imageright|}}}
+
  |This {{{sect}}}
  |class      = {{{class|}}}
+
}} {{{issue<includeonly>|</includeonly>}}} {{{text|}}}
  |style      = {{{style|}}}
+
|fix = {{{fix<includeonly>|</includeonly>}}}
  |textstyle = {{{textstyle|}}}
+
  |date = {{#switch:{{{date|¬}}}
   |text      = {{{text}}}
+
   |¬        = <!-- No date used -->
   |date      = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
+
   |         = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
  |{{#ifeq:{{{date|¬}}}|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
+
  |#default = {{{date}}}
  |{{{date|}}}
+
  }}
+
 
  }}
 
  }}
 +
|info = {{{info|}}}
 
}}{{Category handler
 
}}{{Category handler
 +
|nocat={{{nocat|<noinclude>true</noinclude>}}}
 
  |main={{Ambox/category
 
  |main={{Ambox/category
 
   |cat={{{cat|{{{category|}}}}}}  
 
   |cat={{{cat|{{{category|}}}}}}  
 
   |all={{{all|}}}
 
   |all={{{all|}}}
   |cat2={{{cat2|{{{category2|}}}}}}  
+
   |date={{{date|}}}
   |all2={{{all2|}}}
+
}}{{Ambox/category
   |cat3={{{cat3|{{{category3|}}}}}}  
+
  |cat={{{cat2|{{{category2|}}}}}}  
   |all3={{{all3|}}}
+
   |all={{{all2|}}}
 +
   |date={{{date|}}}
 +
}}{{Ambox/category
 +
  |cat={{{cat3|{{{category3|}}}}}}  
 +
   |all={{{all3|}}}
 
   |date={{{date|}}}
 
   |date={{{date|}}}
 
  }}
 
  }}
  |template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|<!--We are on a rootpage, not a /doc or /sandbox page-->{{#ifeq:{{{nocat|}}}|true
+
  |template={{#switch:Template:{{{name|}}}
    | <!--Don't categorise-->
+
  |{{FULLPAGENAME}} = [[Category:Article message templates]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
    | [[Category:Article message boxes|{{BASEPAGENAME}}]]
+
  |[[Category:Article message templates with missing parameters|{{#expr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}}}]]
    }}
+
  }}{{#if:{{{category|}}}{{{category2|}}}{{{category3|}}}
 +
  |[[Category:Article message templates with missing parameters|C]]
 
   }}
 
   }}
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
+
  |Template:        = {{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message templates with missing parameters]]}}
|{{#ifeq:{{{doc}}}|no|
+
  |{{Documentation}}<!-- Transclude documentation on template page -->
+
 
  }}
 
  }}
}}<noinclude>
+
}}
{{Documentation}}
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
</noinclude>
+

Latest revision as of 11:53, 27 February 2013

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Share