Help:Citation Style 1/snippets

From Wikipedia, the free encyclopedia
Jump to: navigation, search

This page illustrates snippets of markup used to build Citation Style 1 templates.

class[edit]

{{citation/core
|Citation class=

author[edit]

|Surname1={{{last|{{{last1|{{{author|{{{author1|{{{authors|{{{surname|{{{surname1|}}}}}}}}}}}}}}}}}}}}}
|Surname2={{{last2|{{{author2|{{{surname2|}}}}}}}}}
|Surname3={{{last3|{{{author3|{{{surname3|}}}}}}}}}
|Surname4={{{last4|{{{author4|{{{surname4|}}}}}}}}}
|Surname5={{{last5|{{{author5|{{{surname5|}}}}}}}}}
|Surname6={{{last6|{{{author6|{{{surname6|}}}}}}}}}
|Surname7={{{last7|{{{author7|{{{surname7|}}}}}}}}}
|Surname8={{{last8|{{{author8|{{{surname8|}}}}}}}}}
|Surname9={{{last9|{{{author9|{{{surname9|}}}}}}}}}

|Given1={{{first|{{{first1|{{{given|{{{given1|}}}}}}}}}}}}
|Given2={{{first2|{{{given2|}}}}}}
|Given3={{{first3|{{{given3|}}}}}}
|Given4={{{first4|{{{given4|}}}}}}
|Given5={{{first5|{{{given5|}}}}}}
|Given6={{{first6|{{{given6|}}}}}}
|Given7={{{first7|{{{given7|}}}}}}
|Given8={{{first8|{{{given8|}}}}}}
|Given9={{{first9|{{{given9|}}}}}}

|Authorlink1={{{authorlink|{{{authorlink1|{{{author-link|{{{author1-link|}}}}}}}}}}}}
|Authorlink2={{{authorlink2|{{{author2-link|}}}}}}
|Authorlink3={{{authorlink3|{{{author3-link|}}}}}}
|Authorlink4={{{authorlink4|{{{author4-link|}}}}}}
|Authorlink5={{{authorlink5|{{{author5-link|}}}}}}
|Authorlink6={{{authorlink6|{{{author6-link|}}}}}}
|Authorlink7={{{authorlink7|{{{author7-link|}}}}}}
|Authorlink8={{{authorlink8|{{{author8-link|}}}}}}
|Authorlink9={{{authorlink9|{{{author9-link|}}}}}}

|Coauthors={{{coauthors|{{{coauthor|}}}}}}

|Other={{{others|}}}

date[edit]

|Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
           #if: {{{date|}}}
           |{{
              #iferror:{{#time:Y|{{{date|}}} }}
              |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
              |{{#time:Y|{{{date|}}} }}
            }}
           |{{{publication-date|}}} <!-- last resort -->
         }}
      }}}
