Difference between revisions of "Template:Ambox/category"

From Game Detectives Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(from /sandbox per edit request)
(more efficient code)
Line 8: Line 8:
 
}}{{#if:{{{all|}}}
 
}}{{#if:{{{all|}}}
 
  |[[Category:{{{all}}}]]
 
  |[[Category:{{{all}}}]]
}}{{#if:{{{cat2|}}}
 
|{{#if:{{{date|}}}
 
  |[[Category:{{{cat2}}} {{{preposition|from}}} {{{date}}}]]{{#ifexist:Category:{{{cat2}}} {{{preposition|from}}} {{{date}}}|
 
  |[[Category:Articles with invalid date parameter in template]]
 
  }}
 
  |[[Category:{{{cat2}}}]]
 
}}
 
}}{{#if:{{{all2|}}}
 
|[[Category:{{{all2}}}]]
 
}}{{#if:{{{cat3|}}}
 
|{{#if:{{{date|}}}
 
  |[[Category:{{{cat3}}} {{{preposition|from}}} {{{date}}}]]{{#ifexist:Category:{{{cat3}}} {{{preposition|from}}} {{{date}}}|
 
  |[[Category:Articles with invalid date parameter in template]]
 
  }}
 
  |[[Category:{{{cat3}}}]]
 
}}
 
}}{{#if:{{{all3|}}}
 
|[[Category:{{{all3}}}]]
 
 
}}
 
}}

Revision as of 16:32, 7 June 2012