Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Reflist/doc: Difference between revisions

Template page
Content added Content deleted
m (1 revision imported: import reflist template from mediawiki)
(note and categories added)
 
Line 1: Line 1:
{{Documentation subpage}}
<noinclude>{{Documentation subpage}}</noinclude>
{{hatnote|'''Important!''': This template is used on many pages to reference source material. Editing it may cause the template to work incorrectly. It has been protected so only administrators can edit it.}}
{{Ombox | type=notice | text = Columns are not supported by some older browsers, most notably Internet Explorer 9 and below and Opera 11.0 and below.}}
{{hatnote|'''Note''': Columns are not supported by some older browsers, most notably Internet Explorer 9 and below and Opera 11.0 and below.}}


This [[Wikipedia:Citation templates|citation template]] provides formatting and organizational features for [[w:Help:Footnotes|footnotes]]. It encapsulates the {{tag|references|s}} tag used by the [[cite.php]] MediaWiki extension to show the list of references as defined by {{tag|ref|o}} tags. It adds support for a reduced font size, columns, groups.
This [[Wikipedia:Citation templates|citation template]] provides formatting and organizational features for [[w:Help:Footnotes|footnotes]]. It encapsulates the {{tag|references|s}} tag used by the cite.php MediaWiki extension to show the list of references as defined by {{tag|ref|o}} tags. It adds support for a reduced font size, columns, groups.


If you don't use any of the additional features, then it produces the same output as the simpler and slightly faster {{tag|references|s}} tag.
If you don't use any of the additional features, then it produces the same output as the simpler and slightly faster {{tag|references|s}} tag.
Line 32: Line 33:
* {{tl|column-count}}
* {{tl|column-count}}
* {{tl|column-width}}
* {{tl|column-width}}

<includeonly>
[[Category:Template]]
[[Category:References templates]]
</includeonly>

Latest revision as of 09:51, 2 July 2024

This citation template provides formatting and organizational features for footnotes. It encapsulates the <references /> tag used by the cite.php MediaWiki extension to show the list of references as defined by <ref> tags. It adds support for a reduced font size, columns, groups.

If you don't use any of the additional features, then it produces the same output as the simpler and slightly faster <references /> tag.

Parameters

  • First unnamed parameter:
column-count: a natural number specifying fixed columns into which the reference list is to be rendered. Example: |2|.
column-width: a typographic unit of measurement such as em, specifying the width for the reference list columns. Example: |30em|.
  • refs: used with named references (e.g., <ref name=name />); it specifies a list of some or all named references used in the article.
  • group: identifies by name the subset of references to be rendered; the value should correspond to that used inline, e.g., {{Reflist|group=groupname}} renders all references with groupname as the group name (<ref>).
  • liststyle: specifies the style used when the reference list is enumerated; if none is specified, the default is to render a numbered list.

Example

Lorem.<ref>ipsum</ref><ref>dolor</ref><ref>sit</ref><ref>amet</ref>
Consectetur.<ref>adipisicing</ref><ref>elit, sed</ref><ref>do</ref>

{{Reflist|3}}

gives:

Lorem.[1][2][3][4] Consectetur.[5][6][7]

  1. ipsum
  2. dolor
  3. sit
  4. amet
  5. adipisicing
  6. elit, sed
  7. do

See also


Cookies help us deliver our services. By using our services, you agree to our use of cookies.