Difference between revisions of "Template:Ambox"

From Game Detectives Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
 
(25 intermediate revisions by 18 users not shown)
Line 1: Line 1:
{{#ifeq:{{{subst}}}|SUBST
+
{{#invoke:Message box|ambox}}<noinclude>
|{{#if:{{{name|}}}
+
{{ {{TNTN|documentation}} }}
  |{{Error|Template {{tlx|{{{name}}}}} has been incorrectly substituted.}}
 
}}[[Category:Pages with incorrectly substituted templates]]
 
}}{{Ambox/{{#ifeq:{{{small}}}|left|small|core}}
 
|type = {{{type|}}}
 
|image = {{{image|}}}
 
|smallimage = {{#if:{{{smallimage|}}}|{{{smallimage}}}|{{{image|}}}}}
 
|imageright = {{{imageright|}}}
 
|smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
 
|class = ambox-{{#switch:{{{type|}}}
 
  |speedy = speedy
 
  |delete = delete
 
  |warning = warning
 
  |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>
<div style="display:none">
 
<a href="http://www.sikisliporn.com/" target="_blank">porno</a> <a href="http://www.sikisliporn.com/" target="_blank">Sikiş</a>
 
</div>
 

Latest revision as of 16:05, 18 May 2018

<templatestyles src="Module:Documentation/styles.css"></templatestyles>
Template documentation[view] [edit] [history] [purge]
Description

This is the {{Ambox}} or Article message box meta-template.

Usage
{{Ambox|type=content|text=my text here}}, or
{{Ambox|type=speedy|text=my text here}}, etc
type

The type parameter defines the color of the left bar, and the image that is used by default. The type is chosen not on aesthetics but is based on the type of issue that the template describes. The seven available types and their default images are shown below.

If no type parameter is given the template defaults to |type=notice.

See also