Template:Cite web: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<p>
<p>
<!-- If lastname given -->
{{#if: {{{last|}}}
{{#if: {{{last|}}}
  | {{{last}}}, {{{first}}} {{#if: {{{date|}}} | ({{{date}}}). }}
| {{{last}}}, {{{first}}} {{#if: {{{date|}}} | ({{{date}}}). }}
  | {{#if: {{{author|}}}
<!-- Else if author given -->
      |{{{author}}} {{#if: {{{date|}}} | ({{{date}}}). }} }} }}
| {{#if: {{{author|}}}
  | {{{author}}} {{#if: {{{date|}}} | ({{{date}}}). }}
  }}
}}
 
{{#if: {{{url|}}}
{{#if: {{{url|}}}
| [{{{url}}} {{{title|<span style="color: red;">'''ERROR: No Title provided in cite web template'''</span>}}}].
| [{{{url}}} {{{title| {{error|No Title provided in cite web template}} }}}].
| <span style="color: red;">'''ERROR: No URL provided in cite web template.'''</span>}}
| {{error|No URL provided in cite web template.}}
}}


{{#if: {{{website|}}}  | ''{{{website}}}''. }}
{{#if: {{{website|}}}  | ''{{{website}}}''. }}
{{#if: {{{publisher|}}} | {{{publisher}}}.  }}
{{#if: {{{publisher|}}} | {{{publisher}}}.  }}
{{#ifeq: {{{date}}} | {{{last}}} {{{author}}} {{{date}}}  
 
{{#if: {{{last|}}} {{{author|}}} |
| {{#if: {{{date|}}}
   | {{{date}}}.
   | {{{date}}}.
}}
}}
{{#if: {{{quote|}}} | "{{{quote}}}" }}
{{#if: {{{quote|}}} | "{{{quote}}}" }}
</p>
</p>