From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
m ({{tl}} -> {{t}}, Replaced: {{tl . {{t (5) AWB)
m (category fix, Replaced: [[Category:Template documenation → [[Category:Template documentation)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wikify}}
Use this template to create a reference list in an article. If used with no parameters, it will simply produce a reference list in a small font. For more information see [[StrategyWiki:Guide/References]].


==Usage==
==Usage==


Use this template to create a reference list in an article.
<nowiki>==Content==</nowiki>


If used with no parameters, it will simply produce a reference list in a small font.
Lorem ipsum.<nowiki><ref>Source name, access date, etc.</ref></nowiki><ref>Source name, access date, etc.</ref>


===Multiple columns===
Lorem ipsum dolor sit amet.<nowiki><ref>Source name, access date, etc.</ref></nowiki><ref>Source name, access date, etc.</ref>


Using <tt><nowiki>{{reflist|2}}</nowiki></tt> will create a two-column reference list, and <tt><nowiki>{{reflist|3}}</nowiki></tt> will create a three-column list.
<nowiki>==References==</nowiki>


Using <tt><nowiki>{{reflist|colwidth=30em}}</nowiki></tt> will allow the browser to automatically choose the number of columns based on the width of the web browser.  Choose a column width that's appropriate for the average width of the references on the page.
<nowiki>{{reflist}}</nowiki>


Note: multiple columns currently render properly only in [[Mozilla Firefox]],<ref>{{cite web|accessdate=2006-11-24|date=[[2005-12-30]]|title=CSS3 Multi-Column Thriller|url=http://www.stuffandnonsense.co.uk/archives/css3_multi-column_thriller.html}}</ref> though the feature is included in [[Cascading Style Sheets|CSS3]], so it should work for a larger number of browsers in the future.<ref>{{cite web|url=http://www.w3.org/TR/css3-multicol|title=CSS3 module: Multi-column layout|publisher=[[World Wide Web Consortium|W3C]]|date=[[2005-12-15]]|accessdate=2006-11-24}}</ref>
==Reusing references==
You can specify a reference to use with multiple <nowiki><ref></nowiki> tags by using the <code>name</code> parameter. Put the text of the reference into the first reference to use the name, and then in any further instances of the reference, you can use just the name without the text and they will share the note in the reflist.<nowiki><ref name="example">example of a named reference</ref></nowiki><ref name="example">example of a named reference</ref>


===Three options for usage===
Now that a reference is named, it can be used again by sharing the <code>name</code> parameter. Use a self-closing <nowiki><ref></nowiki> tag by including a space and a forward slash at the end of the tag. You will be able to see that both this ref tag and the previous one share the same number.<nowiki><ref name="example" /></nowiki><ref name="example" />


====Option 1 (only specific references) - see [http://en.wikipedia.org/wiki/The_Rule The Rule]====
==Multiple columns==
:'''''Note:''' Multiple columns currently render properly only in Mozilla Firefox, in other browsers the reflist will be treated as a single column.''


<pre>
Using <tt><nowiki>{{reflist|2}}</nowiki></tt> will create a two-column reference list, and <tt><nowiki>{{reflist|3}}</nowiki></tt> will create a three-column list.
==Content==


Lorem ipsum.<ref>Source name, access date, etc.</ref>
Using <tt><nowiki>{{reflist|colwidth=30em}}</nowiki></tt> will allow the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that's appropriate for the average width of the references on the page.
 
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
 
==References==
 
{{reflist}}
</pre>
 
====Option 2 (only general references) - see [http://en.wikipedia.org/wiki/National_Publications National Publications]====
 
<pre>
==Content==
 
Lorem ipsum.
 
Lorem ipsum dolor sit amet.
 
==References==
 
{{refbegin}}
* general reference 1
* general reference 2
{{refend}}
</pre>
 
====Option 3 (both specific and general references) - see [http://en.wikipedia.org/wiki/Elephant Elephant]====
 
<pre>
==Content==
 
Lorem ipsum.<ref>Lorem ipsum: Source name, access date, etc.</ref>
 
Lorem ipsum dolor sit amet.<ref>Lorem ipsum dolor sit amet: Source name, access date, etc.</ref>
 
Lorem ipsum.
 
Lorem ipsum dolor sit amet.
 
==References==
 
{{reflist}}
 
{{refbegin}}
* general reference 1
* general reference 2
{{refend}}
</pre>
 
==Content==
 
Lorem ipsum.<ref>Source name, access date, etc.</ref>
 
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>


==References==
==References==
 
This is a list of references from this page using the <code><nowiki>{{reflist}}</nowiki></code> template:
{{reflist}}
{{reflist}}
</pre>
====Option 2 (only general references) - see [[National Publications]]====
<pre>
==Content==
Lorem ipsum.
Lorem ipsum dolor sit amet.
==References==


{{refbegin}}
<noinclude>[[Category:Template documentation|R]]</noinclude>
* general reference 1
* general reference 2
{{refend}}
</pre>
 
====Option 3 (both specific and general references) - see [[Elephant]]====
 
<pre>
==Content==
 
Lorem ipsum.<ref>Source name, access date, etc.</ref>
 
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
 
Lorem ipsum.
 
Lorem ipsum dolor sit amet.
 
==References==
 
{{reflist}}
 
{{refbegin}}
* general reference 1
* general reference 2
{{refend}}
</pre>
 
==See Also==
 
* [[Wikipedia:Citing sources]]
* [[Wikipedia:Footnotes]]
* Templates recommended for use with Reflist
** {{t|Refbegin}}
** {{t|Refend}}
* Similar-functioning templates
** {{t|Footnotes}}
** {{t|FootnotesSmall}}
** {{t|Ref-section}}
 
==References==
 
{{reflist}}

Latest revision as of 19:34, 17 April 2009

Use this template to create a reference list in an article. If used with no parameters, it will simply produce a reference list in a small font. For more information see StrategyWiki:Guide/References.

Usage[edit]

==Content==

Lorem ipsum.<ref>Source name, access date, etc.</ref>[1]

Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>[2]

==References==

{{reflist}}

Reusing references[edit]

You can specify a reference to use with multiple <ref> tags by using the name parameter. Put the text of the reference into the first reference to use the name, and then in any further instances of the reference, you can use just the name without the text and they will share the note in the reflist.<ref name="example">example of a named reference</ref>[3]

Now that a reference is named, it can be used again by sharing the name parameter. Use a self-closing <ref> tag by including a space and a forward slash at the end of the tag. You will be able to see that both this ref tag and the previous one share the same number.<ref name="example" />[3]

Multiple columns[edit]

Note: Multiple columns currently render properly only in Mozilla Firefox, in other browsers the reflist will be treated as a single column.

Using {{reflist|2}} will create a two-column reference list, and {{reflist|3}} will create a three-column list.

Using {{reflist|colwidth=30em}} will allow the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that's appropriate for the average width of the references on the page.

References[edit]

This is a list of references from this page using the {{reflist}} template:

  1. Source name, access date, etc.
  2. Source name, access date, etc.
  3. 3.0 3.1 example of a named reference