Difference between revisions of "Template:Refbegin"
From Timelines
(Fix for indent; move text-indent styling to <dd> element. Now also works in columns.) |
(Add category and new colwidth mechanism. (per Template talk:Reflist)) |
||
Line 1: | Line 1: | ||
− | <includeonly><div class="references-small" style="<!-- | + | <includeonly><div class="references-small <!-- |
+ | -->{{#if: {{{colwidth|}}} | ||
+ | | references-column-width | ||
+ | | {{#if: {{{colcount|}}} | ||
+ | | 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}} }} }} }} }} }}"><!-- | ||
-->{{#if: {{{indent|}}} | -->{{#if: {{{indent|}}} | ||
| <dl style="text-indent: -{{{indentsize|3.5}}}em;">}}</includeonly><noinclude> | | <dl style="text-indent: -{{{indentsize|3.5}}}em;">}}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 08:24, 12 November 2010
Template documentation[create]
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. |