Template:Ref: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
m (Reducing size of scroll bar.)
m (→‎top: Standardizing Maintenance Categories)
 
(27 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>==References==</includeonly>
<includeonly>==References==
{{#switch:{{{1|}}}
<templatestyles src="Template:Ref/Styles.css"/>
|#default=<div class="references-small">
<div class="zw-references">{{#tag:references|{{{1|}}}|responsive="0"}}</div></includeonly><noinclude>
<references/>
{{Documentation}}
</div>
[[Category:Formatting templates]]
|Bar=<div class="references-small" style="height:175px; overflow: auto; padding: 5px">
</noinclude>
<references/>
</div>
}}<noinclude>
 
 
=Usage=
This template is a shortcut to adding a references section at the end of an article. To use this template, type: <big><b><nowiki>{{subst:Ref}}</nowiki></b></big>
 
After the page is saved, the template will add the following lines:<br>
<b><nowiki>==References==</nowiki><br>
<nowiki><div class="references-small"></nowiki><br>
<nowiki><references/></nowiki><br>
<nowiki></div></nowiki></b>
 
To adds a references section with a scroll bar like on the page [[Gerudo]], type: <b><nowiki>{{subst:Ref|Bar}}</nowiki></b>
[[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)