Template:Ref/doc: Difference between revisions

From Warwick Wiki
Created page with "'''{{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>. <includeonly>Category:Templates</includeonly><noinclude>Category:Template documentation</noinclude>"
 
No edit summary
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>.
'''{{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>.
<includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<templatedata>
{
"params": {
"1": {
"label": "reference text",
"description": "The text of the reference.",
"type": "content",
"suggested": true
},
"name": {
"aliases": [
"n"
],
"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",
"type": "string",
"suggested": true
},
"extends": {
"aliases": [
"e"
],
"label": "extends",
"description": "The name of an existing reference to extend.",
"type": "string",
"suggested": true
}
},
"description": "Allows for the placing of references inside of other references.",
"paramOrder": [
"1",
"name",
"extends"
],
"format": "inline"
}
</templatedata>

Revision as of 19:22, 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=.

Allows for the placing of references inside of other references.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
reference text1

The text of the reference.

Contentsuggested
namename n

An optional name for the reference, allowing it to be reused, or the name of a previously named reference that is being reused.

Stringsuggested
extendsextends e

The name of an existing reference to extend.

Stringsuggested