Template:Citation/identifier: Difference between revisions

From Regenerate Willamette Valley
Appropedia>Sophivorus
No edit summary
 
Line 1: Line 1:
{{#switch:{{{identifier}}}
{{#switch:{{{identifier}}}
  | arxiv = [[wikipedia:arXiv]]:[http://arxiv.org/abs/{{{input1|}}}{{{input2|}}} {{#tag:nowiki|{{{input1|}}}{{{input2|}}}}}]<!--
  |arxiv=[[arXiv]]:[https://arxiv.org/abs/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
          -->{{#if:{{{input3|}}}
 
              |&nbsp;[{{{input3|}}}]
|asin=[[Amazon Standard Identification Number|ASIN]]&nbsp;[https://www.amazon.<!--
               |
    -->{{#switch: {{{input2|}}}
          |ca=ca
          |cn=cn
          |de=de
          |ed=es
          |fr=fr
          |it=it
          |jp=co.jp
          |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}}
        }}
 
|isbn={{ISBN|{{{input1|}}}}}
 
|issn=[[International Standard Serial Number|ISSN]]&nbsp;[https://www.worldcat.org/issn/{{{input1|}}} {{#tag:nowiki|{{{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|}}}}}]
 
|jstor=[[JSTOR]]&nbsp;[http://www.jstor.org/stable/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
|lccn=[[Library of Congress Control Number|LCCN]]&nbsp;[http://lccn.loc.gov/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
|mr=[[Mathematical Reviews|MR]]&nbsp;[http://www.ams.org/mathscinet-getitem?mr{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
|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>
             }}
             }}
| doi = {{#if:{{{input2|}}}
          }}
         |[[wikipedia:Digital object identifier|doi]]:{{{input1|}}} (inactive {{{input2|}}}) {{#ifeq: {{NAMESPACE}} | {{ns:0}}
         }}
                  |[[Category:Pages with DOIs inactive since {{#time: Y | {{{input2|}}} }}]]
 
                  |
  |osti=[[Office of Scientific and Technical Information|OSTI]]&nbsp;[http://www.osti.gov/energycitations/product.biblio.jsp?osti_id{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
                  }}
 
        |[[wikipedia:Digital object identifier|doi]]:[http://dx.doi.org/{{urlencode:{{{input1|}}}}} {{#tag:nowiki|{{{input1|}}}}}]
  |pmc=[[PubMed Central|PMC]]&nbsp;[https://www.ncbi.nlm.nih.gov/pmc/articles/PMC{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
        }}
 
  | asin = [[wikipedia:Amazon Standard Identification Number|ASIN]]&nbsp;[http://www.amazon.com/dp/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
  |pmid=[[PubMed Identifier|PMID]]&nbsp;[https://www.ncbi.nlm.nih.gov/pubmed/{{{input1|}}} {{#tag:nowiki|{{{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|}}}}}]
  |rfc=[[Request for Comments|RFC]]&nbsp;[https://tools.ietf.org/html/rfc{{{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|}}}]]
  |ssrn=[[Social Science Research Network|SSRN]]&nbsp;[http://ssrn.com/abstract{{=}}{{{input1|}}} {{#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|}}}}}]
  |zbl=[[Zentralblatt MATH|Zbl]]&nbsp;[http://www.zentralblatt-math.org/zmath/en/search/?q{{=}}an:{{{input1|}}}&format{{=}}complete {{#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|}}}}}]
}}<noinclude>
| pmid = [[wikipedia:PubMed Identifier|PMID]]&nbsp;[http://www.ncbi.nlm.nih.gov/pubmed/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
{{documentation}}
  | zbl = [[wikipedia:Zentralblatt MATH|ZBL]]&nbsp;[http://www.zentralblatt-math.org/zmath/en/search/?q{{=}}an:{{{input1|}}}&format{{=}}complete {{#tag:nowiki|{{{input1|}}}}}]
</noinclude>
}}<noinclude>{{Documentation}}</noinclude>

Revision as of 22:11, 21 June 2023

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

|arxiv=arXiv:
|asin=ASIN [https://www.amazon.{{#switch: 
         |ca=ca
         |cn=cn
         |de=de
         |ed=es
         |fr=fr
         |it=it
         |jp=co.jp
         |co.jp=co.jp
         |uk=co.uk
         |co.uk=co.uk
         |#default=com
        }}/dp/ ]
|bibcode=Bibcode 
|doi={{#ifeq:Template:Str left|10.
        |{{#if:
          |doi: (inactive ) {{#ifeq:Template|
               |[[Category:Pages with DOIs inactive since {{#time: Y |  }}]]
               |
              }}
          |doi:
         }}
        |Error: Bad DOI specified{{#if:| when using {{[[Template:{{{2}}}|{{{2}}}]]}}}}{{#ifeq:|true||Template:Namespace detect showall}}
       }}
|isbn=Template:ISBN
|issn=ISSN 
|jfm=JFM 
|jstor=JSTOR 
|lccn=LCCN 
|mr=MR 
|oclc=OCLC 
|ol={{#if:Template:Str endswith
         |OL[1]
         |{{#if:Template:Str endswith
           |OL[2]
           |{{#if:Template:Str endswith
             |OL[3]
             |
            }}
          }}
        }}
|osti=OSTI 
|pmc=PMC 
|pmid=PMID 
|rfc=RFC 
|ssrn=SSRN 
|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}}}}}}}}