Template:Interwiki link: Difference between revisions

From Battlestar Wiki Media
(creating redirect)
Tag: New redirect
 
(initial creation)
Tag: Removed redirect
 
Line 1: Line 1:
#REDIRECT[[Template:Episode link]]
<includeonly>{{#if: {{{link|}}}
| <!--THEN--> "{{#switch:{{{lang|}}}
      | en= [[:en:{{{en}}}|{{{cen}}}]]
      | es= [[:es:{{{es}}}|{{{ces}}}]]
      | de= [[:de:{{{de}}}|{{{cde}}}]]
      | fr= [[:fr:{{{fr}}}|{{{cfr}}}]]
      | tr= [[:tr:{{{tr}}}|{{{ctr}}}]]
      | zh= [[:zh:{{{zh}}}|{{{czh}}}]]
      | #default = Please specify a language.
  }}"
| <!--ELSE-->
  {{#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:{{{carticle|}}}|<!--THEN-->{{{carticle}}}|<!--ELSE-->{{{main}}}}}"
      | 2= "[[:en:{{{main}}}|{{#if:{{{carticle|}}}|<!--THEN-->{{{carticle}}}|<!--ELSE-->{{{main}}}}}]]"
  }}
}}</includeonly><noinclude>[[Category:Image tags helper templates|Interwiki link]]</noinclude>

Latest revision as of 01:28, 11 August 2019