Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Template

Template:Ref

From Dragon Mania Legends (DML) Wiki

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation. (About template documentation)


Preface:

  • There are some circumstances where putting ref text inline is preferable, such as those located in parser functions that may or may not produce a result. In this case, if no ref is produced, references put in another section also won't display, which may be desired behavior.
  • This template and the {{ref}} template don't have full Cite features and may not always be sufficient, as they're intended only as a shortcut for our most common use cases.

Recommended Examples

One ref, text at bottom

Single references text afterwards{{ref|name=note1}} at bottom.
{{references|
{{ref|This is "note1" content, moved to references section,|name=note1}}
}}

Gives:
Single references, text afterwards[1] at bottom.

  1. This is "note1" content, moved to references section,

One ref, reused, text at bottom

Multiple references{{ref|name=note1}}, same ref used twice, text afterwards{{ref|name=note1}} at bottom.
{{references|
{{ref|This is "note1" content, moved to references section,|name=note1}}
}}

Gives:
Multiple references[1], same ref used twice, text afterwards[1] at bottom.

  1. 1.0 1.1 This is "note1" content, moved to references section,

Multiple, different refs, text at bottom

Multiple references{{ref|name=note1}}, same ref used twice, text afterwards{{ref|name=note2}} at bottom.
{{references|
{{ref|This is "note1" content, moved to references section,|name=note1}}
{{ref|This is "note2" content, moved to references section,|name=note2}}
}}

Gives:
Multiple references[1], same ref used twice, text afterwards[2] at bottom.

  1. This is "note1" content, moved to references section,
  2. This is "note2" content, moved to references section,

Non-recommended Examples

Single references, inline

Some text with reference afterwards.{{ref|This is the footnote or reference text that appears where the references are set.}}
{{references}}

Gives:
Some text with reference afterwards.[1]

  1. This is the footnote or reference text that appears where the references are set.

Multiple references, inline

This is some {{ref|This is "one" text but this content being here makes the rest of the paragraph hard to read|name=one}} paragraph text, you're supposed to be able to read it{{ref|name=one}}, but the reference text in the middle makes that hard.{{ref|name=one}}
{{references}}

Gives:
This is some [1] paragraph text, you're supposed to be able to read it[1], but the reference text in the middle makes that hard.[1]

  1. 1.0 1.1 1.2 This is "one" text but this content being here makes the rest of the paragraph hard to read

See Also

Notes

  • Both templates are part of Extension:Cite.
  • This template intentionally doesn't make use of Cite's group or extends parameters (they generally aren't used on this wiki).

A cite extension syntax (that we use on this wiki) shortcut. Most often combined with {{references}} template. This template makes the [[mw:Extensions:Cite|Cite]] extension easier to use by templating the one use-case we mostly use into an easier to use/understand and type, format. For more advanced uses of ''Cite'', apart from this template, see [[mw:Help:Cite|Help:Cite]] on MediaWiki.

Template parameters

ParameterDescriptionTypeStatus
(Optional, but only for refs with same name)1 text

no description

Stringoptional
(Optional) namename 2

no description

Stringoptional


This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.