Difference between revisions of "Template:Citation/core"

From Lesswrongwiki
Jump to: navigation, search
m (1 revision: migrate_wiki.py script)
(One intermediate revision by the same user not shown)
Line 602: Line 602:
       #if: {{{URL|{{{IncludedWorkURL|}}}}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}}
       #if: {{{URL|{{{IncludedWorkURL|}}}}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}}
     }}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;">&nbsp;</span></span><noinclude>{{documentation}}</noinclude>
    &rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;">&nbsp;</span></span><noinclude>{{documentation}}</noinclude>

Latest revision as of 23:27, 23 May 2009


Template documentation (for the above template, sometimes hidden or invisible)

About this template

Template:Citation/core can be thought of as an engine producing consistent output for Wikipedia's citations. Templates such as Template:Tl provide this core template with a list of parameters, which it uses to produce a formatted text (HTML) output, which contains embedded COinS metadata. This metadata allows many readers to find cited references more easily, or to extract their details to a reference manager.

The presence of a central template makes individual citation templates simpler to code and amend, and produces a consistent look throughout the encyclopaedia.

Templates using this 'engine'

Changes to this central template can affect the output of several 'upstream' templates. A list of templates using citation/core is provided below for testing purposes.

Parameter details

Note that the examples below are common uses of each parameter, intended to help editors understand the functioning of this template. In the most part, there is nothing wrong with passing different data to any of the parameters below if it produces the output that is desired. The exception is in parameters which are associated with a COinS field.