Template:Reflist: Difference between revisions

From comp.tf
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="reflist <!--
{{#if: {{{1|}}} | <div style="column-count: {{{1}}}; -moz-column-count: {{{1}}}; -webkit-column-count: {{{1}}};">}}{{#tag:references}}{{#if: {{{1|}}} | </div> }}<noinclude>
-->{{#if: {{{1|}}}
{{Documentation}}
    | 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>
{{Documentation}}[[Source:Wikipedia]][[Source:MediaWiki]]
</noinclude>
</noinclude>

Latest revision as of 11:21, 5 May 2016

(view - edit) Documentation

Template:Reflist is used for listing references defined by <ref> tags in various numbers of columns

Usage

{{reflist|number}}

number

Defines how many columns the reflist will have. May be a value from 1 to 3