Template:Ref/List: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "</includeonly><noinclude>↵{{Doc/Template}}" to "</includeonly><noinclude>{{Doc/Template}}")
mNo edit summary
Line 3: Line 3:
   -->|{{#tag:references<!--
   -->|{{#tag:references<!--
     -->|<!-- LEAVE THIS BLANK --><!--
     -->|<!-- LEAVE THIS BLANK --><!--
     --><!-- Disable responsiveness if a fixed number of columns is set by the editor --><!--
     --><!-- Disable responsiveness if manual columns --><!--
     -->|responsive={{#if:{{{Columns|}}}|0}}<!--
     -->|responsive={{#if:{{{Columns|{{{ColWidth|}}}}}}|0}}<!--
     -->|group={{{Group|}}}<!--
     -->|group={{{Group|}}}<!--
   -->}}<!--
   -->}}<!--
-->|class=reflist<!--
-->|class=reflist<!--
-->|style=<!--
-->|style=<!--
   --><!-- If columns are enabled, insert appropriate inline styles --><!--
   --><!-- If specified, add the column count --><!--
   -->{{#if:{{{Columns|}}}<!--
   -->{{#if:{{{Columns|}}}|column-count:{{{Columns}}};}}<!--
  -->|-moz-column-count:{{{Columns}}}; -webkit-column-count:{{{Columns}}}; column-count:{{{Columns}}};<!--
  --><!-- If specified, add an the column width --><!--
    --><!-- If specified, add an the column width --><!--
  -->{{#if:{{{ColWidth|}}}|column-width:{{{ColWidth}}};}}<!--
    -->{{#if:{{{ColWidth|}}}<!--
  --><!-- If manual columns, add the column gap (custom, otherwise 0.75em) --><!--
    -->|-moz-column-width:{{{ColWidth}}}; -webkit-column-width:{{{ColWidth}}}; column-width:{{{ColWidth}}};<!--
  -->{{#if:{{{Columns|{{{ColWidth|}}}}}}|column-gap:{{{ColGap|0.75em}}};}}<!--
    -->}}<!--
    --><!-- If specified, add the custom column gap - otherwise, use 0.75em --><!--
    -->{{#if:{{{ColGap|}}}<!--
    -->|-moz-column-gap:{{{ColGap}}}; -webkit-column-gap:{{{ColGap}}}; column-gap:{{{ColGap}}};<!--
    -->|-moz-column-gap:0.75em; -webkit-column-gap:0.75em; column-gap:0.75em;<!--
    -->}}<!--
  -->}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Doc/Template}} [[Category:Reference templates]]</noinclude>
--></includeonly><noinclude>{{Doc/Template}} [[Category:Reference templates]]</noinclude>

Revision as of 10:17, November 29, 2023

vde
Template Documentation

Description

This template can be used to insert a list of all the references in a specified reference group. This template should usually be avoided - Template:Ref/Sources and Template:Ref/Notes should be favoured wherever possible. For more reference templates, see Template:Ref.

Usage

Simplified Version Full Version
{{Ref/List}}
{{Ref/List
|Group=
|Columns=
|ColWidth=
}}

Example

Here is an example of how to use this template:

Wiki Markup Result
Sergeant [[Avery Johnson]] was a member of the [[ORION Project]].{{Ref|Name=GNPg122|Halo Graphic Novel, Page 122}}{{Ref|Group=Note|The ORION Project is also known as the SPARTAN-I program, a name retroactively given to it after the formation of the [[SPARTAN-II program]].}}

==Notes==
{{Ref/List|Group=Note}}

==Sources==
{{Ref/List|Columns=2}}

Sergeant Avery Johnson was a member of the ORION Project.[1][Note 1]

Notes

  1. ^ The ORION Project is also known as the SPARTAN-I program, a name retroactively given to it after the formation of the SPARTAN-II program.

Sources

  1. ^ Halo Graphic Novel, Page 122

Fields

Field Name Aliases Optional or Required? Description Example
Group - Optional The group of citations to display. If left unspecified, it will display the citations that aren't in a group (i.e. normal references).
Note
Columns - Optional The number of columns to display the citations in. If left unspecified, the list will be automatically segmented into responsive columns if there are more than 10 citations.
2
ColWidth - Optional The minimum width of each column of citations, if needed. Used as an alternative to specifying the number of columns to keep the list responsive.
500px