Template:Citation/identifier: Difference between revisions

From Regenerate Willamette Valley
m 1 revision imported
Line 1: Line 1:
{{#switch:{{{identifier}}}
{{#switch:{{{identifier}}}
  |arxiv=[[arXiv]]:[https://arxiv.org/abs/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
  | arxiv = [[wikipedia:arXiv]]:[http://arxiv.org/abs/{{{input1|}}}{{{input2|}}} {{#tag:nowiki|{{{input1|}}}{{{input2|}}}}}]<!--
 
          -->{{#if:{{{input3|}}}
|asin=[[Amazon Standard Identification Number|ASIN]]&nbsp;[https://www.amazon.<!--
              |&nbsp;[{{{input3|}}}]
    -->{{#switch: {{{input2|}}}
              |
          |ca=ca
            }}
          |cn=cn
  | doi = {{#if:{{{input2|}}}
          |de=de
        |[[wikipedia:Digital object identifier|doi]]:{{{input1|}}} (inactive {{{input2|}}}) {{#ifeq: {{NAMESPACE}} | {{ns:0}}
          |ed=es
                  |[[Category:Pages with DOIs inactive since {{#time: Y | {{{input2|}}} }}]]
          |fr=fr
                  |
          |it=it
                  }}
          |jp=co.jp
        |[[wikipedia:Digital object identifier|doi]]:[http://dx.doi.org/{{urlencode:{{{input1|}}}}} {{#tag:nowiki|{{{input1|}}}}}]
          |co.jp=co.jp
          |uk=co.uk
          |co.uk=co.uk
          |#default=com
        }}/dp/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
|bibcode=[[Bibcode]] [https://adsabs.harvard.edu/abs/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  |doi={{#ifeq:{{str left|{{{input1|}}}|3}}|10.
        |{{#if:{{{input2|}}}
          |[[Digital object identifier|doi]]:{{{input1|}}} (inactive {{{input2|}}}) <!--
            -->{{#ifeq:{{NAMESPACE}}|{{ns:0}}
                |[[Category:Pages with DOIs inactive since {{#time: Y | {{{input2|}}} }}]]
                |
              }}
          |[[Digital object identifier|doi]]:[https://dx.doi.org/{{urlencode:{{{input1|}}}}} {{#tag:nowiki|{{{input1|}}}}}]
          }}
        |{{citation error|nocat={{{input3|}}}|cat=Pages with DOI errors|Bad DOI specified}}
         }}
         }}
 
  | asin = [[wikipedia:Amazon Standard Identification Number|ASIN]]&nbsp;[http://www.amazon.com/dp/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
  |isbn={{ISBN|{{{input1|}}}}}
  | bibcode = [[wikipedia:Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  | jfm = [[wikipedia:Jahrbuch über die Fortschritte der Mathematik|JFM]]&nbsp;[http://www.zentralblatt-math.org/zmath/en/search/?q{{=}}an:{{{input1|}}}&format{{=}}complete {{#tag:nowiki|{{{input1|}}}}}]
  |issn=[[International Standard Serial Number|ISSN]]&nbsp;[https://www.worldcat.org/issn/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
  | jstor = [[wikipedia:JSTOR]]&nbsp;[http://www.jstor.org/stable/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  | isbn = [[wikipedia:International Standard Book Number|ISBN]]&nbsp;[[Special:BookSources/{{{input1|}}}|{{{input1|}}}]]
  |jfm=[[Jahrbuch über die Fortschritte der Mathematik|JFM]]&nbsp;[http://www.zentralblatt-math.org/zmath/en/search/?q{{=}}an:{{{input1|}}}&format{{=}}complete {{#tag:nowiki|{{{input1|}}}}}]
  | issn = [[wikipedia:International Standard Serial Number|ISSN]]&nbsp;[http://www.worldcat.org/issn/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  | mr = [[wikipedia:Mathematical Reviews|MR]][http://www.ams.org/mathscinet-getitem?mr{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
  |jstor=[[JSTOR]]&nbsp;[http://www.jstor.org/stable/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
  | oclc = [[wikipedia:Online Computer Library Center|OCLC]]&nbsp;[http://www.worldcat.org/oclc/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  | pmc = [[wikipedia:PubMed Central|PMC]]&nbsp;[http://www.pubmedcentral.gov/articlerender.fcgi?tool{{=}}pmcentrez&artid{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
  |lccn=[[Library of Congress Control Number|LCCN]]&nbsp;[http://lccn.loc.gov/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
  | pmid = [[wikipedia:PubMed Identifier|PMID]]&nbsp;[http://www.ncbi.nlm.nih.gov/pubmed/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  | zbl = [[wikipedia:Zentralblatt MATH|ZBL]]&nbsp;[http://www.zentralblatt-math.org/zmath/en/search/?q{{=}}an:{{{input1|}}}&format{{=}}complete {{#tag:nowiki|{{{input1|}}}}}]
  |mr=[[Mathematical Reviews|MR]]&nbsp;[http://www.ams.org/mathscinet-getitem?mr{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
}}<noinclude>{{Documentation}}</noinclude>
 
|oclc=[[OCLC]]&nbsp;[https://www.worldcat.org/oclc/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  |ol={{#if:{{str endswith|{{{input1|}}}|A}}
          |[[Open Library|OL]][http://openlibrary.org/authors/OL{{urlencode:{{{input1|}}}}} {{{input1|}}}]
          |{{#if:{{str endswith|{{{input1|}}}|M}}
            |[[Open Library|OL]][http://openlibrary.org/books/OL{{urlencode:{{{input1|}}}}} {{{input1|}}}]
            |{{#if:{{str endswith|{{{input1|}}}|W}}
              |[[Open Library|OL]][http://openlibrary.org/works/OL{{urlencode:{{{input1|}}}}} {{{input1|}}}]
              |<includeonly>[[Category:Pages with OL errors]]<span class="error">Error: Bad OL specified!</span></includeonly>
            }}
          }}
        }}
 
  |osti=[[Office of Scientific and Technical Information|OSTI]]&nbsp;[http://www.osti.gov/energycitations/product.biblio.jsp?osti_id{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  |pmc=[[PubMed Central|PMC]]&nbsp;[https://www.ncbi.nlm.nih.gov/pmc/articles/PMC{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  |pmid=[[PubMed Identifier|PMID]]&nbsp;[https://www.ncbi.nlm.nih.gov/pubmed/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
  |rfc=[[Request for Comments|RFC]]&nbsp;[https://tools.ietf.org/html/rfc{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
|ssrn=[[Social Science Research Network|SSRN]]&nbsp;[http://ssrn.com/abstract{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
|zbl=[[Zentralblatt MATH|Zbl]]&nbsp;[http://www.zentralblatt-math.org/zmath/en/search/?q{{=}}an:{{{input1|}}}&format{{=}}complete {{#tag:nowiki|{{{input1|}}}}}]
 
}}<noinclude>
{{documentation}}
</noinclude>

Revision as of 23:06, 5 January 2025

{{#switch:{{{identifier}}}

| arxiv = wikipedia:arXiv:{{#if:
             | []
             |
            }}
| doi = {{#if:
        |doi: (inactive ) {{#ifeq: Template | 
                  |[[Category:Pages with DOIs inactive since {{#time: Y |  }}]]
                  |
                 }}
        |doi:
       }}
| asin = ASIN 
| bibcode = wikipedia:Bibcode
| jfm = JFM 
| jstor = wikipedia:JSTOR 
| isbn = ISBN [[Special:BookSources/|]]
| issn = ISSN 
| mr = MR
| oclc = OCLC 
| pmc = PMC 
| pmid = PMID 
| zbl = ZBL 

}}

Template documentation{{#if:Lua error in Module:Appropedia at line 16: attempt to index field 'appropedia' (a nil value).|{{#if:|| edit documentation}}}}

{{#if:|{{{content}}}|{{#if:Lua error in Module:Appropedia at line 16: attempt to index field 'appropedia' (a nil value).|{{#ifeq:identifier|doc|Template:Notice}}

This subtemplate generates identifiers for its parent template. |{{#if:http://willamette.earth/wiki/index.php?title=Template:Citation/identifier/doc&action=edit&preload=Preload:Template_documentation%7CCreate|{{#if:|[[:{{{page}}}|Create]]|Create}}}}}}}}