Register / Create an Account

Difference between revisions of "Template:Cite web"

From Beatles Wiki - Interviews, Music, Beatles Quotes

Jump to: navigation, search
(New page: <includeonly>{{ #if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}} ||You must specify '''''title = ''''' and '''''url = ''''' when using {{cite web}}. {{#if: {{NA...)
 
(change sortkey per talk)
Line 1: Line 1:
<includeonly>{{
+
<includeonly>{{Citation/core
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
+
  |Citation class=web
  ||You must specify  '''''title = ''''' and '''''url = ''''' when using {{[[Template:cite web|cite web]]}}.
+
  |Surname1 = {{#if:{{{last|}}}
{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}
+
                |{{{last}}}
}}{{
+
                |{{#if:{{{last1|}}}
#if: {{{archiveurl|}}}{{{archivedate|}}}  
+
                  |{{{last1}}}
   | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
+
                  |{{{author|}}}
    ||You must specify '''''archiveurl = ''''' and '''''archivedate = ''''' when using {{[[Template:cite web|cite web]]}}.
+
                }}
{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}
+
              }}
}}
+
  |Surname2 = {{#if:{{{last2|}}}|{{{last2}}}|{{{coauthors|}}}}}
}}{{#if: {{{author|}}}{{{last|}}}
+
  |Surname3 = {{{last3|}}}
   | {{#if: {{{authorlink|}}}
+
  |Surname4 = {{{last4|}}}
    | [[{{{authorlink}}}|{{#if: {{{last|}}}
+
   |Surname5 = {{{last5|}}}
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
+
  |Surname6 = {{{last6|}}}
      | {{{author}}}
+
  |Surname7 = {{{last7|}}}
    }}]]
+
  |Surname8 = {{{last8|}}}
    | {{#if: {{{last|}}}
+
  |Surname9 = {{{last9|}}}
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
+
  |Given1 = {{#if:{{{first|}}}|{{{first}}}|{{{first1|}}}}}
      | {{{author}}}
+
  |Given2 = {{{first2|}}}
    }}
+
   |Given3 = {{{first3|}}}
   }}
+
  |Given4 = {{{first4|}}}
}}{{#if: {{{author|}}}{{{last|}}}
+
  |Given5 = {{{first5|}}}
   | {{#if: {{{coauthors|}}}| <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
+
  |Given6 = {{{first6|}}}
}}{{#if: {{{author|}}}{{{last|}}}|
+
  |Given7 = {{{first7|}}}
    {{#if: {{{date|}}}
+
  |Given8 = {{{first8|}}}
    | &#32;({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|[[{{{date}}}]]|{{{date}}}}})
+
  |Given9 = {{{first9|}}}
    | {{#if: {{{year|}}}
+
  |Authorlink1 = {{#if:{{{authorlink|}}}|{{{authorlink}}}|{{{authorlink1|}}}}}
      | {{#if: {{{month|}}}
+
  |Authorlink2 = {{{authorlink2|}}}
        | &#32;({{{month}}} {{{year}}})
+
  |Authorlink3 = {{{authorlink3|}}}
        | &#32;({{{year}}})
+
  |Authorlink4 = {{{authorlink4|}}}
      }}
+
   |Authorlink5 = {{{authorlink5|}}}
    }}
+
  |Authorlink6 = {{{authorlink6|}}}
   |}}
+
  |Authorlink7 = {{{authorlink7|}}}
}}{{#if: {{{last|}}}{{{author|}}}
+
   |Authorlink8 = {{{authorlink8|}}}
  | .&#32;}}{{
+
  |Authorlink9 = {{{authorlink9|}}}
  #if: {{{editor|}}}
+
  |Year={{#if:{{{year|}}}|{{{year}}}   <!-- attempt to derive year from date, if possible -->
  | &#32;{{{editor}}}:
+
          |{{#if: {{{date|}}}
}}{{#if: {{{archiveurl|}}}
+
            |{{#iferror: {{#time:Y|{{{date|}}} }}
    | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
+
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
    | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}}}
+
                |{{#time:Y|{{{date|}}} }}
}}{{#if: {{{format|}}} | &#32;({{{format|}}})
+
              }}
}}{{#if: {{{language|}}} | &#32;<span style="color:#555;">({{{language}}})</span>  
+
            |{{{publication-date|}}} <!-- last resort -->
}}{{#if: {{{work|}}}
+
          }}
   | .&#32;''{{{work}}}''
+
        }}
}}{{#if: {{{pages|}}}
+
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{#if:{{{year|}}}|{{{year}}}|{{{publication-date|}}}}}}}
  | &#32;{{{pages}}}
+
  |Title={{{work|}}}
}}{{#if: {{{publisher|}}}
+
  |At = {{#if:{{{page|}}}|{{{page}}}|{{{pages|}}}}}
   | .&#32;{{{publisher}}}{{#if: {{{author|}}}{{{last|}}}
+
  |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]]}}}}
    |
+
   |IncludedWorkURL = {{#if:{{{archiveurl|}}}|{{{archiveurl|}}}|{{{url|}}}}}
    | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
+
   |PublicationPlace = {{{location|}}}
   }}
+
  |Publisher = {{{publisher|}}}
}}{{#if: {{{author|}}}{{{last|}}}
+
  |language = {{{language|}}}
  ||{{#if: {{{date|}}}
+
  |format = {{{format|}}}
    | &#32;({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|[[{{{date}}}]]|{{#ifeq:{{#time:Y-m-d|{{{date}}}}}|1970-01-01|[[{{{date}}}]]|{{{date}}}}}}})
+
  |DOI={{{doi|{{{DOI|}}}}}}
    | {{#if: {{{year|}}}
+
   |AccessDate={{#if:{{{accessdate|}}}|{{#if: {{{accessyear|}}}|{{{accessdate}}} {{{accessyear}}}|{{{accessdate}}}}}|{{
      | {{#if: {{{month|}}}
+
    #if:{{{accessdaymonth|}}}|{{{accessdaymonth}}} {{{accessyear|}}}|{{
        | &#32;({{{month}}} {{{year}}})
+
      #if:{{{accessmonthday|}}}|{{{accessmonthday}}} {{{accessyear|}}}|
        | &#32;({{{year}}})
+
      {{{accessday|}}} {{{accessmonth|}}} {{{accessyear|}}}
 
       }}
 
       }}
 
     }}
 
     }}
  }}
+
  }}
}}.{{#if: {{{archivedate|}}}
+
  |DateFormat={{#if:{{{dateformat|}}}|{{{dateformat}}}|none}}
  | &#32;Archived from [{{{url}}} the original] on [[{{{archivedate}}}]].
+
  |quote = {{{quote|}}}
}}{{#if: {{{doi|}}}  
+
  |Ref={{{ref|}}}
   | &#32;[[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}].
+
   |Sep = {{{separator|{{{seperator|.}}}}}}
}}{{#if: {{{accessdate|}}}
+
   |PS={{#if:{{{quote|}}}||{{{postscript|.}}}}}
   | &#32;Retrieved on [[{{{accessdate}}}]]{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}.
+
  |OriginalURL = {{#if:{{{archiveurl|}}}|{{{url|}}}}}
}}{{#if: {{{accessmonthday|}}}
+
  |ArchiveDate= {{{archivedate|}}}
  | &#32;Retrieved on {{{accessmonthday}}}{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}.
+
}}{{#if:{{{accessdaymonth|}}}{{{accessmonthday|}}}|[[Category:Cite web templates using unusual accessdate parameters|{{FULLPAGENAME}}]]}}</includeonly><noinclude>
}}{{#if: {{{accessdaymonth|}}}
+
{{pp-template}}
  | &#32;Retrieved on {{{accessdaymonth}}}{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}.
+
{{documentation}}
}}{{#if: {{{quote|}}}
+
  | &nbsp;“{{{quote}}}”
+
}}</includeonly><noinclude>
+
 
+
{{pp-template|small=yes}}
+
{{Documentation}}
+
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
+
 
</noinclude>
 
</noinclude>

Revision as of 03:52, 15 May 2009


[create] 50px Template documentation
Personal tools