Template:Cite web: Difference between revisions

    m>TKD
    (fix default separator using a variant of User:droll's fix; see talk page)
    m>Smith609
    (Use Template:Citation error to handle error messages for uniformity with other templates and simplicity in code. No change in output should result from this edit.)
    Line 46: Line 46:
       |Title={{{work|}}}
       |Title={{{work|}}}
       |At = {{#if:{{{page|}}}|{{{page}}}|{{#if:{{{pages|}}|{{{pages|}}}|{{{at|}}} }} }}
       |At = {{#if:{{{page|}}}|{{{page}}}|{{#if:{{{pages|}}|{{{pages|}}}|{{{at|}}} }} }}
       |IncludedWorkTitle = {{#if:{{{url|}}}|{{#if:{{{title|}}}|{{{title}}}|<span class="error">Error: no {{para|title}} specified when using {{tl|cite web}}</span>{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}}}|<span class="error">Error: no {{para|url}} specified when using {{tl|cite web}}</span>{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}}}
       |IncludedWorkTitle = {{#if:{{{url|}}}|{{#if:{{{title|}}}|{{{title}}}|{{Citation error|no {{para|title}} specified|cite web}}}}|{{Citation error|no {{para|url}} specified|cite web}}}}
       |IncludedWorkURL = {{#if:{{{archiveurl|}}}|{{{archiveurl|}}}|{{{url|}}}}}
       |IncludedWorkURL = {{#if:{{{archiveurl|}}}|{{{archiveurl|}}}|{{{url|}}}}}
       |PublicationPlace = {{{location|}}}
       |PublicationPlace = {{{location|}}}