Template:Reflist: Difference between revisions

    From Nonbinary Wiki
    m>Edokter
    (Implement columns based on width, per talk.)
    m>Edokter
    (Back to fixed column count, per talk.)
    Line 1: Line 1:
    <div class="references-small <!--
    <div class="references-small <!--
      -->{{#if: {{{colwidth|}}}
    -->{{#if: {{{1|}}}
        | references-column-width
        | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
        | {{#if: {{{colcount|}}}
          | references-column-width
          | references-column-count references-column-count-{{{colcount}}}
          | references-column-count references-column-count-{{{1}}} }}
          | {{#iferror: {{#ifexpr: {{{1|1}}} > 1
        | {{#if: {{{colwidth|}}}
            | references-column-width }} }} }} }}" style="<!--
          | references-column-width
      -->{{#if: {{{colwidth|}}}
          | {{#if: {{{colcount|}}}
        | {{column-width|{{{colwidth}}}}}
            | references-column-count references-column-count-{{{colcount}}} }} }} }}" style="<!--
        | {{#if: {{{colcount|}}}
    -->{{#if: {{{1|}}}
          | {{column-count|{{{colcount}}}}}
        | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
          | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 | {{#switch:{{{1|1}}}
          | {{column-width|{{{1}}}}}
            | 1 = <!-- nothing -->
          | {{column-count|{{{1}}}}} }}
            | 2 = {{column-width|30em}}
        | {{#if: {{{colwidth|}}}
            | 3 = {{column-width|25em}}
          | {{column-width|{{{colwidth}}}}}
            | #default = {{column-width|20em}} }} }} }} }} }}">
          | {{#if: {{{colcount|}}}
            | {{column-count|{{{colcount}}}}} }} }} }}">
    {{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
    {{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
    {{documentation}}</noinclude>
    {{documentation}}</noinclude>

    Revision as of 12:01, 30 November 2010

    Template documentation[create]