Difference between revisions of "Template:Refbegin"

From Timelines
Jump to: navigation, search
(Add category and new colwidth mechanism. (per Template talk:Reflist))
(Back to fixed column count, per Template talk:Reflist)
Line 1: Line 1:
 
<includeonly><div class="references-small <!--
 
<includeonly><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|}}}
  -->{{#if: {{{indent|}}}
+
        | {{column-count|{{{colcount}}}}} }} }} }}"><!--
    | <dl style="text-indent: -{{{indentsize|3.5}}}em;">}}</includeonly><noinclude>
+
-->{{#if: {{{indent|}}}
 +
    | <dl style="text-indent: -{{{indentsize|3.5}}}em;">}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 04:41, 30 November 2010

Template documentation[create]