Template:Ambox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>MSGJ
m fix my mistake
meta>MSGJ
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:Ambox/coreTemplate:Cat handler