Jump to content

Template:Reflist: Difference between revisions

Implement columns based on width, per talk.
(Sandbox version performing OK, reimplementing {{column-count}} and {{column-width}} (without offending spaces after vars).)
(Implement columns based on width, per talk.)
Line 2: Line 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>
Anonymous user