Template:Main: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Kingpin13
(update. +namespace detection for categories, per talk.)
meta>David Levy
("page"/"pages" when the first parameter is a page outside the article namespace)
Line 1: Line 1:
{{rellink|extraclasses=relarticle mainarticle|{{#ifeq: {{SUBJECTSPACE}} |Category|The main article for this [[Wikipedia:Categorization|category]] is|Main article{{#if:{{{2|}}}|s}}:}} [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}
{{rellink|extraclasses=relarticle mainarticle|{{#ifeq:{{SUBJECTSPACE}}|Category|The main article for this [[Wikipedia:Categorization|category]] is|Main {{#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{#if:{{{2|}}}|s}}:}} [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}
  |{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
  |{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
  |{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
  |{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}

Revision as of 23:42, 25 March 2010

Template:Rellink