Jump to content

Template:Cite web: Difference between revisions

Warning: drastic change: Replaced {{if}} with new {{qif}}. I have tested that but please revert quickly if you see anything that doesn't work. Thanks!
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))
m>Ligulem
(Warning: drastic change: Replaced {{if}} with new {{qif}}. I have tested that but please revert quickly if you see anything that doesn't work. Thanks!)
Line 1: Line 1:
{{if
{{qif
   |test={{boolnand
   |test={{boolnand
     |1={{booland
     |1={{booland
Line 8: Line 8:
   }}
   }}
   |then={{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|}}}}}}{{qif
   |test={{{PublishYear|{{{publishyear|}}}}}}
   |test={{{PublishYear|{{{publishyear|}}}}}}
   |then= ({{{PublishYear|{{{publishyear|}}}}}})
   |then= ({{{PublishYear|{{{publishyear|}}}}}})
}}{{if
}}{{qif
   |test={{boolor
   |test={{boolor
     |1={{{Author|{{{author|}}}}}}
     |1={{{Author|{{{author|}}}}}}
Line 17: Line 17:
   }}
   }}
   |then=. 
   |then=. 
}}{{if
}}{{qif
   |test={{booland
   |test={{booland
     |1={{{URL|{{{url|}}}}}}
     |1={{{URL|{{{url|}}}}}}
Line 23: Line 23:
   }}
   }}
   |then=[{{{URL|{{{url}}}}}} {{{Title|{{{title}}}}}}]. 
   |then=[{{{URL|{{{url}}}}}} {{{Title|{{{title}}}}}}]. 
}}{{if
}}{{qif
   |test={{{format|{{{Format|}}}}}}
   |test={{{format|{{{Format|}}}}}}
   |then= ({{{Format|{{{format}}}}}})
   |then= ({{{Format|{{{format}}}}}})
}}{{if
}}{{qif
   |test={{{Work|{{{work|}}}}}}
   |test={{{Work|{{{work|}}}}}}
   |then=''{{{Work|{{{work}}}}}}''.
   |then=''{{{Work|{{{work}}}}}}''.
}} {{if
}} {{qif
   |test={{{Publisher|{{{publisher|}}}}}}
   |test={{{Publisher|{{{publisher|}}}}}}
   |then={{{Publisher|{{{publisher}}}}}}.
   |then={{{Publisher|{{{publisher}}}}}}.
}} {{if
}} {{qif
   |test={{{Date|{{{date|}}}}}}
   |test={{{Date|{{{date|}}}}}}
   |then=URL accessed on [[{{{Date|{{{date}}}}}}]]
   |then=URL accessed on [[{{{Date|{{{date}}}}}}]]
}} {{if
}} {{qif
   |test={{{Year|{{{year|}}}}}}
   |test={{{Year|{{{year|}}}}}}
   |then=[[{{{Year|{{{year}}}}}}]]
   |then=[[{{{Year|{{{year}}}}}}]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.