Template:Reflist: Difference between revisions
Appearance
Content deleted Content added
Created page with "<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|}}}..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<templatestyles src="Reflist/styles.css" /><!-- |
|||
| ⚫ | |||
-->{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=<div class="reflist-liststyle-{{{liststyle}}}"> |
|||
| ⚫ | |||
<nowiki/>}}<!-- |
|||
| ⚫ | |||
| ⚫ | |||
| references-column-width |
|||
| ⚫ | |||
| references-column-count references-column-count-{{#if:1|{{{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 |
|||
| {{#if: {{{colwidth|}}} |
|||
-->{{#if: {{{1|}}}<!-- start style. The multiplication by 0.9 is for [[hysterical raisins]]. --> |
|||
| references-column-width }} }}" style="<!-- |
|||
| ⚫ | |||
-->{{#if: {{{1|}}} |
|||
| {{# |
| {{#if: {{{colwidth|}}}|style="column-width: calc( 0.9 * {{{colwidth}}} );"}} |
||
| ⚫ | |||
| {{column-width|{{#if:1|{{{1}}}}}}} |
|||
| |
|||
| {{column-count|{{#if:1|{{{1}}}}}}} }} |
|||
<div><!-- VE for some reason requires a div wrapping the references tag. 🤷 --> |
|||
| {{#if: {{{colwidth|}}} |
|||
{{#tag:references|{{{refs|}}}|group={{{group|}}}|responsive=1}}</div> |
|||
| {{column-width|{{{colwidth}}}}} }} }} list-style-type: <!-- |
|||
}}<!-- |
|||
-->{{{liststyle|{{#switch: {{{group|}}} |
|||
-->{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=</div>}}<!-- |
|||
| upper-alpha |
|||
-->{{#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> |
|||
| upper-roman |
|||
| lower-alpha |
|||
| lower-greek |
|||
| lower-roman = {{{group}}} |
|||
| #default = decimal}}}}};"> |
|||
| ⚫ | |||
{{Documentation}} |
{{Documentation}} |
||
</noinclude> |
</noinclude> |
||