Template:Refbegin: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jo-Jo Eumerus
m Changed protection level for "Template:Refbegin": Allowing template editors on some templates with full protection dating back to pre-TPROT times which aren't too often or too sensitively used. ([Edit=Require template editor access] (i...
meta>TheDJ
Use class from MediaWiki:Common.css to implement hanging indentation
Line 1: Line 1:
<includeonly><div class="refbegin <!--
<includeonly><div class="refbegin <!--
-->{{#if: {{{indent|}}}
    | refbegin-hanging-indents }} <!--
  -->{{#if: {{{normalfont|}}}
  -->{{#if: {{{normalfont|}}}
     | refbegin-100 }} <!--
     | refbegin-100 }} <!--
Line 14: Line 16:
     | {{#if: {{{colwidth|}}}
     | {{#if: {{{colwidth|}}}
       | {{column-width|{{{colwidth}}}}} }} }}"><!--
       | {{column-width|{{{colwidth}}}}} }} }}"><!--
-->{{#if: {{{indent|}}}
    | <dl style="text-indent: -{{{indentsize|3.2}}}em;">}}<!--
  -->{{#if: {{{normalfont|}}}
  -->{{#if: {{{normalfont|}}}
     | [[Category:Pages using refbegin with normalfont parameter]]}}</includeonly><noinclude>
     | [[Category:Pages using refbegin with normalfont parameter]]}}</includeonly><noinclude>

Revision as of 09:46, 12 May 2017

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Refbegin

This template is used to start formatting for a reference list or bibliography.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Column width/Columns1

First mode: typographic unit of measurement such as 'em', specifying the width for the reference list columns, e.g. '33em'; spaced '33 em' will not be recognized. Second mode (deprecated): integer number of fixed columns into which the reference list is to be rendered.

Default
1
Example
30em
Stringsuggested
colwidthcolwidth Column width

Width of columns eg '25em' the default is '30em'.

Default
30em
Stringoptional
Hanging indentationindent

Set to "yes" to use hanging indent if an individual reference wraps over more than one line in the browser's display window.

Stringoptional
indentsizeindentsize

Amount of indent in em units. Default is '3.2'

Numberdeprecated