வார்ப்புரு:Reflist/doc
{{Documentation subpage}}
 &lt;includeonly&gt;{{High-risk}}&lt;/includeonly&gt;
 {{Ombox | type=notice | text = Columns are currently supported only by newer versions of [[Gecko (layout engine)|Gecko]]-based browsers (such as [[Mozilla Firefox]]) and [[WebKit]]-based browsers (such as [[Google Chrome]] and [[Safari (web browser)|Safari]]). '''All versions of [[Internet Explorer]] through to version 9 and [[Opera (web browser)|Opera]] through to version 11 do not support columns.''' See [[#Browser support for columns|below]] for more information.}}
 
 {{hatnote|For a full overview of this template in use, see [[Help:Footnotes]]}}
 
 This [[Wikipedia:Citation templates|citation template]] provides formatting and organizational features for [[Help:Footnotes|footnotes]].  It encapsulates the {{tag|references|s}} tag used by the {{cite.php}} MediaWiki extension to show the list of references as defined by {{tag|ref|o}} tags. It adds support for a reduced font size, columns, groups and {{ldr}}.
 
 ==Parameters==
 
 *'''column-count''': specifies a fixed number as to how many columns into which the reference list is to be rendered
 *'''column-width''': establishes column width for the reference list based on a [[typographic unit]] of measurement
 :If a single unnamed parameter is supplied, it is treated as a '''column-count''' if it is a [[natural number]] or as a '''column-width''' if it is a typographic unit of measurement such as [[em (typography)#CSS|em]].
 *'''refs''': used with named references (e.g. {{tag|ref|s|params=name=name}}); it specifies a list of some or all named references used in the article
 *'''group''': identifies by name the subset of references to be rendered; the value should correspond to that used inline, e.g. {{tlx|Reflist|2=group=groupname}} renders all references with groupname as the group name ({{tag|ref|o|paams=group=groupname}})
 *'''liststyle''': specifies the style used when the reference list is enumerated; if none is specified, the default is to render a numbered list
 *'''close''': forces the reference list to close and render all references defined to that point; see the [[#Multiple uses|section on multiple uses]] for the details.
 
 ==Usage==
 {{markup|title=Using only footnote-style references
 |&lt;nowiki&gt;Lorem ipsum.&lt;ref&gt;Source name, access date, etc.&lt;/ref&gt;
 Lorem ipsum dolor sit amet.&lt;ref&gt;Source name, access date, etc.&lt;/ref&gt;
 
 ==References==
 {{Reflist}}&lt;/nowiki&gt;
 |Lorem ipsum.&lt;ref&gt;Source name, access date, etc.&lt;/ref&gt;
 Lorem ipsum dolor sit amet.&lt;ref&gt;Source name, access date, etc.&lt;/ref&gt;
 
 {{fake heading|sub=3|References}}
 {{Reflist|close}}
 }}
 
 {{markup|title=Using only bibliographical style references (no direct references from the text)
 |&lt;nowiki&gt;Lorem ipsum. Lorem ipsum dolor sit amet.
 
 ==References==
 {{Refbegin}}
 * reference 1
 * reference 2
 {{Refend}}&lt;/nowiki&gt;
 |Lorem ipsum. Lorem ipsum dolor sit amet.
 
 {{fake heading|sub=3|References}}
 {{Refbegin}}
 * reference 1
 * reference 2
 {{Refend}}
 }}
 
 {{markup|title=Using both footnote-style and bibliography-style references
 |&lt;nowiki&gt;Lorem ipsum.&lt;ref&gt;Source name, access date, etc.&lt;/ref&gt;
 Lorem ipsum dolor sit amet.&lt;ref&gt;Source name, access date, etc.&lt;/ref&gt;
 
 ==References==
 {{Reflist|close}}
 
 {{Refbegin}}
 * reference 1
 * reference 2
 {{Refend}}&lt;/nowiki&gt;
 |Lorem ipsum.&lt;ref&gt;Source name, access date, etc.&lt;/ref&gt;
 Lorem ipsum dolor sit amet.&lt;ref&gt;Source name, access date, etc.&lt;/ref&gt;
 
 {{fake heading|sub=3|References}}
 {{Reflist|close}}
 
 {{Refbegin}}
 * reference 1
 * reference 2
 {{Refend}}
 }}
 
 ===Columns===
 Using {{tlx|Reflist|2}} will create a two-column reference list, and {{tlx|Reflist|3}} will create a three-column list, and so on. Choose the number of columns that is appropriate for the average width of the references on the page.
 
 Using {{tlx|Reflist|30em}} will create columns with a minimum width of 30 [[Em (typography)|em]], allowing the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that is appropriate for the average width of the references on the page.
 
 Columns are currently supported only by [[Gecko (layout engine)|Gecko]]-based browsers (such as [[Mozilla Firefox]]) and [[WebKit]]-based browsers (such as [[Google Chrome]] and [[Safari (browser)|Safari]]). See [[#Browser support for columns|below]] for more information.
 
 The use of columns can result in [[widows and orphans]], where a citation at the bottom of a column may be split to the top of the next column. There are CSS3 selectors that could resolve this, but they are not yet supported by any major browsers.
 
 See also [[#groupandcolumn|bug combining grouped references and columns]].
 
 ===List styles===
 {{main|Help:Cite link labels}}
 
 Reference lists are by default numbered lists. By using the {{para|liststyle}} parameter, you can control how the list is rendered. For example, using {{para|liststyle|upper-roman}} will result in items being prefixed with [[roman numerals]] instead of decimal numbers. The parameter accepts any valid CSS value defined for &lt;code&gt;list-style-type&lt;/code&gt; as shown below.
 
 The citations in the reference list will show the default decimal styling if:
 * The value for {{para|liststyle}} does not exactly match one of the predefined values
 * The value for {{para|liststyle}} is enclosed by quotes
 * {{tl|Reflist}} is indented with the : markup
 
 {{CSS list-style-type values}}
 
 ===Multiple uses===
 {{see|Help:Footnotes#Multiple reference lists}}
 
 If {{tl|Reflist}} is used multiple times without a parameter, each instance will include all of the previously defined references. To force the parser to close previous references, each use of {{tl|Reflist}} must be forced as a new instance by the use of any parameter. If no parameter is desired, the convention is to use the undefined parameter {{tlx|Reflist|close}}.
 
 ===List-defined references===
 {{see|WP:List-defined references}}
 
 A list of references may be defined within {{tl|Reflist}} using the {{para|refs}} parameter, just like including named &lt;nowiki&gt;&lt;ref name=&quot;. . .&quot;&gt;&lt;/nowiki&gt; elements inside the &lt;nowiki&gt;&lt;references /&gt;&lt;/nowiki&gt; container. This has been available since September 2009. There are new error messages associated with this feature, documented at [[Help:Cite errors]], including one for references defined in {{tl|Reflist}} but not used within the body.
 
 ====Example====
 {{markup
 |&lt;nowiki&gt;This is reference 1.&lt;ref name=&quot;refname1&quot; /&gt;
 This is reference 2.&lt;ref name=&quot;refname2&quot; /&gt;
 
 ==References==
 {{Reflist|refs=
 &lt;ref name=&quot;refname1&quot;&gt;content1&lt;/ref&gt;
 &lt;ref name=&quot;refname2&quot;&gt;content2&lt;/ref&gt;
 }}&lt;/nowiki&gt;
 |This is reference 1.&lt;ref name=&quot;refname1&quot; group=decimal/&gt;
 This is reference 2.&lt;ref name=&quot;refname2&quot; group=decimal/&gt;
 
 {{fake heading|sub=3|References}}
 {{Reflist|group=decimal|refs=
 &lt;ref name=&quot;refname1&quot;&gt;content1&lt;/ref&gt;
 &lt;ref name=&quot;refname2&quot;&gt;content2&lt;/ref&gt;
 }}
 }}
 
 ===Grouped references===
 As of June 2008, the footnotes system supports the separation of references into groups. This allows groups for explanatory notes, table references and the like. See [[WP:REFGROUP]].
 
 The general format for the reference tag is:
 
 :{{tag|ref|open|params=group=&lt;var&gt;&quot;groupname&quot;&lt;/var&gt;}}
 
 And using {{para|group}} for the reflist:
 :{{tlx|Reflist|2=group=''&quot;groupname&quot;''}}
 
 :Where ''groupname'' would be a group identifier such as &quot;note&quot;, &quot;nb&quot; or &quot;label&quot;.
 
 There are three pre-defined group names that will automatically cause the link labels and this template to display other characters instead of numbers (see [[#List styles|List styles]] above). These are: &quot;lower-alpha&quot; (a, b, c...), &quot;lower-greek&quot; (α, β, γ...) and &quot;lower-roman&quot; (i, ii, iii...) and must be written without quotes.
 
 See also [[#groupandcolumn|bug combining grouped references and columns]].
 
 ==Font size==
 The font size should reduce to 90% for most browsers, but may appear to show at 100% for Internet Explorer and possibly other browsers.&lt;ref name=fontsize/&gt; As of December 21, 2010, the standard {{tag|references|single}} tag has the same font styling. The smaller font may be disabled through [[Special:Preferences]] → Gadgets → Disable smaller font sizes of elements such as Infoboxes, Navboxes and References lists.
 
 ==Technical details==
 ===Browser support for columns===
 {{shortcut|WP:REFCOLS}}
 
 {{CSS3 multiple column layout}}
 
 Multiple columns are generated by using [[Cascading Style Sheets|CSS3]], which is still in development; thus only browsers that properly support the multi-column property will show multiple columns with {{tl|Reflist}}.&lt;ref name=&quot;stuffandnonsense&quot; /&gt;&lt;ref name=&quot;w3org1&quot; /&gt;
 
 These browsers '''support''' CSS3 columns:
 * [[Gecko (layout engine)|Gecko]]-based browsers such as [[Mozilla Firefox]]
 * [[WebKit]]-based browsers such as [[Safari (web browser)|Safari]] and [[Google Chrome]]
 * [[Opera (web browser)|Opera]] from version 11.10 onward
 * [[Internet Explorer]] 10 Platform Preview
 
 These browsers do '''not support''' CSS3 columns:
 * Microsoft [[Trident (layout engine)|Trident]]-based browsers including Internet Explorer through to version 9&lt;ref name=msdn /&gt;
 * [[Opera (web browser)|Opera]] through to version 11
 
 ===Supporting CSS===
 {{tl|Reflist}} uses a CSS rule in [[MediaWiki:Common.css]] to set the font size:
 * &lt;code&gt;div.reflist { font-size: 90%; }&lt;/code&gt;
 
 One of the following classes is assigned by the template when either column count or column width is set:
 * &lt;code&gt;.references-column-count&lt;/code&gt; and &lt;code&gt;.references-column-count-''n''&lt;/code&gt; (where &lt;code&gt;''n''&lt;/code&gt; is the number of columns)
 * &lt;code&gt;.references-column-width&lt;/code&gt;
 
 The following CSS properties are utilized using the {{tl|column-count}} and {{tl|column-width}} templates:
 * &lt;code&gt;column-count&lt;/code&gt; CSS3 standard
 * &lt;code&gt;column-width&lt;/code&gt; CSS3 standard
 * &lt;code&gt;-moz-column-count&lt;/code&gt; Mozilla CSS extension
 * &lt;code&gt;-moz-column-width&lt;/code&gt; Mozilla CSS extension
 * &lt;code&gt;-webkit-column-count&lt;/code&gt; Webkit CSS extension
 * &lt;code&gt;-webkit-column-width&lt;/code&gt; Webkit CSS extension
 
 ===Customizing the view===
 {{see|Help:Reference display customization}}
 
 By editing your CSS, the personal appearance of the reference list can be customized. From [[Special:Preferences|Preferences]], select the Appearance tab, then on the selected skin select Custom CSS. After editing and saving, follow the instructions at the top of the page to purge. See [[Wikipedia:Skin#Customisation (advanced users)]] for more help.
 
 ;Font size
 The font size for all reference lists defaults to 90% of the standard size. To change it, add:
 
 &lt;source lang=&quot;css&quot;&gt;
 ol.references,
 div.reflist,
 div.refbegin {
  font-size: 90%;
 }
 &lt;/source&gt;
 
 Change 90% to the desired size.
 
 ;Columns
 To disable columns, add:
 
 &lt;source lang=&quot;css&quot;&gt;
 .references-column-count, .references-column-width {
  column-count: 1 !important;
  column-width: auto !important;
  -moz-column-count: 1 !important;
  -moz-column-width: auto !important;
  -webkit-column-count: 1 !important;
  -webkit-column-width: auto !important;
 }
 &lt;/source&gt;
 
 Similarly, to force all reference lists to a number of columns, change the number.
 
 ;Column dividers
 To add dividers (rules) between columns, add:
 
 &lt;source lang=&quot;css&quot;&gt;
 .references-column-count, .references-column-width {
  column-rule: 1px solid #aaa;
  -moz-column-rule: 1px solid #aaa;
  -webkit-column-rule: 1px solid #aaa;
 }
 &lt;/source&gt;
 
 You can alter the appearance of the dividers by changing the values.
 
 ===Bugs===
 {{Anchor|groupandcolumn}}
 
 Do not use spaces around the column/width parameter, e.g. &lt;code&gt;&lt;nowiki&gt;{{Reflist|15em |group=&quot;e&quot;}}&lt;/nowiki&gt;&lt;/code&gt; will fail to display columns.
 
 ==Perennial suggestions==
 ;Collapsing and scrolling
 There have been a number of requests to add functionality for a collapsible or scrolling reference list. These requests have not been fulfilled to due to issues with readability, accessibility, and printing. The applicable guidelines are at [[MOS:SCROLL]]. Links between the inline cite and the reference list do not work when the reference list is enclosed in a collapsed box.
 
 To display the reference list in a scrollbox or collapsed per user, see [[Help:Reference display customization]].
 
 For discussion on previous attempts to do this with a template, see the discussions for [[Wikipedia:Templates for deletion/Log/2007 June 11#Template:Scrollref|Scrollref]] and [[Wikipedia:Templates for discussion/Log/2010 May 26#Template:Refbox|Refbox]].
 
 ;Including the section title
 There have been suggestions to include section header markup such as &lt;code&gt;==References==&lt;/code&gt;. This is inadvisable because:
 * There is no standard section name; see [[WP:FNNR]].
 * When transcluded, the article will have an edit link that will confusingly open the template for editing.
 
 ==See also==
 * [[Wikipedia:Citing sources]]&amp;nbsp;– style guide for the citation of sources
 * [[Wikipedia:Citation templates]]&amp;nbsp;– templates for use with references
 * {{tl|Refbegin}} and {{tl|Refend}}&amp;nbsp;– format reference lists
 
 Variants
 * {{tl|Template reference list}}&amp;nbsp;– version of reflist for use in templates
 * {{tl|Reflist-talk}}&amp;nbsp;– for use on talk pages
 * {{tl|Notelist}}&amp;nbsp;– for use with explanatory notes; sets {{para|group|lower-alpha}}
 
 ==References==
 {{Reflist|refs=
 &lt;ref name=fontsize&gt;See [[User:Edokter/fonttest]] for a comparison of font sizes for various browsers; see [http://en.wikipedia.org/w/index.php?title=Special%3ASearch&amp;redirs=1&amp;search=fonttest+prefix%3AMediaWiki+talk%3ACommon.css%2F&amp;fulltext=Search&amp;ns0=1 previous discussions] on changing the font size to resolve the IE issue.&lt;/ref&gt;
 
 &lt;ref name=stuffandnonsense&gt;{{cite web |accessdate=November 24, 2006 |date=December 30, 2005 |title=CSS3 Multi-Column Thriller |url=http://www.stuffandnonsense.co.uk/archives/css3_multi-column_thriller.html}}&lt;/ref&gt;
 
 &lt;ref name=w3org1&gt;{{cite web |url=http://www.w3.org/TR/css3-multicol/ |title=CSS3 module: Multi-column layout |publisher=[[World Wide Web Consortium|W3C]] |date=December 15, 2005 |accessdate=November 24, 2006}}&lt;/ref&gt;
 
 &lt;ref name=msdn&gt;{{cite web |url=http://msdn.microsoft.com/en-us/library/cc351024(VS.85).aspx#multicolumn |title=CSS Compatibility and Internet Explorer: Multi-column Layout |work=Microsoft Developer Network |publisher=Microsoft |accessdate=March 16, 2011}}&lt;/ref&gt;
 }}&lt;includeonly&gt;
 [[Category:Footnote templates]]
 [[Category:Reference list templates]]
 
 [[ar:قالب:ثبت المراجع]]
 [[be-x-old:Шаблён:Зноскі]]
 [[bn:Template:Reflist]]
 [[bs:Šablon:Refspisak]]
 [[br:Patrom:Daveoù]]
 [[ca:Plantilla:Referències]]
 [[cy:Nodyn:Cyfeiriadau]]
 [[et:Mall:Viited]]
 [[eo:Ŝablono:Referencoj]]
 [[es:Plantilla:Listaref]]
 [[eu:Txantiloi:Erreferentzia zerrenda]]
 [[fa:الگو:پانویس]]
 [[fr:Modèle:Références]]
 [[hi:Template:टिप्पणीसूची]]
 [[hr:Predložak:Izvori]]
 [[hsb:Předłoha:Referency]]
 [[hu:Sablon:Reflist]]
 [[ia:Patrono:Reflist]]
 [[it:Template:References]]
 [[he:תבנית:הערות שוליים]]
 [[ja:Template:Reflist]]
 [[ka:თარგი:სქოლიოს სია]]
 [[ko:틀:주석]]
 [[lv:Veidne:Reflist]]
 [[ml:ഫലകം:Reflist]]
 [[mr:साचा:संदर्भयादी]]
 [[ms:Templat:Reflist]]
 [[no:Mal:Reflist]]
 [[pl:Szablon:Przypisy]]
 [[pt:Predefinição:Referências]]
 [[ro:Format:Listănote]]
 [[ru:Шаблон:Примечания]]
 [[sr:Шаблон:Напомене]]
 [[fi:Malline:Viitteet]]
 [[th:แม่แบบ:รายการอ้างอิง]]
 [[tr:Şablon:Kaynakça]]
 [[uk:Шаблон:Reflist]]
 [[vi:Bản mẫu:Tham khảo]]
 [[zh:Template:Reflist]]