Difference between revisions of "Template:Reflist"
Jump to navigation
Jump to search
(First version based on https://www.mediawiki.org/wiki/Template:Reflist) |
m (back to old version) |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | <div class="reflist <!-- | |
| − | + | -->{{#if: {{{1|}}} | |
| − | + | | columns {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }} | |
| − | + | | references-column-width | |
| − | + | | references-column-count references-column-count-{{#if:1|{{{1}}}}} }} | |
| − | + | | {{#if: {{{colwidth|}}} | |
| − | + | | references-column-width }} }}" style="<!-- | |
| − | + | -->{{#if: {{{1|}}} | |
| − | + | | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }} | |
| − | + | | {{column-width|{{#if:1|{{{1}}}}}}} | |
| − | + | | {{column-count|{{#if:1|{{{1}}}}}}} }} | |
| − | + | | {{#if: {{{colwidth|}}} | |
| − | + | | {{column-width|{{{colwidth}}}}} }} }} list-style-type: <!-- | |
| − | + | -->{{{liststyle|{{#switch: {{{group|}}} | |
| − | + | | upper-alpha | |
| − | {{ | + | | upper-roman |
| − | + | | lower-alpha | |
| − | + | | lower-greek | |
| − | + | | lower-roman = {{{group}}} | |
| − | + | | #default = decimal}}}}};"> | |
| − | + | {{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude> | |
| − | + | {{Template:Reflist/doc}} | |
| − | + | </noinclude> | |
| − | {{Reflist | ||
Latest revision as of 08:44, 9 July 2019
This citation template provides formatting and organizational features for footnotes. It adds support for a reduced font size, columns, groups.
Parameters[edit]
- First unnamed parameter (doesn't work with all browsers, e.g. on mobiles)
- 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; 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.
- liststyle: specifies the style used when the reference list is enumerated; if none is specified, the default is to render a numbered list.
Example[edit]
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: