Help:Editing/References: Difference between revisions
mNo edit summary |
m Added "Multiple usage of references" section. |
||
| Line 69: | Line 69: | ||
|quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ... | |quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ... | ||
}}</ref> | }}</ref> | ||
== Multiple usage of references == | |||
It's quite usual to use a reference multiple times in an article. In order to be able and re-use a reference, you will have to name its tag like in the following example: | |||
<ref name=John> | |||
If the reference name has more than one word, use quotation marks instead. | |||
<ref name="Name of the reference"> | |||
If you want to use it after the initial usage, simply write for the second position: | |||
<nowiki><ref name=John/></nowiki> | |||
or for the second example above: | |||
<nowiki><ref name="Name of the reference"/></nowiki> | |||
The slash at its end informs the render engine that this is a complete ref tag. A leading space character in front of the slash is not required any longer. This behavior is identical to common HTML5 tags. | |||
{{SEEALSO}} | {{SEEALSO}} | ||