Template:Reflist: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
m Template;reflist moved to Template:Reflist: $%^&*() semicolon get there?
mNo edit summary
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><div class="references-small" {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}} }};" |}}>
<includeonly><div class="references-small" {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}} }};" |}}><references /></div></includeonly><noinclude>
<references /></div></includeonly>
Use '''<tt><nowiki>{{reflist}}</nowiki></tt>''' instead of <tt><nowiki><references/></nowiki></tt> to create multi-column footnote lists for heavily cited articles.<br/>
You can see the 2-column footnote layout at the bottom of this article!


<noinclude>
:This template and the exerpted documentation below are <strike>lifted from</strike> based on the Wikimedia template {{w|Template:Reflist|<nowiki>{{reflist}}</nowiki>}}.  Both have 1:1 correlation with the originating Wikimedia template as of the July 9 2007 revision.  ''Don't expect that to last, even at maturity the originating template is receiving ~1 minor tweak per month.  However, it is unlikely to see fundamental revision (and require re-porting) until {{w|Cascading Style Sheets|CSS3}} reaches a {{w|tipping point}}.
Use '''<nowiki>{{reflist}}</nowiki>''' instead of <nowiki><references/></nowiki> to create multi-column footnote lists for heavily cited articles.
 
This template and the exerpted documentaiton below are <strike>lifted from</strike> based on the Wikimedia template [[w:Template:Reflist|<nowiki>{{reflist}}</nowiki>]].  Both have 1:1 with the originating Wikimedia template as of the July 9 2007 revision.  ''Don't expect that to last, even at maturity the originating template is receiving ~1 minor tweak every month.  It is unlikely to see fundamental revision (and thus re-porting) until [[w:Cascading Style Sheets|CSS3]] reaches a [[Wikipedia:Tipping point|tipping point]].


== Usage ==
== Usage ==
Line 19: Line 17:
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.
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.


Note: multiple columns currently render properly only in [[w:Mozilla Firefox|Mozilla Firefox]] and other [[w:Gecko (layout engine)|Gecko]]-based browsers,<ref>[http://www.stuffandnonsense.co.uk/archives/css3_multi-column_thriller.html CSS3 Multi-Column Thriller]</ref> though the feature is included in [[w:Cascading Style Sheets|CSS3]], so it should work for a larger number of browsers in the future.<ref>[http://www.w3.org/TR/css3-multicol CSS3 module: Multi-column layout]</ref>
Note: multiple columns currently render properly only in {{w|Mozilla Firefox}} and other {{w|Gecko (layout engine)|Gecko}}-based browsers,<ref>[http://www.stuffandnonsense.co.uk/archives/css3_multi-column_thriller.html CSS3 Multi-Column Thriller]</ref> though the feature is included in {{w|Cascading Style Sheets|CSS3}}, so it should work for a larger number of browsers in the future.<ref>[http://www.w3.org/TR/css3-multicol CSS3 module: Multi-column layout]</ref>


===References===
===References===
{{reflist|2}}
{{reflist|2}}


[[Category: Templates]]
[[Category:Layout templates]]
</noinclude>
</noinclude>

Latest revision as of 20:04, 10 September 2018

Use {{reflist}} instead of <references/> to create multi-column footnote lists for heavily cited articles.
You can see the 2-column footnote layout at the bottom of this article!

This template and the exerpted documentation below are lifted from based on the Wikimedia template {{reflist}}. Both have 1:1 correlation with the originating Wikimedia template as of the July 9 2007 revision. Don't expect that to last, even at maturity the originating template is receiving ~1 minor tweak per month. However, it is unlikely to see fundamental revision (and require re-porting) until CSS3 reaches a tipping point.

Usage

Use this template to create a reference list in an article with a small font. Note that there is no consensus that small font size should always for all references; when normal-sized font is more appropriate on an article, use <references /> instead.

If used with no parameters, it will produce a reference list with a single column.

Multiple columns

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.

Note: multiple columns currently render properly only in Mozilla Firefox and other Gecko-based browsers,[1] though the feature is included in CSS3, so it should work for a larger number of browsers in the future.[2]

References