Template:Cite web: Difference between revisions

    m>Happy-melon
    (remove alternative parameter names that were not supported in original code, per talk)
    m>Happy-melon
    (remove newly-added parameters that seem to have little or no use for web citations)
    Line 1: Line 1:
    {{Citation/core
    {{Citation/core
       |Citation class=web
       |Citation class=web
       |Surname1 = {{#if: {{{author|}}} | {{{author}}} | {{{last|}}} }}
       |Surname1 = {{#if: {{{author|}}} | {{{author}}} | {{{last|}}} }}
       |Surname2 = {{#if: {{{author2|}}} | {{{author2}}} | {{{last2|}}} }}
       |Surname2 = {{#if: {{{author2|}}} | {{{author2}}} | {{{last2|}}} }}
       |Surname3 = {{#if: {{{author3|}}} | {{{author3}}} | {{{last3|}}} }}
       |Surname3 = {{#if: {{{author3|}}} | {{{author3}}} | {{{last3|}}} }}
    Line 28: Line 28:
       |Authorlink8 = {{{authorlink8|}}}
       |Authorlink8 = {{{authorlink8|}}}
       |Authorlink9 = {{{authorlink9|}}}
       |Authorlink9 = {{{authorlink9|}}}
       |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
       |Year={{#if:{{{year|}}}|{{{year}}}
                #if: {{{date|}}}
              |{{#if: {{{date|}}}         <!-- attempt to derive year from date, if possible -->
                |{{
                |{{#iferror:{{#time:Y|{{{date|}}} }} }}
                    #iferror:{{#time:Y|{{{date|}}} }}
                    |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
                    |{{#time:Y|{{{date|}}} }}
                  }}
                |{{{publication-date|}}} <!-- last resort -->
               }}
               }}
             }}}
             }}
       |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
       |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|}}} }}
       |Title={{{work|}}}
       |Title={{{work|}}}
       |At = {{
       |At = {{{pages|}}}
              #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
              |{{{pages|{{{page|{{{at|}}}}}}}}}
              |{{
                #if: {{{pages|}}}
                |{{{pages}}}
                |{{{at|}}}
               
              }}
            }}
       |IncludedWorkTitle = {{#if:{{{url|}}}|{{#if:{{{title|}}}|{{{title}}}|No {{para|title}} specified{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}|You must specify {{para|url}} when using {{tl|cite web}}{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}}}}}
       |IncludedWorkTitle = {{#if:{{{url|}}}|{{#if:{{{title|}}}|{{{title}}}|No {{para|title}} specified{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}|You must specify {{para|url}} when using {{tl|cite web}}{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}}}}}
       |IncludedWorkURL = {{#if: {{{archiveurl|}}} | {{{archiveurl|}}} | {{{url|}}} }}
       |IncludedWorkURL = {{#if: {{{archiveurl|}}} | {{{archiveurl|}}} | {{{url|}}} }}
       |Place = {{{location|}}}
       |Place = {{{location|}}}
      |PublicationPlace = {{{location|}}}
       |Publisher = {{{publisher|}}}
       |Publisher = {{{publisher|}}}
      |PublicationDate = {{{publication-date|}}}
       |language = {{{language|}}}
       |language = {{{language|}}}
       |format = {{{format|}}}
       |format = {{{format|}}}
    Line 62: Line 46:
       |DateFormat={{{dateformat|}}}
       |DateFormat={{{dateformat|}}}
       |quote = {{{quote|}}}
       |quote = {{{quote|}}}
      |Ref={{{ref|}}}
      |Sep = {{{separator|{{{seperator|.}}}}}}
       |PS={{#if:{{{quote|}}}||.}}
       |PS={{#if:{{{quote|}}}||.}}
       |Archive = {{
       |Archive = {{#if:{{{archiveurl|}}}
                  #if:{{{archiveurl|}}}|Archived from {{#if:{{{url|}}}|[{{{url|}}} the original]|the original}} {{#if:{{{archivedate|}}}| on {{{archivedate}}}|. You must specify the date the archive was made using the <code>archivedate=</code> parameter.{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}}}
                    |Archived from {{#if:{{{url|}}}|[{{{url|}}} the original]|the original}}{{#if:{{{archivedate|}}}|&#32;on {{{archivedate}}}|. You must specify the date the archive was made using the {{para|archivedate}} parameter.{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}}}
                 }}
                 }}
    }}<noinclude>
    }}<noinclude>