Jump to content

Template:Ref: Difference between revisions

m
oops, "url" is not an appropriate name for this parameter, let's use "note" instead
(if we name the main parameter of the template then it should prevent the need to enclose '=' and '|' in double curly braces; this will prevent arcane errors when we forget to do that)
m (oops, "url" is not an appropriate name for this parameter, let's use "note" instead)
Line 4: Line 4:
     #ifeq:{{{alpha}}}
     #ifeq:{{{alpha}}}
     |yes
     |yes
     |{{#tag:ref|{{{url|}}}|name={{{name}}}|group=lower-alpha}}
     |{{#tag:ref|{{{note|}}}|name={{{name}}}|group=lower-alpha}}
     |{{
     |{{
       #if:{{{group|}}}
       #if:{{{group|}}}
       |{{#tag:ref|{{{url|}}}|name={{{name}}}|group={{{group}}}}}
       |{{#tag:ref|{{{note|}}}|name={{{name}}}|group={{{group}}}}}
       |{{#tag:ref|{{{url|}}}|name={{{name}}}}}
       |{{#tag:ref|{{{note|}}}|name={{{name}}}}}
     }}
     }}
   }}
   }}
Line 14: Line 14:
     #ifeq:{{{alpha}}}
     #ifeq:{{{alpha}}}
     |yes
     |yes
     |{{#tag:ref|{{{url|}}}|group=lower-alpha}}
     |{{#tag:ref|{{{note|}}}|group=lower-alpha}}
     |{{
     |{{
       #if:{{{group|}}}
       #if:{{{group|}}}
       |{{#tag:ref|{{{url|}}}|group={{{group}}}}}
       |{{#tag:ref|{{{note|}}}|group={{{group}}}}}
       |{{#tag:ref|{{{url|}}}}}
       |{{#tag:ref|{{{note|}}}}}
     }}
     }}
   }}
   }}