Template:Multiref2/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This template creates an unbulleted list for bundled citations. It is a wrapper for {{unbulleted list}} that adds white space between each bundled reference. This template or {{multiref}} is recommended over HTML line breaks which cause accessibility issues. The standard {{unbulleted list}} template for body text will disrupt white space within references. It causes an unnecessary line break before the first list item. See below for comparisons:

Bundled citation with {{multiref2}}: [1]

  1. ^
    • For the sun's size, see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
    • For the moon's size, see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
    • For the sun's heat, see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Bundled citation with {{multiref}}:[1]

  1. ^
    • For the sun's size, see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
    • For the moon's size, see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
    • For the sun's heat, see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Versus incorrect rendering with {{unbulleted list}}:[1]

  1. ^
    • For the sun's size, see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
    • For the moon's size, see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
    • For the sun's heat, see Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

This template can be used to add a list of references inside a single inline citation. All parameters are unnamed. You can format the list like the example below for readability.

Example

[edit source]
Markup Renders as
Text<ref>{{multiref2
|1={{cite web |url=https://www.example.com |title=Example 1 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
|2={{cite web |url=https://www.example.com |title=Example 2 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
|3={{cite web |url=https://www.example.com |title=Example 3 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
|4={{cite web |url=https://www.example.com |title=Example 4 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
|5={{cite web |url=https://www.example.com |title=Example 5 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
|6={{cite web |url=https://www.example.com |title=Example 6 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
|7={{cite web |url=https://www.example.com |title=Example 7 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
|8={{cite web |url=https://www.example.com |title=Example 8 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
|9={{cite web |url=https://www.example.com |title=Example 9 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
|10={{cite web |url=https://www.example.com |title=Example 10 |website=example.com |last=Smith |first=John |access-date=15 January 2001 |publisher=Some Publishers, Inc.}}
}}</ref>

Text[1]

  1. ^
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Template data

[edit source]

This template can be used to add a list of references inside a single inline citation.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
11

First reference

Stringrequired
22

Second reference

Stringrequired
33

Third reference

Stringsuggested
44

Fourth reference

Stringsuggested
55

Fifth reference

Stringsuggested
66

Sixth reference

Stringsuggested
77

Seventh reference

Stringsuggested
88

Eighth reference

Stringsuggested
99

Ninth reference

Stringsuggested
1010

Tenth reference

Stringsuggested

See also

[edit source]

The {{harvnb}} and {{r}} or other similar templates can be manually bundled in a single footnote

General templates that create lists not necessarily designed for references or footnotes can be found at Category:List formatting and function templates.