Template:Ran/doc: Difference between revisions
(corrected typo (followign --> following)) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 20:26, 26 November 2018
This is a documentation subpage for Template:Ran. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{Rma}}
Creates a "reference, manually anchored", with layout matching the output of the usual < ref> machinery. It is typically used in a References or similar section of an article. Its syntax is borrowed to some extent from {{wikicite}}. Example
{{rma| tag=S1 | reference={{cite book|author=Smith, J.|title=The Big Book|year=1999}} }}
outputs
S1. | Smith, J. (1999). The Big Book. |
The S1
(for example) is the "manual anchor" – any string (preferably very short) assigned to the referenced work, and by which it will be referred later (typically using {{ran}}. The Smith source can then be referenced from article text using {{ran|S1}}
(see below).
Citation templates such as {{cite book}} are not required; the following example uses "free text":
{{rma| tag=J | reference=Jones, B. (May 12, 1868). "Many thanks for the gift". Letter to A. Ames. }}
This outputs
J. | Jones, B. (May 12, 1868). "Many thanks for the gift". Letter to A. Ames. |
The default width of the tags column is 20px. If some of the tags are bigger than that, the |tw=
parameter can be used to set a larger "tag width"; the same |tw=
value should be used with all invocations of {{rma}} in the article so that all tags line up evenly.
{{Ran}}
Creates a superscript "callout" (visually similar to the usual callouts generated by <ref></ref>
) to a source which is cited elsewhere in the article using {{rma}}. Example:
Smith disagrees.{{ran|S1}}
would appear in the article thus:
- Smith disagrees.[S1]
(Click on the superscript [S1] to see how the linking operates.)
Like {{r}}, {{ran}} also accepts a |page=
parameter:
Smith disagrees.{{ran|S1|page=22}}
would appear as:
- Smith disagrees.[S1]:22
(|pages=
, |p=
, or |pp=
can be used instead of |page=
.)
See also
- Shortened footnotes in Wikipedia:Citing sources, which describes the most common way of citing multiple pages of the same source.
- {{sfn}}, a template that implements the most common way of citing multiple pages of the same source.
- Citation bundling in Wikipedia:Citing sources, a recommended way of combining a list of several consecutive footnotes into a single footnote.
- Wikipedia:Footnotes
- Wikipedia:Citing sources