|YearNote={{{origyear|}}}
|Date={{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}

title[edit]

|Title={{{title|}}}
|TransTitle={{{trans_chapter|}}}
|TransItalic={{{trans_title|}}}
|IncludedWorkTitle={{{chapter|{{{contribution|}}}}}}
|TitleType={{{type|}}}
|language={{{language|}}}


url[edit]

|URL={{#if:{{{archiveurl|}}}
       |{{#ifeq: {{{deadurl|}}} | no | {{{url|}}} | {{{archiveurl|}}}}}
       |{{{url|}}}
     }}
|IncludedWorkURL={{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
|AccessDate={{{accessdate|}}}
|OriginalURL={{{url|}}}
|ArchiveURL={{{archiveurl|}}}
|ArchiveDate={{{archivedate|}}}
|DeadURL={{{deadurl|}}}
|format={{{format|}}}

periodical[edit]

|Periodical={{{work|{{{journal|{{{newspaper|{{{magazine|{{{periodical|}}}}}}}}}}}}}}}
|Issue={{{issue|{{{number|}}}}}}

|At={{#if: {{{work|{{{journal|{{{newspaper|{{{magazine|{{{periodical|}}}}}}}}}}}}}}}
        |{{{pages|{{{page|{{{at|}}}}}}}}}
          |{{#if: {{{page|}}}|{{#if:{{{nopp|}}}||p. }}{{{page}}}
            |{{#if: {{{pages|}}}|{{#if:{{{nopp|}}}||pp. }}{{{pages}}}
              |{{{at|}}} }} }} }}
|Periodical={{{work|{{{journal|{{{newspaper|{{{magazine|{{{periodical|}}}}}}}}}}}}}}}
|Issue={{{issue|{{{number|}}}}}}
|TitleNote={{{department|}}}

|At={{#if: {{{work|{{{journal|{{{newspaper|{{{magazine|{{{periodical|}}}}}}}}}}}}}}}
        |{{{pages|{{{page|{{{at|}}}}}}}}}
          |{{#if: {{{page|}}}|{{#if:{{{nopp|}}}||p. }}{{{page}}}
            |{{#if: {{{pages|}}}|{{#if:{{{nopp|}}}||pp. }}{{{pages}}}
              |{{{at|}}} }} }} }}

at[edit]

standard

|At={{#if: {{{page|}}}|{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
      |{{#if: {{{pages|}}}|{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
      |{{{at|}}}}}
    }}

minutes, time, timecaption

|At={{#if:{{{minutes|}}}|{{{minutes}}} minutes in
       |{{#if:{{{time|}}}|{{{timecaption|Event occurs at}}} {{{time}}}
          |{{#if: {{{page|}}}|{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
             |{{#if: {{{pages|}}}|{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
                |{{{at|}}}}}}}}}
    }}

edition, series, volume[edit]

|Edition={{{edition|}}}
|Series={{{series|{{{version|}}}}}}
|Volume={{{volume|}}}
|Series={{#if:{{{series|}}}|{{#if:{{{serieslink|}}}|''[[{{{serieslink|}}}|{{{series|}}}]]''|''{{{series|}}}''}}}}

publisher[edit]

|Publisher={{{publisher|}}}
|Place={{{location|{{{place|}}}}}}
|PublicationPlace={{{location|{{{place|{{{publication-place|}}}}}}}}}
|PublicationDate={{{publication-date|}}}

editor[edit]

|EditorSurname1={{{editor-last|{{{editor1-last|{{{editor|{{{editors|{{{editor-surname|{{{editor1-surname|}}}}}}}}}}}}}}}}}}
|EditorSurname2={{{editor2-last|{{{editor2-surname|}}}}}}
|EditorSurname3={{{editor3-last|{{{editor3-surname|}}}}}}
|EditorSurname4={{{editor4-last|{{{editor4-surname|}}}}}}
|EditorGiven1={{{editor-first|{{{editor1-first|{{{editor-given|{{{editor1-given|}}}}}}}}}}}}
|EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
|EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
|EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
|Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
|Editorlink2={{{editor2-link|}}}
|Editorlink3={{{editor3-link|}}}
|Editorlink4={{{editor4-link|}}}

identifiers[edit]

|ARXIV={{{arxiv|}}}
|ASIN={{{asin|{{{ASIN|}}}}}}
|ASIN-TLD={{{asin-tld|}}}
|BIBCODE={{{bibcode|}}}
|DOI={{{doi|{{{DOI|}}}}}}
|DoiBroken={{{doi_brokendate|{{{doi_inactivedate|}}}}}}
|ISBN={{{isbn|{{{ISBN|}}}}}}
|ISSN={{{issn|{{{ISSN|}}}}}}
|JFM={{{jfm|{{{JFM|}}}}}}
|JSTOR={{{jstor|{{{JSTOR|}}}}}}
|LCCN={{{lccn|{{{LCCN|}}}}}}
|MR={{{mr|{{{MR|}}}}}}
|OCLC={{{oclc|{{{OCLC|}}}}}}
|OL={{{ol|{{{OL|}}}}}}
|OSTI={{{osti|{{{OSTI|}}}}}}
|PMC={{{pmc|{{{PMC|}}}}}}
|PMID={{{pmid|{{{PMID|}}}}}}
|RFC={{{rfc|{{{RFC|}}}}}}
|SSRN={{{ssrn|{{{SSRN|}}}}}}
|ZBL={{{zbl|}}}
|ID={{{id|{{{ID|}}}}}}

lay[edit]

|laysummary={{{laysummary|}}}
|laydate={{{laydate|}}}
|laysource={{{laysource|}}}

quote[edit]

|quote={{{quote|}}}

ref[edit]

|Ref={{{ref|}}}

display[edit]

|amp={{{lastauthoramp|}}}
|AuthorMask={{{author-mask|{{{authormask|}}}}}}
|AuthorSep={{#ifeq:{{{author-separator|}}}|;|&#059;|{{{author-separator|&#059;}}}}}&#32;
|NameSep={{{author-name-separator|,}}}&#32;
|PS={{#if:{{{quote|}}}||{{{postscript|.}}}}}
|Sep={{#ifeq:{{{separator|{{{seperator}}} }}}|;|&#059;|{{{separator|{{{seperator|.}}} }}} }}
|template doc demo={{{template doc demo|}}}
|Trunc={{#if:{{{display-authors|}}}|{{{display-authors}}}|8}}

deprecated[edit]

}}{{#if:{{{access-date|}}}{{{accessdaymonth|}}}{{{accessday|}}}{{{accessmonthday|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{dateformat|}}}{{{day|}}}{{{doilabel|}}}
|[[Category:Pages containing cite templates with deprecated parameters|{{NAMESPACE}} {{PAGENAME}}]]}}<noinclude>
{{documentation}}
</noinclude>
}}{{#if:{{{access-date|}}}{{{accessdaymonth|}}}{{{accessday|}}}{{{accessmonthday|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{dateformat|}}}{{{day|}}}{{{doilabel|}}}{{{date2|}}}{{{month2|}}}{{{year2|}}}
|[[Category:Pages containing cite templates with deprecated parameters|{{NAMESPACE}} {{PAGENAME}}]]}}<noinclude>
{{documentation}}
</noinclude>

parameter check[edit]

{{#if:{{{surname|}}}{{{surname1|}}}{{{surname2|}}}{{{surname3|}}}{{{surname4|}}}{{{surname5|}}}{{{surname6|}}}{{{surname7|}}}{{{surname8|}}}{{{surname9|}}}{{{given|}}}{{{given1|}}}{{{given2|}}}{{{given3|}}}{{{given4|}}}{{{given5|}}}{{{given6|}}}{{{given7|}}}{{{given8|}}}{{{given9|}}}{{{editor-surname|}}}{{{editor1-surname|}}}{{{editor2-surname|}}}{{{editor3-surname|}}}{{{editor4-surname|}}}
|[[Category:Pages containing cite templates with parameter set 1|{{NAMESPACE}} {{PAGENAME}}]]}}

{{#if:{{{author-link|}}}{{{author1-link|}}}{{{author2-link|}}}{{{author3-link|}}}{{{author4-link|}}}{{{author5-link|}}}{{{author6-link|}}}{{{author7-link|}}}{{{author8-link|}}}{{{author9-link|}}}
|[[Category:Pages containing cite templates with parameter set 2|{{NAMESPACE}} {{PAGENAME}}]]}}

{{#if:{{{author-mask|}}}{{{coauthor|}}}{{{contribution|}}}{{{chapter-url|}}}{{{contribution-url|}}}{{{place|}}}{{{doi_inactivedate|}}}{{{pmc-embargo-date|}}}{{{in|}}}
|[[Category:Pages containing cite templates with parameter set 3|{{NAMESPACE}} {{PAGENAME}}]]}}

{{#if:{{{DOI|}}}{{{ISBN|}}}{{{ISSN|}}}{{{JFM|}}}{{{JSTOR|}}}{{{LCCN|}}}{{{MR|}}}{{{OCLC|}}{{{OL|}}}{{{OSTI|}}}{{{PMC|}}}{{{PMID|}}}{{{RFC|}}}{{{SSRN|}}}{{{ID|}}}
|[[Category:Pages containing cite templates with parameter set 4|{{NAMESPACE}} {{PAGENAME}}]]}}