reftags

This page, Help:Reftags, explains the use of the reftag element,...

A reftag can also be defined by using wikitext function {{#tag:ref|...}} to generate the text ... and allow direct use of subst'ing of templates to embed equivalent markup inside a footnote, or to nest a ... inside a {{#tag:ref|...}}.

Defining a reftag element

The general format is text for a simple reftag footnote. However reftags can have a name="xx" to define a footnote to be reused on a page by named ref, , as when citing the same webpage at several spots in the article text. There can be more than 3,000 reftag footnotes defined on a page, but usually there are less than a hundred.

Citing different pages in a single source

When citing different pages in a single source, a named ref can be followed by a {{R}} template. Given a ref like "book", the ref "author1990" can be reused, now using a different page number, say 53. This subsequent ref {{R|author1990|p=53}} will show the same superscript number, with a suffix of a colon and, in this case 53, the page number.: 53  This format allows the reader to click to the reference section, and then click on other references from the same source.

Named groupings

Rather than define hundreds of footnotes in a single list, various reftags could split to some named groupings, such as using "..."" to collect those footnotes into group name "gg" as displayed by . For example, a common tactic is to define footnote group "fn" which shows each link as "[fn 9]" for the 9th footnote in the group="fn". A group name can be multiple words in straight double quotation marks (group="set xx yy"), but a single-word name with no punctuation or other special characters, just ASCII letters and numerals, can omit the quotation marks (as: group=fn). Hence, many group names are typically one-word labels, to avoid excessive quotation marks.

Defining a reftag function

Rather than using an element text, an alternate method is to use the wikitext function tag:ref, as {{#tag:ref|...text...}} to define the contents of a footnote.

Examples:

  • Using {{#tag:ref|Example of tag:ref function}} will show a superscript number: and list footnote "Example of tag:ref function" under the References.
  • Using named {{#tag:ref|Named reftag function xx1|name="xx1"}} will show a superscript number: and list footnote "Named reftag function xx1" under the References below. The footnote name "xx1" then can be reused by putting at various points in the text.

Footnotes (fn)

References

See also

Tags:

reftags Defining a reftag elementreftags Defining a reftag functionreftags Footnotes (fn)reftagsTemplate:ReflistWikipedia:FootnotesWikipedia:Substmw:Extension:Cite/Cite.php

🔥 Trending searches on Wiki English:

Ron GoldmanJoseph StalinWordleVinícius JúniorBoeing 787 DreamlinerJohnny PembertonPeriodic tableCaitlin ClarkJulius CaesarSylvester StalloneD'Angelo RussellA Beautiful Mind (film)Keanu ReevesKevin De BruyneWilliam Adams (pilot)Sydney SweeneyLockheed Martin F-35 Lightning IIShōgun (1980 miniseries)Sunny LeoneAnthony DavisSimone BilesJoaquin PhoenixGame of ThronesEFL ChampionshipTitanicAndrew TateIranJai Shri RamBarbara O'NeillXXXX GoldIsidor StrausXXX (film series)Elon MuskPaige BueckersWish (film)Justin GaethjeBillie EilishRoad House (2024 film)K. G. Jayan2024 Bondi Junction stabbingsJohn LennonKaiju No. 8Jayne MansfieldConan O'BrienMillennialsLionel Messi2024 AFC Futsal Asian CupTimothy McVeighThe Sympathizer (miniseries)2023–24 UEFA Champions LeagueCyprusInna Lillahi wa inna ilayhi raji'unRohit SharmaDonald TrumpDrake (musician)Stephen CurryRishi SunakJill HalfpennyCaroline CelicoBlackRockGeneration XJenna Jameson2024 Summer OlympicsMechanical TurkNarendra ModiBurj KhalifaParis Saint-Germain F.C.Unit 731DubaiBob MarleyBenjamin FranklinOpinion polling for the 2024 Indian general electionTaylor SwiftThe Three-Body Problem (novel)List of 9-1-1 episodesPornhubSolar eclipse🡆 More