Template:Reflist: Difference between revisions

m 1 revision imported
VE for some reason requires a div wrapping the references tag. 🤷
Line 1: Line 1:
<templatestyles src="Reflist/styles.css" /><div class="reflist <!--
<templatestyles src="Reflist/styles.css" /><!--
-->{{#if:{{{1|}}}{{{colwidth|}}}|reflist-columns references-column-width}} <!--
-->{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=<div class="reflist-liststyle-{{{liststyle}}}">
-->{{#switch:{{{group|}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=reflist-{{{group}}}}} <!--
<nowiki/>}}<!--
-->{{#if:{{{1|}}}|{{#iferror:{{#ifexpr: {{{1|1}}} > 1 }}||{{#switch:{{{1|}}}|1=|2=reflist-columns-2|#default=reflist-columns-3}} }}}}" <!-- end class
-->{{#if:{{{1|}}}{{{colwidth|}}}|
-->{{#if:{{{1|}}}{{{colwidth|}}}{{{liststyle|}}}|<!-- start style
<div class="mw-references-wrap <!--
-->style="{{#if: {{{1|}}}
-->{{#iferror:{{#ifexpr: {{{1|}}} > 1 }}|mw-references-columns|{{#switch:{{{1|}}}|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" <!-- end class
     | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }} |column-width: {{{1}}};}}
-->{{#if: {{{1|}}}<!-- start style. The multiplication by 0.9 is for [[hysterical raisins]]. -->
     | {{#if: {{{colwidth|}}}|column-width: {{{colwidth}}};}}
     | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }} |style="column-width: calc( 0.9 * {{{1}}} );"}}
    }} <!--
     | {{#if: {{{colwidth|}}}|style="column-width: calc( 0.9 * {{{colwidth}}} );"}}
-->{{#if:{{{group|}}}||{{#if:{{{liststyle|}}}|list-style-type: {{{liststyle}}};}}}}"<!--
}}>{{#tag:references|{{{refs|}}}|group={{{group|}}}|responsive=0}}</div>
-->}}>
|
{{#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>
<div><!-- VE for some reason requires a div wrapping the references tag. 🤷 -->
{{#tag:references|{{{refs|}}}|group={{{group|}}}|responsive=1}}</div>
}}<!--
-->{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=</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>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>