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 | ||
| | |test={{boolnand | ||
|1={{booland | |1={{booland | ||
|1={{{URL|{{{url|}}}}} | |1={{{URL|{{{url|}}}}} | ||
Line 7: | Line 7: | ||
|2={{{Date|{{{date|}}}}}} | |2={{{Date|{{{date|}}}}}} | ||
}} | }} | ||
| | |then={{tl|web reference}}: Parameter '''url''', '''title''' and '''date''' must be specified | ||
}}{{{Author|{{{author|}}}}}}{{if | }}{{{Author|{{{author|}}}}}}{{if | ||
| | |test={{{PublishYear|{{{publishyear|}}}}}} | ||
| | |then= ({{{PublishYear|{{{publishyear|}}}}}}) | ||
}}{{if | }}{{if | ||
| | |test={{boolor | ||
|1={{{Author|{{{author|}}}}}} | |1={{{Author|{{{author|}}}}}} | ||
|2={{{PublishYear|{{{publishyear|}}}}}} | |2={{{PublishYear|{{{publishyear|}}}}}} | ||
}} | }} | ||
| | |then=. | ||
}}{{if | }}{{if | ||
| | |test={{booland | ||
|1={{{URL|{{{url|}}}}}} | |1={{{URL|{{{url|}}}}}} | ||
|2={{{Title|{{{title|}}}}}} | |2={{{Title|{{{title|}}}}}} | ||
}} | }} | ||
| | |then=[{{{URL|{{{url}}}}}} {{{Title|{{{title}}}}}}]. | ||
}}{{if | }}{{if | ||
| | |test={{{format|{{{Format|}}}}}} | ||
| | |then= ({{{Format|{{{format}}}}}}) | ||
}}{{if | }}{{if | ||
| | |test={{{Work|{{{work|}}}}}} | ||
| | |then=''{{{Work|{{{work}}}}}}''. | ||
}} {{if | }} {{if | ||
| | |test={{{Publisher|{{{publisher|}}}}}} | ||
| | |then={{{Publisher|{{{publisher}}}}}}. | ||
}} {{if | }} {{if | ||
| | |test={{{Date|{{{date|}}}}}} | ||
| | |then=URL accessed on [[{{{Date|{{{date}}}}}}]] | ||
}} {{if | }} {{if | ||
| | |test={{{Year|{{{year|}}}}}} | ||
| | |then=[[{{{Year|{{{year}}}}}}]] | ||
}}.<noinclude> | }}.<noinclude> | ||
{{esoteric}} | {{esoteric}} | ||
</noinclude> | </noinclude> |