Difference between revisions of "Template:Citation/identifier"

From Recidemia
Jump to: navigation, search
(doi nocat)
m (1 revision)
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
         }}
 
         }}
 
  |asin={{hide in print
 
  |asin={{hide in print
         |[[Amazon Standard Identification Number|ASIN]]&nbsp;[http://www.amazon.<!--
+
         |[[Amazon Standard Identification Number|ASIN]]&nbsp;[//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]]&nbsp;[http://www.worldcat.org/issn/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
+
         |[[International Standard Serial Number|ISSN]]&nbsp;[//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]]&nbsp;[http://www.jstor.org/stable/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
+
         |[[JSTOR]]&nbsp;[//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]][http://www.ams.org/mathscinet-getitem?mr{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
+
       |[[Mathematical Reviews|MR]]&nbsp;[//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]]&nbsp;[http://www.worldcat.org/oclc/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
+
         |[[Online Computer Library Center|OCLC]]&nbsp;[//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
        |[[Open Library|OL]][http://openlibrary.org/b/OL{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
+
      |1={{#if:{{str endswith|{{{input1|}}}|A}}
      }}<!--
+
          |[[Open Library|OL]][http://openlibrary.org/authors/OL{{urlencode:{{{input1|}}}}} {{{input1|}}}]
    -->{{only in print
+
          |{{#if:{{str endswith|{{{input1|}}}|M}}
        |OL{{{input1|}}}
+
            |[[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]]&nbsp;[http://www.osti.gov/energycitations/product.biblio.jsp?osti_id{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
+
         |[[Office of Scientific and Technical Information|OSTI]]&nbsp;[//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]]&nbsp;[http://www.pubmedcentral.gov/articlerender.fcgi?tool{{=}}pmcentrez&artid{{=}}{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
+
        |[[PubMed Central|PMC]]&nbsp;[//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]]&nbsp;[http://www.ncbi.nlm.nih.gov/pubmed/{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
+
         |[[PubMed Identifier|PMID]]&nbsp;[//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]]&nbsp;[http://tools.ietf.org/html/rfc{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
+
         |[[Request for Comments|RFC]]&nbsp;[//tools.ietf.org/html/rfc{{{input1|}}} {{#tag:nowiki|{{{input1|}}}}}]
 
       }}<!--
 
       }}<!--
 
     -->{{only in print
 
     -->{{only in print

Latest revision as of 16:56, 15 May 2012

[edit] [history] [purge] Documentation icon Template documentation

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