Diferencia entre revisiones de «Plantilla:Reflist»

De Familia Sanchez Arjona
Saltar a: navegación, buscar
(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
     | {{#iferror: {{#ifexpr: {{{1|1}}} > 1
+
     | {{#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: {{{1|}}}
+
     | {{#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

50px Template documentation[create]