Template:Ref/doc: Difference between revisions
From Warwick Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
'''{{tlx|ref}}''' is a simple template that allows placing references within other references. To use it, you'd type {{tlx|ref|the text of the note}}, replacing "the text of the reference" with whatever you want. "the text of the references" can then included further <tt><nowiki><ref></nowiki></tt> tags. For named references, use <tt>|name=</tt> or <tt>|n=</tt>. To [[mediawikiwiki:Help:Cite#Citing_different_parts_of_the_same_source|extend an existing reference]], use <tt>|extends=</tt> or <tt>|e=</tt>. | '''{{tlx|ref}}''' is a simple template that allows placing references within other references. To use it, you'd type {{tlx|ref|the text of the note}}, replacing "the text of the reference" with whatever you want. "the text of the references" can then included further <tt><nowiki><ref></nowiki></tt> tags. For named references, use <tt>|name=</tt> or <tt>|n=</tt>. To [[mediawikiwiki:Help:Cite#Citing_different_parts_of_the_same_source|extend an existing reference]], use <tt>|extends=</tt> or <tt>|e=</tt>. | ||
== Template Data == | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 16: | Line 17: | ||
"label": "name", | "label": "name", | ||
"description": "An optional name for the reference, allowing it to be reused, or the name of a previously named reference that is being reused. \t", | "description": "An optional name for the reference, allowing it to be reused, or the name of a previously named reference that is being reused. \t", | ||
"type": " | "type": "line", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
Line 25: | Line 26: | ||
"label": "extends", | "label": "extends", | ||
"description": "The name of an existing reference to extend.", | "description": "The name of an existing reference to extend.", | ||
"type": " | "type": "line", | ||
"suggested": true | "suggested": true | ||
} | } | ||
Line 38: | Line 39: | ||
} | } | ||
</templatedata> | </templatedata> | ||
<includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 19:30, 3 July 2025
{{ref}} is a simple template that allows placing references within other references. To use it, you'd type {{ref|the text of the note}}, replacing "the text of the reference" with whatever you want. "the text of the references" can then included further <ref> tags. For named references, use |name= or |n=. To extend an existing reference, use |extends= or |e=.
Template Data
Allows for the placing of references inside of other references.
Parameter | Description | Type | Status | |
---|---|---|---|---|
reference text | 1 | The text of the reference. | Content | suggested |
name | name n | An optional name for the reference, allowing it to be reused, or the name of a previously named reference that is being reused. | Line | suggested |
extends | extends e | The name of an existing reference to extend. | Line | suggested |