Difference between revisions of "Help:References"

From Healthcarepedia
Jump to: navigation, search
(Created page with "==Use== Two HTML-style tags are used to define and show footnotes. ;{{tag|ref|open}} Single use footnotes are defined by enclosing content within {{tag|ref}}: :{{tag|ref|cont...")
 
m
Line 1: Line 1:
==Use==
+
Two HTML-style tags are used to define and show footnotes: <nowiki><ref> and <reference /></nowiki>
Two HTML-style tags are used to define and show footnotes.
 
  
;{{tag|ref|open}}
+
==<nowiki><ref></nowiki>==
Single use footnotes are defined by enclosing content within {{tag|ref}}:
+
*Single use footnotes are defined by enclosing content within <nowiki><ref>...</ref></nowiki>
:{{tag|ref|content=''content''}}
+
**A footnote used multiple times may be defined with a name: <nowiki><ref name="foo">content</ref> </nowiki>
  
A footnote used multiple times may be defined with a name:
+
*To invoke a named footnote:
:{{tag|1=ref name="foo"|2=open}}''content''{{tag|ref|close}}
+
**<nowiki><ref name="foo" /></nowiki>
 
 
To invoke a named footnote:
 
:{{tag|1=ref name="foo"|2=single}}
 
  
 
Footnotes may be defined in groups:
 
Footnotes may be defined in groups:
Line 17: Line 13:
 
Names and groups may not be a numeric integer. The quotes are optional unless the name includes a space, punctuation or other mark. It is recommended that names be kept simple and restricted to the ASCII character set.
 
Names and groups may not be a numeric integer. The quotes are optional unless the name includes a space, punctuation or other mark. It is recommended that names be kept simple and restricted to the ASCII character set.
  
;{{tag|references|single}}
 
To display the reference list, after all of the {{tag|ref}} tags, include:
 
:{{tag|references|single}}
 
  
To display footnotes defined in a group. include:
+
==<nowiki><reference /></nowiki>==
:{{tag|1=references group="foo"|2=single}}
+
 
 +
*To display the reference list, after all of the {{tag|ref}} tags, include:
 +
**<nowiki><reference /></nowiki>
 +
 
 +
*To display footnotes defined in a group. include:
 +
**<nowiki><references group="foo" /></nowiki>
 +
 
 +
 
 +
For a more detailed guide, see https://www.mediawiki.org/wiki/Help:Cite

Revision as of 01:51, 2 November 2016

Two HTML-style tags are used to define and show footnotes: <ref> and <reference />

<ref>

  • Single use footnotes are defined by enclosing content within <ref>...</ref>
    • A footnote used multiple times may be defined with a name: <ref name="foo">content</ref>
  • To invoke a named footnote:
    • <ref name="foo" />

Footnotes may be defined in groups:

Template:TagcontentTemplate:Tag

Names and groups may not be a numeric integer. The quotes are optional unless the name includes a space, punctuation or other mark. It is recommended that names be kept simple and restricted to the ASCII character set.


<reference />

  • To display the reference list, after all of the Template:Tag tags, include:
    • <reference />
  • To display footnotes defined in a group. include:
    • <references group="foo" />


For a more detailed guide, see https://www.mediawiki.org/wiki/Help:Cite