Diferencia entre revisiones de «Plantilla:Reflist»
De Familia Sanchez Arjona
(Sandbox version performing OK, reimplementing {{column-count}} and {{column-width}} (without offending spaces after vars).) |
(Implement columns based on width, per talk.) |
||
Línea 2: | Línea 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> |
Revisión del 16:10 11 nov 2010
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |