Difference between revisions of "Template:Citation/identifier"
RealRecipes (talk | contribs) m (1 revision: 10) |
(sync from sandbox, per request at Template talk:Citation#Update OL behaviour) |
||
| Line 7: | Line 7: | ||
}} | }} | ||
|asin={{hide in print | |asin={{hide in print | ||
| − | |[[Amazon Standard Identification Number|ASIN]] [ | + | |[[Amazon Standard Identification Number|ASIN]] [//www.amazon.<!-- |
-->{{#switch: {{{input2|}}} | -->{{#switch: {{{input2|}}} | ||
|ca=ca | |ca=ca | ||
| Line 57: | Line 57: | ||
}} | }} | ||
|issn={{hide in print | |issn={{hide in print | ||
| − | |[[International Standard Serial Number|ISSN]] [ | + | |[[International Standard Serial Number|ISSN]] [//www.worldcat.org/issn/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}] |
}}<!-- | }}<!-- | ||
-->{{only in print | -->{{only in print | ||
| Line 69: | Line 69: | ||
}} | }} | ||
|jstor={{hide in print | |jstor={{hide in print | ||
| − | |[[JSTOR]] [ | + | |[[JSTOR]] [//www.jstor.org/stable/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}] |
}}<!-- | }}<!-- | ||
-->{{only in print | -->{{only in print | ||
| Line 81: | Line 81: | ||
}} | }} | ||
|mr={{hide in print | |mr={{hide in print | ||
| − | |[[Mathematical Reviews|MR]][ | + | |[[Mathematical Reviews|MR]] [//www.ams.org/mathscinet-getitem?mr{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}] |
}}<!-- | }}<!-- | ||
-->{{only in print | -->{{only in print | ||
| Line 87: | Line 87: | ||
}} | }} | ||
|oclc={{hide in print | |oclc={{hide in print | ||
| − | |[[Online Computer Library Center|OCLC]] [ | + | |[[Online Computer Library Center|OCLC]] [//www.worldcat.org/oclc/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}] |
}}<!-- | }}<!-- | ||
-->{{only in print | -->{{only in print | ||
| Line 93: | Line 93: | ||
}} | }} | ||
|ol={{hide in print | |ol={{hide in print | ||
| − | + | |1={{#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> | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }}<!-- | ||
| + | -->{{Only in print | ||
| + | |1=OL{{{id|{{{1}}}}}} | ||
| + | }} | ||
|osti={{hide in print | |osti={{hide in print | ||
| − | |[[Office of Scientific and Technical Information|OSTI]] [ | + | |[[Office of Scientific and Technical Information|OSTI]] [//www.osti.gov/energycitations/product.biblio.jsp?osti_id{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}] |
}}<!-- | }}<!-- | ||
-->{{only in print | -->{{only in print | ||
| Line 105: | Line 114: | ||
}} | }} | ||
|pmc={{hide in print | |pmc={{hide in print | ||
| − | + | |[[PubMed Central|PMC]] [//www.ncbi.nlm.nih.gov/pmc/articles/PMC{{{input1|}}}/?tool{{=}}pmcentrez {{#tag:nowiki|{{{input1|}}}}}] | |
}}<!-- | }}<!-- | ||
-->{{only in print | -->{{only in print | ||
| Line 111: | Line 120: | ||
}} | }} | ||
|pmid={{hide in print | |pmid={{hide in print | ||
| − | |[[PubMed Identifier|PMID]] [ | + | |[[PubMed Identifier|PMID]] [//www.ncbi.nlm.nih.gov/pubmed/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}] |
}}<!-- | }}<!-- | ||
-->{{only in print | -->{{only in print | ||
| Line 117: | Line 126: | ||
}} | }} | ||
|rfc={{hide in print | |rfc={{hide in print | ||
| − | |[[Request for Comments|RFC]] [ | + | |[[Request for Comments|RFC]] [//tools.ietf.org/html/rfc{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}] |
}}<!-- | }}<!-- | ||
-->{{only in print | -->{{only in print | ||
Revision as of 15:15, 6 May 2012
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
About this template
Template:Citation/identifier is a helper template to Wikipedia's citation system. This template ties in with other templates like Template:Citation/core. Specifically, it helps render how identifiers like ASIN, ISBN, and JSTOR are rendered in references, producing a consistent look throughout the encyclopedia.
Usage
Each identifier is invoked by use of |identifier= to define the type and one or more <syntaxhighlight lang="text" enclose="none">imput</syntaxhighlight> parameters:
| Identifier | |identifier= |
|input1= |
|input2= |
|input3= |
error check |
|---|---|---|---|---|---|
| arXiv | arxiv | value | none | ||
| ASIN | asin | value | top-level domain; defaults to com; do not include leading dot; valid values: co.jp, co.uk, ca, cn, fr, de, it or es |
none | |
| Bibcode | bibcode | value | none | ||
| doi | doi | value | date the DOI is broken | if <syntaxhighlight lang="text" enclose="none">true</syntaxhighlight>, then error category is suppressed |
ensure doi begins with <syntaxhighlight lang="text" enclose="none">10.</syntaxhighlight> if not an error shows and the page is placed in Category:Pages with DOI errors |
| ISBN | isbn | value | none | ||
| ISSN | issn | value | none | ||
| JFM | jfm | value | none | ||
| JSTOR | jstor | value | none | ||
| LCCN | lccn | value | none | ||
| MR | mr | value | none | ||
| OCLC | oclc | value | none | ||
| OL | ol | value | none | ||
| OSTI | osti | value | none | ||
| PMC | pmc | value | none | ||
| PMID | pmid | value | none | ||
| RFC | rfc | value | none | ||
| SSRN | ssrn | value | none | ||
| Zbl | zbl | value | none |
See also
| The above documentation is transcluded from Template:Citation/identifier/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |