Misplaced Pages

Template:Citation/identifier and Template:Citation/identifier/sandbox: Difference between pages

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Citation(Difference between pages) Content deleted Content addedVisualWikitext
Revision as of 12:18, 5 May 2012 view sourceGadget850 (talk | contribs)115,579 edits ud from sandbox  Revision as of 22:45, 6 May 2012 edit Headbomb (talk | contribs)Edit filter managers, Autopatrolled, Extended confirmed users, Page movers, File movers, New page reviewers, Pending changes reviewers, Rollbackers, Template editors454,075 edits fix error 
Line 95: Line 95:
|1={{#if:{{str endswith|{{{input1|}}}|A}} |1={{#if:{{str endswith|{{{input1|}}}|A}}
|] |]
|{{#if:{{str endswith|{{{id|{{{1}}}}}}|M}} |{{#if:{{str endswith|{{{input1|}}}|M}}
|] |]
|{{#if:{{str endswith|{{{id|{{{1}}}}}}|W}} |{{#if:{{str endswith|{{{input1|}}}|W}}
|] |]
|<includeonly>]<span class="error">Error: Bad OL specified!</span></includeonly> |<includeonly>]<span class="error">Error: Bad OL specified!</span></includeonly>

Revision as of 22:45, 6 May 2012

This is the template sandbox page for Template:Citation/identifier (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
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.
You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here.
Do not modify. Citation/identifier/sandbox is preserved as an historical reference against which current Lua-based cs1|2 templates may be compared.

About this template

Template:Citation/identifier is a helper template to Misplaced Pages'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.

Stand-alone templates

Most of the fields have stand-alone templates for other uses.

Usage

Each identifier is invoked by use of |identifier= to define the type and one or more input parameters:

Identifier |identifier= |input1= |input2= |input3= error check Stand-alone
arXiv arxiv value none {{Arxiv}}
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 {{ASIN}}
Bibcode bibcode value none {{Bibcode}}
doi doi value date the DOI is broken if true, then error category is suppressed ensure doi begins with 10. if not an error shows and the page is placed in Category:Pages with DOI errors {{doi}}
hdl hdl value none {{hdl}}
ISBN isbn value none {{ISBN}}
ISMN ismn value none {{ISMN}}
ISSN issn value none {{ISSN}}
JFM jfm value none {{JFM}}
JSTOR jstor value none {{JSTOR}}
LCCN lccn value none {{LCCN}}
MR mr value none {{MR}}
OCLC oclc value none {{OCLC}}
OL ol value none {{OL}}
OSTI osti value none {{OSTI}}
PMC pmc value none {{PMC}}
PMID pmid value none {{PMID}}
RFC rfc value none {{IETF RFC}}
SSRN ssrn value none {{SSRN}}
Zbl zbl value none {{Zbl}}

Notes

  • Changes should be synchronized between this template and the stand-alone templates.
  • {{cite journal}} uses PMC in the url parameter; this needs to be synchronized.
The above documentation is transcluded from Template:Citation/identifier/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: