Template:Cite web: Difference between revisions
From Vigyanwiki
Template>Ligulem m (line 18: indented closing "}}" by one level as this refers to "{{boolor" on line 15 (warning: cannot be seen in diff)) |
Template>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> |
Revision as of 06:11, 25 November 2005
{{ safesubst:p{{ safesubst:#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|}} {{ safesubst:p{{ safesubst:#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|}} {{ safesubst:p{{ safesubst:#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|}} {{ safesubst:p{{ safesubst:#if{{{1}}}:{{{2}}}|1|2}}|{{{3}}}|}}.
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |