Template:Refbegin: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Edokter
Fix for indent; move text-indent styling to <dd> element. Now also works in columns.
meta>Edokter
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: {{{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}} }} }} }} }} }}"><!--
   -->{{#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 16:24, 12 November 2010