Jump to content

Template:Cite web: Difference between revisions

used new parameters "test" and "then" of {{if}} instead of "1=" and "2=" (this should have not changed the semantic of the code)
m>Ligulem
m (line 18: indented closing "}}" by one level as this refers to "{{boolor" on line 15 (warning: cannot be seen in diff))
m>Ligulem
(used new parameters "test" and "then" of {{if}} instead of "1=" and "2=" (this should have not changed the semantic of the code))
Line 1: Line 1:
{{if
{{if
   |1={{boolnand
   |test={{boolnand
     |1={{booland
     |1={{booland
       |1={{{URL|{{{url|}}}}}
       |1={{{URL|{{{url|}}}}}
Line 7: Line 7:
     |2={{{Date|{{{date|}}}}}}
     |2={{{Date|{{{date|}}}}}}
   }}
   }}
   |2={{tl|web reference}}: Parameter '''url''', '''title''' and '''date''' must be specified
   |then={{tl|web reference}}: Parameter '''url''', '''title''' and '''date''' must be specified
}}{{{Author|{{{author|}}}}}}{{if
}}{{{Author|{{{author|}}}}}}{{if
   |1={{{PublishYear|{{{publishyear|}}}}}}
   |test={{{PublishYear|{{{publishyear|}}}}}}
   |2= ({{{PublishYear|{{{publishyear|}}}}}})
   |then= ({{{PublishYear|{{{publishyear|}}}}}})
}}{{if
}}{{if
   |1={{boolor
   |test={{boolor
     |1={{{Author|{{{author|}}}}}}
     |1={{{Author|{{{author|}}}}}}
     |2={{{PublishYear|{{{publishyear|}}}}}}
     |2={{{PublishYear|{{{publishyear|}}}}}}
   }}
   }}
   |2=. 
   |then=. 
}}{{if
}}{{if
   |1={{booland
   |test={{booland
     |1={{{URL|{{{url|}}}}}}
     |1={{{URL|{{{url|}}}}}}
     |2={{{Title|{{{title|}}}}}}
     |2={{{Title|{{{title|}}}}}}
   }}
   }}
   |2=[{{{URL|{{{url}}}}}} {{{Title|{{{title}}}}}}]. 
   |then=[{{{URL|{{{url}}}}}} {{{Title|{{{title}}}}}}]. 
}}{{if
}}{{if
   |1={{{format|{{{Format|}}}}}}
   |test={{{format|{{{Format|}}}}}}
   |2= ({{{Format|{{{format}}}}}})
   |then= ({{{Format|{{{format}}}}}})
}}{{if
}}{{if
   |1={{{Work|{{{work|}}}}}}
   |test={{{Work|{{{work|}}}}}}
   |2=''{{{Work|{{{work}}}}}}''.
   |then=''{{{Work|{{{work}}}}}}''.
}} {{if
}} {{if
   |1={{{Publisher|{{{publisher|}}}}}}
   |test={{{Publisher|{{{publisher|}}}}}}
   |2={{{Publisher|{{{publisher}}}}}}.
   |then={{{Publisher|{{{publisher}}}}}}.
}} {{if
}} {{if
   |1={{{Date|{{{date|}}}}}}
   |test={{{Date|{{{date|}}}}}}
   |2=URL accessed on [[{{{Date|{{{date}}}}}}]]
   |then=URL accessed on [[{{{Date|{{{date}}}}}}]]
}} {{if
}} {{if
   |1={{{Year|{{{year|}}}}}}
   |test={{{Year|{{{year|}}}}}}
   |2=[[{{{Year|{{{year}}}}}}]]
   |then=[[{{{Year|{{{year}}}}}}]]
   }}.<noinclude>
   }}.<noinclude>
{{esoteric}}
{{esoteric}}
</noinclude>
</noinclude>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.