Template:Ref: Difference between revisions
mNo edit summary |
|||
| Line 16: | Line 16: | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
==Description== | ==Description== | ||
This template | This template should be used to make a basic text footnote. It also has the ability, when used with other [[:Help:References#Reference Templates|Reference Templates]], to create a reference group. | ||
== Usage == | == Usage == | ||
:'''Note:''' If you need to add a reference that is not strictly text or a specialized reference using one of the reference templates | :'''Note:''' If you need to add a reference that is not strictly text or a specialized reference using one of the other reference templates, it is recommended you use the standard MediaWiki reference tag: <code><nowiki><ref>FOOTNOTE TEXT</ref></nowiki></code> See [https://www.mediawiki.org/wiki/Help:Cite MediaWiki's Cite Guide] for more information on how to use this tag. | ||
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | {| style="width: 100%; text-align: left; margin: auto;" class="wikitable" | ||
|- | |||
! colspan="2" style="text-align: center;" | <span style="font-size: 125%;">Basic Usage</span><br><div style="text-align: left;"><span style="font-weight: normal;">To add a basic reference footnote, pass the template's name with a <code>text=</code> parameter. (e.g., <code><nowiki>{{ref|text=INPUT}}</nowiki></code>, replacing <code>INPUT</code> with the text you would like to appear in the footnote.)</span></div> | |||
|- | |- | ||
| width=50%|'''You Type''' | |||
|'''You Get''' | |||
|- | |- style="text-align: left; background-color: white;" | ||
| | | <pre> | ||
<pre> | |||
This is a sentence that needs a reference/footnote.{{ref|text=This is a reference/footnote.}} | This is a sentence that needs a reference/footnote.{{ref|text=This is a reference/footnote.}} | ||
| Line 41: | Line 38: | ||
<span style="display: block; font-size: 1.5em; font-family: Georgia; font-weight: normal; margin-top: 0.7em; border-bottom: 1px solid #a2a9b1;">Notes</span> | <span style="display: block; font-size: 1.5em; font-family: Georgia; font-weight: normal; margin-top: 0.7em; border-bottom: 1px solid #a2a9b1;">Notes</span> | ||
<references /> | |||
|- | |||
! colspan="2" style="text-align: center;" | <span style="font-size: 125%;">Named Reference Group</span><br><div style="text-align: left;"><span style="font-weight: normal;">Using on of the other [[:Category:Reference Templates|Reference Templates]], you can add a <code>name=</code> parameter to it to give that reference a "nickname", then use the {{t|ref}} template with the same <code>name=</code> parameter to reuse the same nicknamed reference.</span></div> | |||
|- | |||
| width=50%|'''You Type''' | |||
|'''You Get''' | |||
|- style="text-align: left; background-color: white;" | |||
| <pre> | |||
Queen Eleanor studies papers of state in the garden.{{book ref|qg|1|name=qg1}} | |||
She is approached by a stranger.{{ref|name=qg1}} | |||
== Notes == | |||
<references /> | |||
</pre> | |||
| | |||
Queen Eleanor studies papers of state in the garden.{{book ref|qg|1|name=qg1}} | |||
She is approached by a stranger.{{ref|name=qg1}} | |||
<span style="display: block; font-size: 1.65em; font-family: serif; font-weight: normal; margin-top: 1em; border-bottom: 1px solid #a2a9b1;">Notes</span> | |||
<references /> | <references /> | ||
|} | |} | ||
Revision as of 02:57, 14 May 2025
Description
This template should be used to make a basic text footnote. It also has the ability, when used with other Reference Templates, to create a reference group.
Usage
- Note: If you need to add a reference that is not strictly text or a specialized reference using one of the other reference templates, it is recommended you use the standard MediaWiki reference tag:
<ref>FOOTNOTE TEXT</ref>See MediaWiki's Cite Guide for more information on how to use this tag.
| Basic Usage To add a basic reference footnote, pass the template's name with a
text= parameter. (e.g., {{ref|text=INPUT}}, replacing INPUT with the text you would like to appear in the footnote.) | |
|---|---|
| You Type | You Get |
This is a sentence that needs a reference/footnote.{{ref|text=This is a reference/footnote.}}
== Notes ==
<references />
|
This is a sentence that needs a reference/footnote.[1] Notes
|
| Named Reference Group Using on of the other Reference Templates, you can add a
name= parameter to it to give that reference a "nickname", then use the {{ref}} template with the same name= parameter to reuse the same nicknamed reference. | |
| You Type | You Get |
Queen Eleanor studies papers of state in the garden.{{book ref|qg|1|name=qg1}}
She is approached by a stranger.{{ref|name=qg1}}
== Notes ==
<references />
|
Queen Eleanor studies papers of state in the garden.[1] She is approached by a stranger.[1] Notes |
Articles using Template
- Agnes (transclusion) (← links | edit)
- Parian (transclusion) (← links | edit)
- Matilde (transclusion) (← links | edit)
- Maxwell (transclusion) (← links | edit)
- Nigel Hawkes (transclusion) (← links | edit)
- Madame Tasset (transclusion) (← links | edit)
- Saffronia March (transclusion) (← links | edit)
- Jack Hollingstell (transclusion) (← links | edit)
- Mr. Penury (transclusion) (← links | edit)
- The Tenant (transclusion) (← links | edit)
- Declan Lion (transclusion) (← links | edit)
- Emma's Mother (transclusion) (← links | edit)