Jump to content

Template:Ref/doc

From Wikisource

{{Ref}} and {{note}} are used for customizable inline references to footnotes.

Usage

[edit]

Default

[edit]

Example

Text{{ref|identifier}}.

{{note|identifier}} Reference text.

Text[identifier].

  Reference text.

Replace "identifier" with a unique number or name, which will be used as the link text and target. This is usually an incremental number (like "1") or letter (like "a").

Customized

[edit]

You can customize the appearance to match a particular format using optional parameters.

Example

Text{{ref|identifier|visible ref text!}}.

{{note|identifier|visible note text!}} Footnote text.

Textvisible ref text!.

visible note text!  Footnote text.

Customized IDs

[edit]

Example

Text{{ref|identifier|id 1|id=identifier-1}}.

Text{{ref|identifier|id 2|id=identifier-2}}.

{{note|identifier|ref1=identifier-1|ref2=identifier-2}} Footnote text.

Textid 1.

Textid 2.

↑ 1 ↑ 2  Footnote text.

Example

Text{{ref|identifier|id 1|id=identifier-1}}.

Text{{ref|identifier|id 2|id=identifier-2}}.

{{note|identifier|ref1=identifier-1|ref2=identifier-2|ref1-display=↑ id 1|ref2-display=↑ id 2}} Footnote text.

Textid 1.

Textid 2.

↑ id 1 ↑ id 2  Footnote text.

Formatting

[edit]

By default, notes are bold and italic. Setting |bold=no and/or |italics=no will disable bold and italic formatting respectively.

Example

{{note|identifier|not bold text!|bold=no}} Footnote text.

{{note|identifier|not italic text!|italics=no}} Footnote text.

{{note|identifier|not bold or italic text!|bold=no|italics=no}} Footnote text.

not bold text!  Footnote text.

not italic text!  Footnote text.

not bold or italic text!  Footnote text.

See also

[edit]