Difference between revisions of "Template:Ambox"

From eRepublik Official Wiki
Jump to: navigation, search
Line 1: Line 1:
{| style="border-color:{{{border|orange}}}" class="ambox ambox-notice"
+
{{#ifeq:{{{subst}}}|SUBST
| class="ambox-image" | [[Image:{{{image|Exclamation.png|42px}}}]]
+
|{{#if:{{{name|}}}
| class="ambox-text" | {{{text|Notice}}}
+
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
|}<noinclude>[[Category:Graphical Aid Templates]]
+
}}[[Category:Pages with incorrectly substituted templates]]
== Usage ==
+
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
<pre>
+
|type = {{{type|}}}
{{Ambox
+
|image = {{{image|}}}
|border= <!--write the color you wish... In example: orange -->
+
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
|image= <!--only filename and size... In example: Exclamation.png{{!}}42px-->
+
|imageright = {{{imageright|}}}
|text=
+
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
}}
+
|class = ambox-{{#switch:{{{type|}}}
</pre>
+
  |speedy = speedy
 +
  |delete = delete
 +
  |content = content
 +
  |style = style
 +
  |move = move
 +
  |protection = protection
 +
  |notice|#default = notice
 +
}} {{{class|}}}
 +
|style = {{{style|}}}
 +
|textstyle  = {{{textstyle|}}}
 +
|smalltext  = {{{smalltext|}}}
 +
|talk = {{#switch:{{{talk|¬}}}
 +
  |¬        = <!-- No talk link used -->
 +
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|#}}
 +
  |#default = {{{talk}}}
 +
}}
 +
|issue = {{#switch:{{{sect|¬}}}
 +
  |¬ = <!-- No section parameter used -->
 +
  | = This article
 +
  |This {{{sect}}}
 +
}} {{{issue<includeonly>|</includeonly>}}} {{{text|}}}
 +
|fix = {{{fix<includeonly>|</includeonly>}}}
 +
|date = {{#switch:{{{date|¬}}}
 +
  |¬        = <!-- No date used -->
 +
  |        = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
 +
  |#default = {{{date}}}
 +
}}
 +
|info = {{{info|}}}
 +
}}{{Category handler
 +
|nocat={{{nocat|<noinclude>true</noinclude>}}}
 +
|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|}}}
 +
  |{{FULLPAGENAME}} = [[Category:Article message templates]]{{#ifexpr:{{#ifeq:{{{issue|¬}}}|¬|1|0}}+{{#ifeq:{{{fix|¬}}}|¬|1|0}}+{{#ifeq:{{{subst|¬}}}|¬|1|0}}
 +
  |[[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]]
 +
  }}
 +
  |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>

Revision as of 07:59, 4 April 2016