Difference between revisions of "Template:Ambox"

From AIE Wiki
Jump to: navigation, search
m (fix my mistake)
(move category code to subtemplate and remove undated)
Line 35: Line 35:
 
  }}
 
  }}
 
}}{{cat handler
 
}}{{cat handler
  |main={{#if:{{{cat|}}}
+
  |main={{ambox/category
   |{{#if:{{{date|}}}
+
   |cat={{{cat|}}}
  |[[Category:{{{cat}}} {{{preposition|from}}} {{{date}}}]]{{#ifexist:Category:{{{cat}}} {{{preposition|from}}} {{{date}}}|
+
  |date={{{date|}}}
    |[[Category:Articles with invalid date parameter in template]]
+
  |all={{{all|}}}
  }}
+
  |[[Category:{{#if:{{{undated|}}}
+
    |{{{undated}}}
+
    |{{{cat}}}
+
  }}]]
+
  }}
+
}}{{#if:{{{all|}}}
+
  |[[Category:{{{all}}}]]
+
 
  }}
 
  }}
 
  |template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message boxes]]}}
 
  |template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|[[Category:Article message boxes]]}}

Revision as of 15:34, 4 March 2011

Template:Cat handler
50px Template documentation[view] [edit] [history] [purge]

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

Type preview

See also

50px Message box templates {{ambox}}{{asbox}}{{cmbox}}{{dmbox}}{{fmbox}}{{imbox}}{{ombox}}{{tmbox}}

Other pages:


Language: English