Template:Ref/doc: Difference between revisions

Content deleted Content added
m Reverted 2 edits by 41.216.73.30 (talk) to last revision by Izno
No edit summary
 
(10 intermediate revisions by 9 users not shown)
Line 1:
{{#switch:{{NAMESPACE}}:{{ROOTPAGENAME}}
|Template:Note=
{{Distinguish|Template:A note|Template:NoteTag|Template:Memo{{!}}Template:Memo <small>(Template:NoteBox)</small>|Template:Notice}}
}}
{{Documentation subpage}}
{{High-use}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Notice|image=Stop hand nuvola.svg|'''This is {{plain link|url=https://en.wikipedia.org/w/index.php?title=Wikipedia:Footnote3&diff=41876751&oldid=41331534|name=no longer}} the recommended method of citing sources.''' If a note list separate from the list of references is desired, {{tl|refn}}, {{tl|efn}} and {{tl|efnNoteTag}} may be used.<br /> For information on how to place and format citations, see [[Wikipedia:Citing sources]].<br /> An explanation on how to create 'numbered footnotes' is at [[Help:Footnotes]].}}
{{Uses TemplateStyles|Template:Citation/styles.css}}
 
Line 33 ⟶ 34:
!Result
|-
|<syntaxhighlight lang="wikitext">
|<pre>
Text that requires a footnote.{{ref|a}}
 
==Notes==
:1.{{note|a}}Body of the footnote.
</syntaxhighlight>
</pre>
|Text that requires a footnote.{{ref|a}}
 
Line 56 ⟶ 57:
!Result
|-
|<syntaxhighlight lang="wikitext">
|<pre>
Text alpha.{{ref|Alpha|α}} Text beta.{{ref label|Beta|β}}
 
Line 62 ⟶ 63:
:{{note|Alpha|α}} Information on alpha
:{{note label|Beta|β}} Information on beta
</syntaxhighlight>
</pre>
|
Text alpha.{{ref|Alpha|α}} Text beta.{{ref label|Beta|β}}
Line 81 ⟶ 82:
! style="width:50%;" | Result
|-
|<presyntaxhighlight lang="wikitext" style="white-space:pre-wrap; word-wrap:break-word;">
... The reunification project started in 1959 and concluded in 1961. The outcome of the project was instrumental in the company's success.{{ref|Lewinsky1|A}} ...
 
Line 90 ⟶ 91:
==Notes==
:A.{{note|Lewinsky1}}{{note|Lewinsky2}}{{note|LewinskyFinal}}See Brown, Lewinsky and Hart, 2009.
</syntaxhighlight>
</pre>
|... The reunification project started in 1959 and concluded in 1961. The outcome of the project was instrumental in the company's success.{{ref|Lewinsky1|A}} ...
 
Line 100 ⟶ 101:
:A.{{note|Lewinsky1}}{{note|Lewinsky2}}{{note|LewinskyFinal}}See Brown, Lewinsky and Hart, 2009.
|-
|<presyntaxhighlight lang="wikitext" style="white-space:pre-wrap; word-wrap:break-word;">
... The reunification project started in 1959 and concluded in 1961. The outcome of the project was instrumental in the company's success.{{ref label|Brown1|B}} ...
 
Line 109 ⟶ 110:
==Notes==
:B.{{note label|Brown1|^}}{{note label|Brown2|^}}{{note label|BrownLast|^}}See Brown, Lewinsky and Hart, 2009.
</syntaxhighlight>
</pre>
|... The reunification project started in 1959 and concluded in 1961. The outcome of the project was instrumental in the company's success.{{ref label|Brown1|B}} ...
 
Line 133 ⟶ 134:
! style="width:50%;" | Result
|-
|<presyntaxhighlight lang="wikitext" style="white-space:pre-wrap; word-wrap:break-word;">
Some text.{{ref label|id5|5|1}}
 
Line 141 ⟶ 142:
...
:5.{{note label|id5||1}}{{note label|id5||2}} Some important comment!
</syntaxhighlight>
</pre>
|
Some text.{{ref label|id5|5|1}}
Line 159 ⟶ 160:
! style="width:50%;" | Result
|-
|<presyntaxhighlight lang="wikitext" style="white-space:pre-wrap; word-wrap:break-word;">
Body text.{{ref label|id4|Label 4|none}}
 
:{{note label|id4||none}}Footnote text
</syntaxhighlight>
</pre>
|
Body text.{{ref label|id4|Label 4|none}}
Line 178 ⟶ 179:
! style="width:50%;" | Result
|-
|<presyntaxhighlight lang="wikitext" style="white-space:pre-wrap; word-wrap:break-word;">
Some text.{{ref|noteS|S}}
 
Line 186 ⟶ 187:
:S.{{note|noteS}}Some footnote text
:T.{{note|noteT||Some other footnote text}}
</syntaxhighlight>
</pre>
|Some text.{{ref|noteS|S}}
 
Line 202 ⟶ 203:
! style="width:50%;" | Result
|-
|<presyntaxhighlight lang="wikitext" style="white-space:pre-wrap; word-wrap:break-word;">
:{{ref label|id ref2a|Label 2a|Back}}
:{{ref label|id ref2b|Label 2b|Back}}
Line 208 ⟶ 209:
:{{note label|id ref2a|Label 2a|Back|Capitalized footnote}}
:{{note label|id ref2b|Label 2b|Back|lower case footnote}}
</syntaxhighlight>
</pre>
|
:{{ref label|id ref2a|Label 2a|Back}}
Line 228 ⟶ 229:
! style="width:50%;" | Result
|-
|<syntaxhighlight lang="tidwikitext" style="white-space:pre-wrap; word-wrap:break-word;">
Article text{{ref label|reference_name_A|a|1}} more text{{ref label|reference_name_G|g|}} more text{{ref label|reference_name_B|b|2}} more text{{ref label|reference_name_C|c|3}} more text{{ref label|reference name_D|d|4}} more text{{ref label|reference name_E|e|none}} more text{{ref label|reference name_F|f|}} more text.{{ref label|reference_name_H|h|8}}
*
Line 261 ⟶ 262:
! style="width:50%;" | Result
|-
|<syntaxhighlight lang="tidwikitext" style="white-space:pre-wrap; word-wrap:break-word;">
Article text{{ref|reference_name_A|a}} more text{{ref|reference_name_B|b}} more text{{ref|reference_name_C|c}}.
* Bulleted text{{ref|reference_name_B|b}}
Line 314 ⟶ 315:
 
==Alternative referencing style==
The [[mw:Reference Tooltips|Reference Tooltips]] gadget does not work with these templates. Using ref/note tags is not the only way to create [[Help:Footnotes|footnotes]]. [[mw:Extension:Cite/Cite.php|Cite.php]] (with which Reference Tooltips does work) is currently the preferred method of creating footnotes, especially when the number of footnotes increases and the size of the article (or the area in which footnotes are used) grows. [[User:Cyde/Ref converter|Ref converter]] can convert ref/note tags to the newer Cite.php style.
 
The following examples compares two method and also shows how they can be combined:
Line 323 ⟶ 324:
! style="width:50%;" | Result
|-
|<syntaxhighlight lang="tidwikitext" style="white-space:pre-wrap; word-wrap:break-word;">Yammer yammer yammer.<ref name=smith2000>Smith wrote the definitive book on yammering.{{ref|Smith2000|Smith 2000}}</ref> Yammer yammer yammer.<ref name=smith2000/>
...