Template:Ref: Difference between revisions
mNo edit summary |
m Removed background color to allow dynamic color shift in dark mode. |
||
| (4 intermediate revisions by the same user not shown) | |||
| 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;" | ||
| | | <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;" | |||
| <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 /> | ||
|} | |} | ||
| Line 46: | Line 64: | ||
== Articles using Template == | == Articles using Template == | ||
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}} | {{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}} | ||
{{Special:WhatLinksHere/{{FULLPAGENAME}}|limit=100}} | {{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=100|limit=100}} | ||
[[Category: Reference Templates]] | [[Category: Reference Templates]] | ||