Template:Episode link: Difference between revisions

From Battlestar Wiki Media
No edit summary
 
No edit summary
 
Line 5: Line 5:
       | de= [[:de:{{{de}}}|{{{cde}}}]]
       | de= [[:de:{{{de}}}|{{{cde}}}]]
       | fr= [[:fr:{{{fr}}}|{{{cfr}}}]]
       | fr= [[:fr:{{{fr}}}|{{{cfr}}}]]
      | tr= [[:tr:{{{tr}}}|{{{ctr}}}]]
       | zh= [[:zh:{{{zh}}}|{{{czh}}}]]
       | zh= [[:zh:{{{zh}}}|{{{czh}}}]]
       | #default = Please specify a language.
       | #default = Please specify a language.
   }}"
   }}"
| <!--ELSE-->
| <!--ELSE-->
   {{#switch:{{#ifeq:{{#expr:(({{#if:{{{de|}}}|1|0}})+({{#if:{{{es|}}}|1|0}})+({{#if:{{{zh|}}}|1|0}})) >= 1}}|1|1|2}}
   {{#switch:{{#ifeq:{{#expr:(({{#if:{{{es|}}}|1|0}})+({{#if:{{{de|}}}|1|0}})+({{#if:{{{fr|}}}|1|0}})+({{#if:{{{tr|}}}|1|0}})+({{#if:{{{zh|}}}|1|0}})) >= 1}}|1|1|2}}
       | 1= "{{#if:{{{cepisode|}}}|<!--THEN-->{{{cepisode}}}|<!--ELSE-->{{{main}}}}}"
       | 1= "{{#if:{{{cepisode|}}}|<!--THEN-->{{{cepisode}}}|<!--ELSE-->{{{main}}}}}"
       | 2= "[[:en:{{{main}}}|{{#if:{{{cepisode|}}}|<!--THEN-->{{{cepisode}}}|<!--ELSE-->{{{main}}}}}]]"
       | 2= "[[:en:{{{main}}}|{{#if:{{{cepisode|}}}|<!--THEN-->{{{cepisode}}}|<!--ELSE-->{{{main}}}}}]]"
   }}
   }}
}}</includeonly><noinclude>[[Category:Image tags helper templates|Episode link]]</noinclude>
}}</includeonly><noinclude>[[Category:Image tags helper templates|Episode link]]</noinclude>

Latest revision as of 08:02, 4 May 2007