Template:Episode link: Difference between revisions

Template page
No edit summary
 
m (rm :en)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{link|}}}
<includeonly>{{#if: {{{link|}}}
| <!--THEN--> "{{#switch:{{{lang|}}}
| <!--THEN--> "{{#switch:{{{lang|}}}
       | en= [[:en:{{{en}}}|{{{cen}}}]]
       | en= [[{{{en}}}|{{{cen}}}]]
       | es= [[:es:{{{es}}}|{{{ces}}}]]
       | es= [[:es:{{{es}}}|{{{ces}}}]]
       | de= [[:de:{{{de}}}|{{{cde}}}]]
       | de= [[:de:{{{de}}}|{{{cde}}}]]
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