Template:Ref: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(Improved usablity of the template.)
m (→‎top: Standardizing Maintenance Categories)
 
(20 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{TempCounter|{{{name|}}}|{{{ref|}}}}}
<includeonly>==References==
|0=
<templatestyles src="Template:Ref/Styles.css"/>
<h2>References</h2>
<div class="zw-references">{{#tag:references|{{{1|}}}|responsive="0"}}</div></includeonly><noinclude>
<references/>
{{Documentation}}
|1={{#if:{{{name|}}}|<ref name={{{name|}}}/>|<ref>{{{ref|}}}</ref>}}
[[Category:Formatting templates]]
|2=<ref name={{{name|}}}>{{{ref|}}}</ref>
</noinclude>
}}</includeonly><noinclude>
 
 
==Purpose==
This template a tool to aid in referencing articles.
 
==Usage==
To use this template, type: <b><nowiki>{{ref|name=|ref=}}</nowiki></b>
{{Parameter|name|This is if you want to assign a name to the reference so you can use the same reference again somewhere on the same page.|Optional}}
{{Parameter|ref|This is the contents of the reference.|Optional}}
If you specify a name, but not the reference, then the template use the reference that has that same name again.
*<b><nowiki>{{ref|name=}}</nowiki></b>
If you do not specify a name, then it will be just a normal reference that can't be used again.
*<b><nowiki>{{ref|ref=}}</nowiki></b>
If you do not specify a name or a reference, the template will provide the coding to display all references above it on the page. References cannot seen without this on the page somewhere, or at least the same code there.
*<b><nowiki>{{ref}}</nowiki></b>
==See Also==
To add a references section with a scroll bar like on the page [[Gerudo]], use the [[Template:Refbar|Refbar]] template.
[[Category:Formatting Templates|R]]</noinclude>

Latest revision as of 16:55, 23 April 2023


Purpose

This template adds a references section at the end of an article and automatically places all references into one section. For pages that have many references or that have several very long references, a scroll bar will appear to condense the page length.

Usage

    {{Ref}}

Guidelines

This template should be used at the bottom of pages containing references. It should be the very first template used at the bottom of the page, except if the page contains notes, in which case it should go second right after {{Notes}}. There should be a space between this template and the {{Categories}} template. Finally, no text should be added to this section, as references will automatically be taken from everywhere in the page and sorted in this section. For an example, this should be the code normally seen:

==PREVIOUS SECTION==
TEXT

{{Notes}}
{{Ref}}

{{Categories
 |CATEGORY
}}
The above documentation is transcluded from Template:Ref/Documentation. (edit | history)