|
|
| (2 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| {{#if:{{{1|}}}|<!-- | | <div class="reflist{{#if:{{{1|}}}|{{#iferror:{{#ifexpr:{{{1}}} > 1}}| references-column-width| references-column-count references-column-count-{{{1}}}}}|{{#if:{{{colwidth|}}}| references-column-width}}}}" style="{{#if:{{{1|}}}|{{#iferror:{{#ifexpr:{{{1}}} > 1}}|{{column-width|{{{1}}}}}|{{column-count|{{{1}}}}}}}|{{#if:{{{colwidth|}}}|{{column-width|{{{colwidth}}}}}}}}}{{#if:{{{1|}}}{{{colwidth|}}}|; |}}list-style-type: {{#if:{{{liststyle|}}}|{{{liststyle}}}|{{#switch:{{{group|}}} |
| Handle column width/count parameter
| | | lower-alpha = lower-alpha |
| -->{{#iferror:{{#ifexpr:{{{1}}} > 1}}|<!--
| | | upper-alpha = upper-alpha |
| First parameter is column width (e.g., "30em")
| | | lower-roman = lower-roman |
| --><div class="reflist references-column-width" style="{{column-width|{{{1}}}}}; font-size: 90%; list-style-type: {{#switch:{{{group|}}} | | | upper-roman = upper-roman |
| | lower-alpha = lower-alpha
| | | lower-greek = lower-greek |
| | upper-alpha = upper-alpha
| | | #default = decimal}}}}; font-size: 90%;"> |
| | lower-roman = lower-roman
| | {{#if:{{{refs|}}}|{{#tag:references|{{{refs}}}|group={{{group|}}}}}|{{#tag:references||group={{{group|}}}}}}} |
| | upper-roman = upper-roman
| |
| | lower-greek = lower-greek
| |
| | #default = {{#if:{{{liststyle|}}}|{{{liststyle}}}|decimal}}}};">|<!--
| |
| First parameter is column count
| |
| -->{{#ifexpr:{{{1}}} = 1|<!--
| |
| Single column
| |
| --><div class="reflist" style="font-size: 90%; list-style-type: {{#switch:{{{group|}}}
| |
| | lower-alpha = lower-alpha
| |
| | upper-alpha = upper-alpha
| |
| | lower-roman = lower-roman
| |
| | upper-roman = upper-roman
| |
| | lower-greek = lower-greek
| |
| | #default = {{#if:{{{liststyle|}}}|{{{liststyle}}}|decimal}}}};">|<!--
| |
| Multiple columns - convert to width for backwards compatibility
| |
| --><div class="reflist references-column-width" style="{{column-width|{{#ifexpr:{{{1}}} = 2|30em|25em}}}}; font-size: 90%; list-style-type: {{#switch:{{{group|}}}
| |
| | lower-alpha = lower-alpha
| |
| | upper-alpha = upper-alpha
| |
| | lower-roman = lower-roman
| |
| | upper-roman = upper-roman
| |
| | lower-greek = lower-greek
| |
| | #default = {{#if:{{{liststyle|}}}|{{{liststyle}}}|decimal}}}};"}}}}|<!--
| |
| No column parameter
| |
| -->{{#if:{{{colwidth|}}}|<!--
| |
| Legacy colwidth parameter
| |
| --><div class="reflist references-column-width" style="{{column-width|{{{colwidth}}}}}; font-size: 90%; list-style-type: {{#switch:{{{group|}}}
| |
| | lower-alpha = lower-alpha
| |
| | upper-alpha = upper-alpha
| |
| | lower-roman = lower-roman
| |
| | upper-roman = upper-roman
| |
| | lower-greek = lower-greek
| |
| | #default = {{#if:{{{liststyle|}}}|{{{liststyle}}}|decimal}}}};">|<!--
| |
| Default responsive layout
| |
| --><div class="reflist" style="font-size: 90%; list-style-type: {{#switch:{{{group|}}}
| |
| | lower-alpha = lower-alpha
| |
| | upper-alpha = upper-alpha
| |
| | lower-roman = lower-roman
| |
| | upper-roman = upper-roman
| |
| | lower-greek = lower-greek
| |
| | #default = {{#if:{{{liststyle|}}}|{{{liststyle}}}|decimal}}}};">}}}}<!--
| |
| Generate references
| |
| -->{{#if:{{{refs|}}}|<!--
| |
| List-defined references
| |
| -->{{#tag:references|{{{refs}}}|group={{{group|}}}}}|<!--
| |
| Standard references tag
| |
| -->{{#tag:references||group={{{group|}}}}}}}}
| |
| </div><noinclude> | | </div><noinclude> |
| {{Documentation}} | | {{documentation}} |
| <!-- Tracking categories -->
| |
| {{#ifeq:{{NAMESPACE}}|{{ns:Template}}||<!--
| |
| Only add tracking categories outside template namespace
| |
| -->{{#if:{{{1|}}}{{#if:{{{colwidth|}}}|{{{colwidth}}}}}{{#if:{{{group|}}}|{{{group}}}}}{{#if:{{{liststyle|}}}|{{{liststyle}}}}}{{#if:{{{refs|}}}|{{{refs}}}}}|<!--
| |
| Check for unknown parameters
| |
| -->{{#ifeq:{{str len|{{{1|}}}{{{colwidth|}}}{{{group|}}}{{{liststyle|}}}{{{refs|}}}}}|{{str len|{{#if:{{{1|}}}|{{{1}}}}}{{#if:{{{colwidth|}}}|{{{colwidth}}}}}{{#if:{{{group|}}}|{{{group}}}}}{{#if:{{{liststyle|}}}|{{{liststyle}}}}}{{#if:{{{refs|}}}|{{{refs}}}}}}}||<!--
| |
| Has unknown parameters
| |
| -->[[Category:Pages using reflist with unknown parameters]]}}}}}}
| |
| </noinclude> | | </noinclude> |