Template:Episode link: Difference between revisions

Template page
(tweaking :en link, since we haven't established that yet)
m (rm :en)
 
Line 12: Line 12:
   {{#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}}
   {{#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= "[[{{{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 19:25, 26 January 2021