Difference between revisions of "Template:Reflist"

From TVPaintWiki
Jump to: navigation, search
 
Line 1: Line 1:
{{Documentation subpage}}
+
<div class="reflist <!--
{{Ombox | type=notice | text = Columns are not supported by some older browsers, most notably Internet Explorer 9 and below and Opera 11.0 and below.}}
+
-->{{#if: {{{1|}}}
 
+
    | columns {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
This [[Wikipedia:Citation templates|citation template]] provides formatting and organizational features for [[w: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.
+
      | references-column-width
 
+
      | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
If you don't use any of the additional features, then it produces the same output as the simpler and slightly faster {{tag|references|s}} tag.
+
    | {{#if: {{{colwidth|}}}
 
+
      | references-column-width }} }}" style="<!--
==Parameters==
+
-->{{#if: {{{1|}}}
* First unnamed parameter:
+
    | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
: column-count: a natural number specifying fixed columns into which the reference list is to be rendered. Example: <code>|2|</code>.
+
      | {{column-width|{{#if:1|{{{1}}}}}}}
: column-width: a typographic unit of measurement such as ''em'', specifying the width for the reference list columns. Example: <code>|30em|</code>.
+
      | {{column-count|{{#if:1|{{{1}}}}}}} }}
* '''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.
+
    | {{#if: {{{colwidth|}}}
* '''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}}).
+
      | {{column-width|{{{colwidth}}}}} }} }} list-style-type: <!--
* '''liststyle''': specifies the style used when the reference list is enumerated; if none is specified, the default is to render a numbered list.
+
-->{{{liststyle|{{#switch: {{{group|}}}
 
+
    | upper-alpha
==Example==
+
    | upper-roman
<pre>
+
    | lower-alpha
Lorem.<ref>ipsum</ref><ref>dolor</ref><ref>sit</ref><ref>amet</ref>
+
    | lower-greek
Consectetur.<ref>adipisicing</ref><ref>elit, sed</ref><ref>do</ref>
+
    | lower-roman = {{{group}}}
 
+
    | #default = decimal}}}}};">
{{Reflist|3}}
+
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
</pre>
+
{{Documentation}}
 
+
</noinclude>
gives:
+
 
+
Lorem.<ref>ipsum</ref><ref>dolor</ref><ref>sit</ref><ref>amet</ref>
+
Consectetur.<ref>adipisicing</ref><ref>elit, sed</ref><ref>do</ref>
+
 
+
{{Reflist|3}}
+
 
+
==See also==
+
* {{tl|column-count}}
+
* {{tl|column-width}}
+

Latest revision as of 03:33, 28 October 2016

1 }}
     | references-column-width 
     | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
   | {{#if: 
     | references-column-width }} }}" style="{{#if: 
   | {{#iferror: {{#ifexpr: 1 > 1 }}
     | -moz-column-width: {{#if:1|{{{1}}}}}; -webkit-column-width: {{#if:1|{{{1}}}}}; column-width: {{#if:1|{{{1}}}}};
     | -moz-column-count: {{#if:1|{{{1}}}}}; -webkit-column-count: {{#if:1|{{{1}}}}}; column-count: {{#if:1|{{{1}}}}}; }}
   | {{#if: 
     | -moz-column-width: {{{colwidth}}}; -webkit-column-width: {{{colwidth}}}; column-width: {{{colwidth}}}; }} }} list-style-type: {{#switch: 
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = {{{group}}}
   | #default = decimal}};">
<references group=""></references>

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}