Jump to content

Template:Unbulleted list citebundle/doc

From Simple English Wikipedia, the free encyclopedia

This template creates an unbulleted list for bundled citations. It works with shortened footnotes, full citations, and general notes. The standard {{unbulleted list}} template will disrupt white space within references. It causes an unnecessary line break before the first list item. See below for comparisons:

Bundled citation with <syntaxhighlight lang="wikitext" inline></syntaxhighlight>: [1]

    • For the sun's size, see Miller, Edward (2005). The Sun. Academic Press. p. 1.
    • For the moon's size, see Brown, Rebecca (2007). "Size of the Moon". Scientific American. 51 (78): 46.
    • For the sun's heat, see Script error: The function "transl" does not exist. [山田花子] (2005). Script error: The function "transl" does not exist. 太陽の熱 [The Sun's Heat]. Script error: The function "transl" does not exist. (学術出版社) [Academic Press]. p. 2.

Versus incorrect rendering with <syntaxhighlight lang="wikitext" inline></syntaxhighlight>:[1]

    • For the sun's size, see Miller, Edward (2005). The Sun. Academic Press. p. 1.
    • For the moon's size, see Brown, Rebecca (2007). "Size of the Moon". Scientific American. 51 (78): 46.
    • For the sun's heat, see Script error: The function "transl" does not exist. [山田花子] (2005). Script error: The function "transl" does not exist. 太陽の熱 [The Sun's Heat]. Script error: The function "transl" does not exist. (学術出版社) [Academic Press]. p. 2.

Usage[change]

If any of the unnamed parameters contain an equal sign (=) in their text (not in their use of parameters in other templates), the parameter must be named in the usual way, {{Unbulleted list citebundle|1=}}. E.g. <syntaxhighlight lang="wikitext" inline></syntaxhighlight> will produce no output. But {{Unbulleted list citebundle|1=[https://www.naxos.com/CatalogueDetail/?id=SWR19026CD "''Festliche Arien – Fritz Wunderlich''"], [[Naxos Records]] SWR19026CD}} works as expected:


With "cite" templates[change]

The wiki text for the initial example above uses {{cite xxx}} templates for the footnotes:

Markup Renders as
Body text.[1]
<div class="reflist   " >
    • For the sun's size, see Miller, Edward (2005). The Sun. Academic Press. p. 1.
    • For the moon's size, see Brown, Rebecca (2007). "Size of the Moon". Scientific American. 51 (78): 46.
    • For the sun's heat, see Script error: The function "transl" does not exist. [山田花子] (2005). Script error: The function "transl" does not exist. 太陽の熱 [The Sun's Heat]. Script error: The function "transl" does not exist. (学術出版社) [Academic Press]. p. 2.
</div>


Multiref and shortened footnotes[change]

The template can also be called as {{multiref}} for easier typing. The example below uses shortened footnotes.

Markup Renders as
Text.[1]<div class="reflist   " >
    • Smith, p. 2
    • Jones, p. 105
    • Singh, p. 93
    • Lee et al., p. 22
    • Smith & Jones, p. 591
</div>


With "harv" templates[change]

Harvard-style templates create short citations that link to full citations. This template can be used to bundle short citations created by {{harvnb}}, {{harvtxt}}, and others.

Markup Renders as
Text.[1]<div class="reflist   " >
</div>

Example references for the linked footnotes above:

  • Script error: The function "transl" does not exist. [山田花子] (2005). Script error: The function "transl" does not exist. 太陽の熱 [The Sun's Heat]. Script error: The function "transl" does not exist. (学術出版社) [Academic Press].
  • Brown, Rebecca (2007). "Size of the Moon". Scientific American. 51 (78).
  • Miller, Edward (2005). The Sun. Academic Press.


One source citing another[change]

This is where the editor cannot, or has not, accessed the source verifying the claim, but instead has cited a second source providing a quote from the first source. Using this template makes it clear that there are two relevant items in the bibliography.

Markup Renders as
Text.[1]<div class="reflist   " >
    • Smith, p. 2 citing
    • Jones, p. 105
</div>


Explanatory notes[change]

One possible reason for adding an explanatory note is to make it clear that the citation leads to an example of the claimed fact, not to verification of the claim itself which may be in a later cite.

Markup Renders as
There are many breeds of cat found in Venezuela,[1] particular in the cities.[2]<div class="reflist   " >
    • For example,
    • Moggie, p. 2
    • Tom, p. 95
  1. Smith, p. 32
</div>


Explanatory note with a single citation:

Markup Renders as
There are many breeds of cat found in Venezuela,[1] particular in the cities.[2]<div class="reflist   " >
    • One example,
    • Moggie, p. 2
  1. Smith, p. 32
</div>


TemplateData[change]

<templatedata> {

   "description": "Unbulleted list for use in bundled citations (WP:CITEBUNDLE).",

"params": { "1": { "label": "List item 1", "type": "line", "required": true }, "2": { "label": "List item 2", "type": "line",

           "suggested": true

}, "3": { "label": "List item 3", "type": "line" }, "4": { "label": "List item 4", "type": "line" }, "5": { "label": "List item 5", "type": "line" }, "6": { "label": "List item 6", "type": "line" }, "7": { "label": "List item 7", "type": "line" }, "8": { "label": "List item 8", "type": "line" }, "9": { "label": "List item 9", "type": "line" }, "class": {

"description": "A custom class for the

...

tags surrounding the list",

"example": "plainlinks" }, "style": {

"description": "A custom CSS style for the

...

tags surrounding the list",

"example": "font-size: 90%;" }, "list_style": {

"description": "A custom CSS style for the

    ...

tags around the list",

"label": "List style" }, "item_style": {

"description": "A custom CSS style for all of the list items (the

  • ...
  • tags)", "label": "Item style" }, "item1_style": { "label": "Item 1 style", "description": "Custom CSS style for list item 1" }, "item2_style": { "label": "Item 2 style", "description": "Custom CSS style for list item 2" }, "item3_style": { "label": "Item 3 style", "description": "Custom CSS style for list item 3" }, "item4_style": { "label": "Item 4 style", "description": "Custom CSS style for list item 4" }, "item5_style": { "label": "Item 5 style", "description": "Custom CSS style for list item 5" }, "item6_style": { "label": "Item 6 style", "description": "Custom CSS style for list item 6" }, "item7_style": { "label": "Item 7 style", "description": "Custom CSS style for list item 7" }, "item8_style": { "label": "Item 8 style", "description": "Custom CSS style for list item 8" }, "item9_style": { "label": "Item 9 style", "description": "Custom CSS style for list item 9" } }, "paramOrder": [ "class", "style", "list_style", "item_style", "1", "2", "3", "4", "5", "6", "7", "8", "9", "item1_style", "item2_style", "item3_style", "item4_style", "item5_style", "item6_style", "item7_style", "item8_style", "item9_style" ] } </templatedata>

    See also[change]

    • {{multiref2}} – generates more spacing between bundled references
    • {{r}} – supports a different method to bundle or group multiple sub-references under one reference entry
    • {{sfnm}} – creates bundled short citations similar to {{sfn}}