Jump to content

Template:Cite web: Difference between revisions

From IdeaWazaWiki
wikademia>Tariqabjotu
reverting to Trevor MacInnis version, pending consensus
wikademia>Wikademia
m 1 revision
 
(54 intermediate revisions by 26 users not shown)
Line 1: Line 1:
<includeonly>{{
<includeonly>{{Citation/core
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
  |Citation class=web
  ||Error on call to [[Template:cite web]]: Parameters '''url''' and '''title''' must be specified
  |Surname1 = {{#if:{{{last|}}}
}}{{
                |{{{last}}}
#if: {{{archiveurl|}}}{{{archivedate|}}}  
                |{{#if:{{{last1|}}}
   | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
                  |{{{last1}}}
    ||Error on call to [[template:cite web]]: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted
                  |{{{author|}}}
}}
                }}
}}{{#if: {{{author|}}}{{{last|}}}
              }}
   | {{#if: {{{authorlink|}}}
  |Surname2 = {{#if:{{{last2|}}}|{{{last2}}}|{{{coauthors|}}}}}
    | [[{{{authorlink}}}|{{#if: {{{last|}}}
   |Surname3 = {{{last3|}}}
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
  |Surname4 = {{{last4|}}}
      | {{{author}}}
  |Surname5 = {{{last5|}}}
    }}]]
  |Surname6 = {{{last6|}}}
    | {{#if: {{{last|}}}
  |Surname7 = {{{last7|}}}
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
  |Surname8 = {{{last8|}}}
      | {{{author}}}
  |Surname9 = {{{last9|}}}
    }}
   |Given1 = {{#if:{{{first|}}}|{{{first}}}|{{{first1|}}}}}
   }}
  |Given2 = {{{first2|}}}
}}{{#if: {{{author|}}}{{{last|}}}
  |Given3 = {{{first3|}}}
   | {{#if: {{{coauthors|}}}| <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
  |Given4 = {{{first4|}}}
}}{{#if: {{{author|}}}{{{last|}}}|
  |Given5 = {{{first5|}}}
    {{#if: {{{date|}}}
  |Given6 = {{{first6|}}}
    | &#32;({{{date}}})
  |Given7 = {{{first7|}}}
    | {{#if: {{{year|}}}
  |Given8 = {{{first8|}}}
      | {{#if: {{{month|}}}
  |Given9 = {{{first9|}}}
        | &#32;({{{month}}} {{{year}}})
  |Authorlink1 = {{#if:{{{authorlink|}}}|{{{authorlink}}}|{{{authorlink1|}}}}}
        | &#32;({{{year}}})
  |Authorlink2 = {{{authorlink2|}}}
      }}
  |Authorlink3 = {{{authorlink3|}}}
    }}
   |Authorlink4 = {{{authorlink4|}}}
   |}}
  |Authorlink5 = {{{authorlink5|}}}
}}{{#if: {{{last|}}}{{{author|}}}
  |Authorlink6 = {{{authorlink6|}}}
  | .&#32;}}{{
  |Authorlink7 = {{{authorlink7|}}}
  #if: {{{editor|}}}
   |Authorlink8 = {{{authorlink8|}}}
  | &#32;{{{editor}}}:
  |Authorlink9 = {{{authorlink9|}}}
}}{{#if: {{{archiveurl|}}}
  |Year={{#if:{{{year|}}}|{{{year}}}   <!-- attempt to derive year from date, if possible -->
    | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
          |{{#if: {{{date|}}}
    | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}}}
            |{{#iferror: {{#time:Y|{{{date|}}} }}
}}{{#if: {{{language|}}} | &#32;<span style="font-size: 0.95em; font-weight: bold; color:#555; position: relative;">({{{language}}})</span>  
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
}}{{#if: {{{format|}}}
                |{{#time:Y|{{{date|}}} }}
  | &#32;({{{format|}}})
              }}
}}{{#if: {{{work|}}}
            |{{{publication-date|}}} <!-- last resort -->
  | .&#32;''{{{work}}}''
          }}
}}{{#if: {{{pages|}}}
        }}
   | &#32;{{{pages}}}
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{#if:{{{year|}}}|{{{year}}}|{{{publication-date|}}}}}}}
}}{{#if: {{{publisher|}}}
  |Title={{{work|}}}
   | .&#32;{{{publisher}}}{{#if: {{{author|}}}{{{last|}}}
  |At = {{#if:{{{page|}}}|{{{page}}}|{{{pages|}}}}}
    |  
  |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]]}}}}
    | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
  |IncludedWorkURL = {{#if:{{{archiveurl|}}}|{{{archiveurl|}}}|{{{url|}}}}}
   }}
   |Place = {{{location|}}}
}}{{#if: {{{author|}}}{{{last|}}}
  |Publisher = {{{publisher|}}}
  ||{{#if: {{{date|}}}
   |language = {{{language|}}}
    | &#32;({{{date}}})
  |format = {{{format|}}}
    | {{#if: {{{year|}}}
  |DOI={{{doi|{{{DOI|}}}}}}
      | {{#if: {{{month|}}}
   |AccessDate={{#if:{{{accessdate|}}}|{{{accessdate}}}|{{
        | &#32;({{{month}}} {{{year}}})
    #if:{{{accessdaymonth|}}}|{{{accessdaymonth}}} {{{accessyear|}}}|{{
        | &#32;({{{year}}})
      #if:{{{accessmonthday|}}}|{{{accessmonthday}}} {{{accessyear|}}}|
      {{{accessday|}}} {{{accessmonth|}}} {{{accessyear|}}}
       }}
       }}
     }}
     }}
  }}
  }}
}}.{{#if: {{{archivedate|}}}
  |DateFormat={{#if:{{{dateformat|}}}|{{{dateformat}}}|none}}
  | &#32;Archived from [{{{url}}} the original] on [[{{{archivedate}}}]].
  |quote = {{{quote|}}}
}}{{#if: {{{accessdate|}}}
  |Ref={{{ref|}}}
   | &#32;Retrieved on [[{{{accessdate}}}]]{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}.
   |Sep = {{{separator|{{{seperator|.}}}}}}
}}{{#if: {{{accessmonthday|}}}
  |PS={{#if:{{{quote|}}}||.}}
  | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.
  |OriginalURL = {{#if:{{{archiveurl|}}}|{{{url|}}}}}
}}{{#if: {{{accessdaymonth|}}}
  |ArchiveDate= {{{archivedate|}}}
  | &#32;Retrieved on {{{accessdaymonth}}} {{{accessyear}}}.
}}{{#if:{{{accessdaymonth|}}}{{{accessmonthday|}}}|[[Category:Cite web templates using unusual accessdate parameters|{{NAMESPACE}} {{PAGENAME}}]]}}</includeonly><noinclude>
}}{{#if: {{{quote|}}}
{{pp-template}}
  | &nbsp;“{{{quote}}}”
{{documentation}}
}}</includeonly><noinclude>{{/doc}}
</noinclude>
</noinclude>

Latest revision as of 17:36, 10 April 2009

[create] Template documentation