Predložak:R/doc
The {{r}} (referencing) template allows creating or linking any kind of reference in an article. Intent
The {{r}} template allows one to define and invoke any kind of full or shortened references (citations as well as footnotes) in articles in a very intuitive way, utilizing an easy-to-remember and very short notation, reducing a lot of clutter from article source code, thereby making it easier to read and maintain.
{{r}} provides means for links to references to carry additional information (like pages, quotations and other commentary) in a condensed format, thereby eliminating the need for an additional article section for shortened references (and hence avoiding the problems related to that approach like the extra layer of indirection of links, the real-estate occupied for, as well as the amount of whitespace created by that section, and the often unreliable proprietary linking system with ambiguous or dangling links as well as lacking backlinks from the full citations to the shortened references). Its annotation system can be used to enrich the full citation with information given where a reference gets invoked, to bundle multiple citations into one entry, or to group sub-references under the corresponding full reference (i.e. to implement r-style shortened citations).
By utilizing the MediaWiki Extension:Cite internally (instead of establishing an independent linking system (i.e. WP:CITEREF) on top of it), {{r}} also remains fully compatible with other referencing systems and will take advantage of any future improvements of the underlying system.
It can be used with raw text definitions for the references as well as be combined with other citation templates (like CS1/CS2).
Using <ref> For example, fact<ref name=Bal/><ref name=Bam/><ref name=Bar/> and fact.<ref name=Bas/><ref name=Bay/><ref name=Baz/>
Displays as: For example, fact[1][2][3] and fact.[4][5][6]
Instead using {{r}} For example, fact{{r|Bal}} and fact.{{r|Bas}}
Displays as: For example, fact[1][2][3] and fact.[4][5][6]
{{r}} and <ref> can coexist on the same page, and like <ref>, {{r}} can be used with or without list-defined references. In addition, a |page= or |p= parameter adds the functionality of {{rp}}:
Using {{r}} with
|p= parameter For example, fact.{{r|RefName}}
Displays as: For example, fact.[7]: 22

