Template:Reflist: Difference between revisions
Jump to navigation
Jump to search
Undo revision 2854846 by 2407:7000:9D35:CF00:F0D3:6267:E8DB:1D07 (talk) |
go live with tstyles reflist |
||
Line 1: | Line 1: | ||
<div class="reflist <!-- | <templatestyles src="Reflist/styles.css" /><div class="reflist <!-- | ||
-->{{#if:{{{1|}}}{{{colwidth|}}}|reflist-columns references-column-width}} <!-- | |||
-->{{#switch:{{{group|}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=reflist-{{{group}}}}} <!-- | |||
-->{{#if:{{{1|}}}|{{#iferror:{{#ifexpr: {{{1|1}}} > 1 }}||{{#switch:{{{1|}}}|1=|2=reflist-columns-2|#default=reflist-columns-3}} }}}}" <!-- end class | |||
-->{{#if:{{{1|}}}{{{colwidth|}}}{{{liststyle|}}}|<!-- start style | |||
-->style="{{#if: {{{1|}}} | |||
| {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }} |column-width: {{{1}}};}} | |||
| {{#if: {{{colwidth|}}}|column-width: {{{colwidth}}};}} | |||
}} <!-- | |||
-->{{#if:{{{group|}}}||{{#if:{{{liststyle|}}}|list-style-type: {{{liststyle}}};}}}}"<!-- | |||
-->}}> | |||
| {{#if: {{{colwidth|}}} | {{#tag:references|{{{refs|}}}|group={{{group|}}}|responsive={{#if:{{{1|}}}{{{colwidth|}}}|0|1}}}}</div>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using reflist with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Reflist]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | colwidth | group | liststyle | refs }}<noinclude> | ||
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 17:07, 8 March 2021
Page Template:Reflist/styles.css has no content.
This is a documentation subpage for Template:Reflist. It contains usage information, categories and other content that is not part of the original Template page. |
Columns are not supported by some older browsers, most notably Internet Explorer 9 and below and Opera 11.0 and below. |
This citation template provides formatting and organizational features for footnotes. It encapsulates the <references />
tag used by the cite.php MediaWiki extension to show the list of references as defined by <ref>
tags. It adds support for a reduced font size, columns, groups.
If you don't use any of the additional features, then it produces the same output as the simpler and slightly faster <references />
tag.
Parameters
- First unnamed parameter:
- column-count: a natural number specifying fixed columns into which the reference list is to be rendered. Example:
|2|
. - column-width: a typographic unit of measurement such as em, specifying the width for the reference list columns. Example:
|30em|
.
- refs: used with named references (e.g.,
<ref 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., renders all references with groupname as the group name (
<ref>
). - liststyle: specifies the style used when the reference list is enumerated; if none is specified, the default is to render a numbered list.
Example
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}}
gives:
Lorem.[1][2][3][4] Consectetur.[5][6][7]
Page Template:Reflist/styles.css has no content.See also
- {{column-count}}
- {{column-width}}