Difference between revisions of "Template:Ambox"

From Game Detectives Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (link)
(from /sandbox per edit request)
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
 
}}{{#ifeq:{{{small}}}|left
Line 36: Line 36:
 
   }}
 
   }}
 
  }}
 
  }}
}}{{category handler
+
}}{{Category handler
  |main={{ambox/category
+
  |main={{Ambox/category
 
   |cat={{{cat|{{{category|}}}}}}  
 
   |cat={{{cat|{{{category|}}}}}}  
 +
  |all={{{all|}}}
 +
  |cat2={{{cat2|{{{category2|}}}}}}
 +
  |all2={{{all2|}}}
 +
  |cat3={{{cat3|{{{category3|}}}}}}
 +
  |all3={{{all3|}}}
 
   |date={{{date|}}}
 
   |date={{{date|}}}
  |all={{{all|}}}
 
 
  }}
 
  }}
 
  |template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|<!--We are on a rootpage, not a /doc or /sandbox page-->{{#ifeq:{{{nocat|}}}|true
 
  |template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|<!--We are on a rootpage, not a /doc or /sandbox page-->{{#ifeq:{{{nocat|}}}|true
Line 49: Line 53:
 
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 
  |{{#ifeq:{{{doc}}}|no|
 
  |{{#ifeq:{{{doc}}}|no|
   |{{documentation}}<!-- Transclude documentation on template page -->
+
   |{{Documentation}}<!-- Transclude documentation on template page -->
 
  }}
 
  }}
 
}}<noinclude>
 
}}<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 08:40, 30 December 2011

Template:Category handler <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