Jump to content

Template:Cite web: Difference between revisions

From IdeaWazaWiki
wikademia>Happy-melon
remove alternative parameter names that were not supported in original code, per talk
wikademia>Wikademia
m 1 revision
 
(19 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Citation/core
<includeonly>{{Citation/core
   |Citation class=web
   |Citation class=web
   |Surname1 = {{#if: {{{author|}}} | {{{author}}} | {{{last|}}} }}
   |Surname1 = {{#if:{{{last|}}}
  |Surname2 = {{#if: {{{author2|}}} | {{{author2}}} | {{{last2|}}} }}
                |{{{last}}}
   |Surname3 = {{#if: {{{author3|}}} | {{{author3}}} | {{{last3|}}} }}
                |{{#if:{{{last1|}}}
   |Surname4 = {{#if: {{{author4|}}} | {{{author4}}} | {{{last4|}}} }}
                  |{{{last1}}}
   |Surname5 = {{#if: {{{author5|}}} | {{{author5}}} | {{{last5|}}} }}
                  |{{{author|}}}  
   |Surname6 = {{#if: {{{author6|}}} | {{{author6}}} | {{{last6|}}} }}
                }}
   |Surname7 = {{#if: {{{author7|}}} | {{{author7}}} | {{{last7|}}} }}
              }}
   |Surname8 = {{#if: {{{author8|}}} | {{{author8}}} | {{{last8|}}} }}
   |Surname2 = {{#if:{{{last2|}}}|{{{last2}}}|{{{coauthors|}}}}}
   |Surname9 = {{#if: {{{author9|}}} | {{{author9}}} | {{{last9|}}} }}
   |Surname3 = {{{last3|}}}
  |Given1 = {{{first|}}}
  |Surname4 = {{{last4|}}}
   |Surname5 = {{{last5|}}}
   |Surname6 = {{{last6|}}}
   |Surname7 = {{{last7|}}}
   |Surname8 = {{{last8|}}}
  |Surname9 = {{{last9|}}}
   |Given1 = {{#if:{{{first|}}}|{{{first}}}|{{{first1|}}}}}
   |Given2 = {{{first2|}}}
   |Given2 = {{{first2|}}}
   |Given3 = {{{first3|}}}
   |Given3 = {{{first3|}}}
Line 19: Line 25:
   |Given8 = {{{first8|}}}
   |Given8 = {{{first8|}}}
   |Given9 = {{{first9|}}}
   |Given9 = {{{first9|}}}
   |Authorlink1 = {{{authorlink|}}}
   |Authorlink1 = {{#if:{{{authorlink|}}}|{{{authorlink}}}|{{{authorlink1|}}}}}
   |Authorlink2 = {{{authorlink2|}}}
   |Authorlink2 = {{{authorlink2|}}}
   |Authorlink3 = {{{authorlink3|}}}
   |Authorlink3 = {{{authorlink3|}}}
Line 28: Line 34:
   |Authorlink8 = {{{authorlink8|}}}
   |Authorlink8 = {{{authorlink8|}}}
   |Authorlink9 = {{{authorlink9|}}}
   |Authorlink9 = {{{authorlink9|}}}
   |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
   |Year={{#if:{{{year|}}}|{{{year}}}   <!-- attempt to derive year from date, if possible -->
            #if: {{{date|}}}
          |{{#if: {{{date|}}}
             |{{
             |{{#iferror: {{#time:Y|{{{date|}}} }}
                #iferror:{{#time:Y|{{{date|}}} }}
                 |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
                 |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
                 |{{#time:Y|{{{date|}}} }}
                 |{{#time:Y|{{{date|}}} }}
Line 37: Line 42:
             |{{{publication-date|}}} <!-- last resort -->
             |{{{publication-date|}}} <!-- last resort -->
           }}
           }}
         }}}
         }}
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{#if:{{{year|}}}|{{{year}}}|{{{publication-date|}}}}}}}
   |Title={{{work|}}}
   |Title={{{work|}}}
   |At = {{
   |At = {{#if:{{{page|}}}|{{{page}}}|{{{pages|}}}}}
          #if: {{{journal|{{{periodical|{{{newspaper|{{{magazine|}}}}}}}}}}}}
   |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]]}}}}
          |{{{pages|{{{page|{{{at|}}}}}}}}}
   |IncludedWorkURL = {{#if:{{{archiveurl|}}}|{{{archiveurl|}}}|{{{url|}}}}}
          |{{
            #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]]}}}}}}
   |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|}}}
   |DOI={{{doi|}}}
   |DOI={{{doi|{{{DOI|}}}}}}
   |AccessDate={{{accessdate|}}}
   |AccessDate={{#if:{{{accessdate|}}}|{{{accessdate}}}|{{
   |DateFormat={{{dateformat|}}}
    #if:{{{accessdaymonth|}}}|{{{accessdaymonth}}} {{{accessyear|}}}|{{
      #if:{{{accessmonthday|}}}|{{{accessmonthday}}} {{{accessyear|}}}|
      {{{accessday|}}} {{{accessmonth|}}} {{{accessyear|}}}
      }}
    }}
  }}
   |DateFormat={{#if:{{{dateformat|}}}|{{{dateformat}}}|none}}
   |quote = {{{quote|}}}
   |quote = {{{quote|}}}
   |Ref={{{ref|}}}
   |Ref={{{ref|}}}
   |Sep = {{{separator|{{{seperator|.}}}}}}
   |Sep = {{{separator|{{{seperator|.}}}}}}
   |PS={{#if:{{{quote|}}}||.}}
   |PS={{#if:{{{quote|}}}||.}}
   |Archive = {{
   |OriginalURL = {{#if:{{{archiveurl|}}}|{{{url|}}}}}
              #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]]}}}}
  |ArchiveDate= {{{archivedate|}}}
            }}
}}{{#if:{{{accessdaymonth|}}}{{{accessmonthday|}}}|[[Category:Cite web templates using unusual accessdate parameters|{{NAMESPACE}} {{PAGENAME}}]]}}</includeonly><noinclude>
}}<noinclude>
{{pp-template}}
{{pp-template|small=yes}}
{{documentation}}
{{documentation}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
</noinclude>
</noinclude>

Latest revision as of 17:36, 10 April 2009

[create] Template documentation