Help:Overview of referencing styles: Difference between revisions

Content deleted Content added
Gadget850 (talk | contribs)
Gadget850 (talk | contribs)
Line 86:
|-
| Reuse || Yes, but creates duplicate HTML ids{{r|htmlid}} || Yes, unique HTML ids{{r|citebacklinks}}
|-
| Target highlight || Backlink only || Backlink and citation
|-
| Error checking || No{{r|referror}} || Yes{{r|citeerror}}
|-
| Markup || Fairly terse || Can be a bit long, especially when using groups
|-
| Preview testing || Clicking on a {{tl|ref}} link while previwing an edit will cause the page to reload and changes to be lost || No issues
|}
 
Line 101:
<ref name=footnote>See [[Help:Footnotes]]</ref>
<ref name=footnote3>See [[Wikipedia:Footnote3]]</ref>
<ref name=htmlid>{{tl|Ref}} creates an HTML id for the backlink ; when using {{codetl|<nowiki>id="ref_{{{1Ref}}}"</nowiki>}}; when using Ref multiple times, the id is the same.:
*Per the HTML spec, ids must be unique, thus reuse causes [[Help:Markup validation|validation errors]] in the articles where the template is transcluded.
*Backlinks from the reference list to the inline cite are ambiguous— FireFox and Internet Explorer backlink only to the first inline cite, Opera backlinks to the last.
*Example: See the use of the dagger symbol in {{oldid|List of baryons|350423039|List of baryons}} and the [http://validator.w3.org/check?uri=http%3A%2F%2Fen.wikipedia.org%2Fw%2Findex.php%3Ftitle%3DList_of_baryons%26oldid%3D350423039&charset=%28detect+automatically%29&doctype=Inline&group=0 W3C validation]— the HTML id for the dagger is "ref_Undiscovered".</ref>