Template:Reflist: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Edokter Sandbox version performing OK, reimplementing {{column-count}} and {{column-width}} (without offending spaces after vars). |
meta>Edokter Implement columns based on width, per talk. |
||
Line 2: | Line 2: | ||
-->{{#if: {{{colwidth|}}} | -->{{#if: {{{colwidth|}}} | ||
| references-column-width | | references-column-width | ||
| {{# | | {{#if: {{{colcount|}}} | ||
| references-column-count references-column-count-{{{1}}} }} }} }}" style="<!-- | | references-column-count references-column-count-{{{colcount}}} | ||
| {{#iferror: {{#ifexpr: {{{1|1}}} > 1 | |||
| references-column-width }} }} }} }}" style="<!-- | |||
-->{{#if: {{{colwidth|}}} | -->{{#if: {{{colwidth|}}} | ||
| {{column-width|{{{colwidth}}}}} | | {{column-width|{{{colwidth}}}}} | ||
| {{#if: {{{ | | {{#if: {{{colcount|}}} | ||
| {{column-count|{{{1}}}}} }} }}"> | | {{column-count|{{{colcount}}}}} | ||
| {{#iferror: {{#ifexpr: {{{1|1}}} > 1 | {{#switch:{{{1|1}}} | |||
| 1 = <!-- nothing --> | |||
| 2 = {{column-width|30em}} | |||
| 3 = {{column-width|25em}} | |||
| #default = {{column-width|20em}} }} }} }} }} }}"> | |||
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude> | {{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |