Privacy Policy Cookie Policy Terms and Conditions Template talk:Ref - Wikipedia, the free encyclopedia

Template talk:Ref

From Wikipedia, the free encyclopedia

Ref template (talk page) archives (latest)→
Template:Ref is permanently or indefinitely protected.
Use {{editprotected}} on this page to propose an edit.
 


Contents

[edit] Documentation

[edit] Alternative referencing style

The Cite.php <ref> and <references/> system is an alternative style of referencing to the templates discussed on this page. For details on this system, please see Wikipedia:Footnotes and Wikipedia:Cite sources.

A third-party tool to translate articles using the templates described on this page into the Cite.php system is available, see Ref converter.

[edit] Usage

For multiple links to one citation in the Reference section, use different id values ("a", "b", etc.), beginning with the first citation. The "id" is used to make multiple backlinks from the note.

[edit] Link in text area

[edit] Simple
{{ref|reference_name}}
{{ref|reference_name|label}}

fuu[1]
fuulabel

Creates a simple link to a footnote, with reference_name being an invisible unique id.

[edit] Complex
{{ref label|reference_name|label|id}}

fuu[label]

{{ref label}} links to a {{note label}} citation in the References section labeled reference_name and id (reference_nameid). Text is marked with label instead of an automatically generated value. For future needs, reference_name should be the same as related references.

[edit] Harvard
{{ref harvard|reference_name|Harvard reference|id}}
{{ref harv|reference_name|Harvard reference|id}}

fuu (Harvard reference)
fuu(Harvard reference)

{{ref harvard}} and {{ref harv}} link to a {{ref label}} citation in the References section labeled reference_name and id. Text is with Harvard reference (usually an author's name and year of publication) instead of automatically generated number. {{ref_harvard}} formats the reference link as normal text while {{ref_harv}} formats the reference link as superscript.

[edit] Link in References section

[edit] Simple
{{note|reference_name}}

fuu

Creates a simple footnote for the reference with the invisible unique id reference_name.

[edit] Complex
{{note label|reference_name|number|id}}

id fuu

Creates a footnote matching {{ref label}} in the text labeled reference_name and id. For multiple uses of a citation, use {{note_label}} with the corresponding id values ("a", "b", etc.), used in the text. The "id" is used to make backlinks to the text. If the id is specified as "none", then the ^ symbol is rendered for the backlink.

[edit] Examples

Also see examples and explanation in Wikipedia:Footnote3.

The following examples from {{Ref/examples}} are rendered as a template in the following table:

What to type What it makes

Linking and footnote templates

Tags attached to links in text area:

  • "{{ref}} example{{ref|reference1}}" — Links to a citation in the Reference section labeled "reference1".
  • "Deprecated {{ref_num}} example{{ref_num|reference1|1}}" — Links to a citation in the Reference section labeled "reference1", but marked in the text with the number "1" instead of an automatically generated number. NOTE: {{ref_num}} is deprecated. {{ref_label}} should be used instead.
  • "{{ref_label}} example{{ref_label|example.com|2|none}}" — Links to a citation in the Reference section labeled "example.com". Text is marked with the number "2".

For two links to the same footnote labeled "example.com", you would:

  • "{{ref_label}} example{{ref_label|example.com|3|a}}"
  • "{{ref_label}} example{{ref_label|example.com|3|b}}"
  • "{{ref_label}} example{{ref_label|nextexample.com|4|4}}"
  • "{{ref_harvard}} example {{ref_harvard|lastexample.com|Jones 1999|none}}" — Links to a citation in the Reference section labeled "lastexample.comnone", and marked in the text with (Jones 1999).
  • "{{ref_harv}} example {{ref_harv|lastexample.com|Jones 1999|none}}" — Links to a citation in the Reference section labeled "lastexample.comnone", and marked in the text with (Jones 1999).
  • "{{ref_harvard}} example {{ref_harvard|finalexample.com|Smith 2000|a}}(a)"
  • "{{ref_harv}} example {{ref_harv|finalexample.com|Smith 2000|a}}(a)"
  • "{{ref_harvard}} example {{ref_harvard|finalexample.com|Smith 2000|b}}(b)"
  • "{{ref_harv}} example {{ref_harv|finalexample.com|Smith 2000|b}}(b)"

Tags attached to links in References or Footnote section:

"#{{note|reference1}} example of {{note}}" — In References section, citation labeled "reference1".

"#{{note_label|example.com|2|none}}"— In References section, citation labeled "example.comnone". Creates backlink to matching {{ref_label}} entry in the text labeled "example.comnone".

Now, if you have two links to the same footnote labeled "example.com", you would do:

"#{{note_label|example.com|3|a}}{{note_label|example.com|3|b}} example of {{note_label}}"

"{{note_label|nextexample.com|4|4}} example of {{note_label}}"

  • "{{note_label|lastexample.com|Jones 1999|none}}Jones (1999) {{note_label}}" -- Note that when the 3rd unnamed parameter is specified as "none", the ^ symbol is rendered for the backlink.
  • "{{note_label|finalexample.com|Smith 2000|a}}{{note_label|finalexample.com|Smith 2000|b}}Smith (2000)"


In text area:


In References or Footnote section:

  1. example of {{note}}
  2. ^ example of {{note_label}}
  3. a b example of {{note_label}}

4 example of {{note_label}}

[edit] Instructions

In an article, a reference link to supporting material can be made with the {{ref}} template, such as this[3]. (Note the link to the reference's footnote; at present it appears as a small number.)

A significant advantage of using this method is that the reference contains a named link which allows recovery from various edit problems. Otherwise, connections to references can be lost if only numbers are used and editors alter footnote numbers.

  • For multiple references to the same work it is suggested that the page number be used to make each reference unique, i.e. {{ref|Jones1954a-25}}.
  • For journal articles it is suggested a reference similar to AuthorYear be used, i.e. {{ref|Jones1954a}}.
  • Instructions for adding a citations using these templates:
Footnotes use names, not numbers. Please see Wikipedia:Footnote3 for details.
1) Assign your footnote a unique name, for example "TheSun_Dec9".
2) Add the template {{ref|TheSun_Dec9}} to the body of the article where you want the new footnote.
3) Take note of the name of the footnote that immediately proceeds yours in the article body.
4) Add #{{Note|TheSun_Dec9}} to the reference list, immediately below the footnote you noted in step 3.
5) Multiple sources in the text pointing to the same reference will not work: each source must have uniquely-named notes in the References section.
It is important to add the citations in the right order in the Reference (or Notes) list.

[edit] References (example for Notes)

  1. (used earlier)
  2. This is a footnote with supporting material to the above reference. This footnote is created with the template syntax: {{note|ref_example}}. The {{note}} template presently creates a small symbol ("^") that contains a link back up to the source in the text. Readers thus have links back and forth within the text. The number at the beginning of this line was created with the Wiki notation # placed at the beginning of the line, which only displays a numbered list. The matching number is not necessary, and Wikipedia:Cite sources suggests using the bulleted list notation: *

[edit] See also

[edit] "Template:Ref"

The Tallboy bomb article uses ref notes. The "ref_label" and "note" templates are working as expected but the "ref" template shows "Template:Ref" in the text and if cliked upon takes the reader to this template. Something somewhere is broken and I would appreciate it if someone who knows what they are doing could fix the Ref template. --Philip Baird Shearer 10:57, 17 September 2006 (UTC)

[edit] Please help!

Does this format.. superscripted text in parentheses such as (Author), that links to a note indexed as (Author) .. does it exist in the real world? Can you go to the library and pick up a major journal referenced in this way? If the answer is NO I vote Deprecate and Delete. Just because we can make our own idiosyncratic system of referencing is a far cry for saying that we should. The current chaos in systems for linking cites to refs does a huge disservice to the Wikipedia community. --Ling.Nut 15:29, 24 September 2006 (UTC)

[edit] Optional naming

I'd like to add a second parameter defaulting to nothing for the link name (see example page where this would be useful). This would have no effect on normal usage, as shown below. Are there any objections to this?

meh{{ref|meh|a}} fuu{{ref|fuu|b}} bar{{ref|bar|c}}{{ref|mv}}.

== Notes ==
* {{note|meh|a}} [[meh]]
* {{note|fuu|b}} [[fuu]]
* {{note|bar|c}} [[bar]]
# {{note|mv}} [[Metasyntactic variable]]

meha fuub barc[4].

Notes

  1. Metasyntactic variable

// [admin] Pathoschild (talk/map) 00:12, 7 October 2006 (UTC)

Implemented. // [admin] Pathoschild (talk/map) 06:42, 10 October 2006 (UTC)
THIS WEB:

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - be - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - closed_zh_tw - co - cr - cs - csb - cu - cv - cy - da - de - diq - dv - dz - ee - el - eml - en - eo - es - et - eu - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gd - gl - glk - gn - got - gu - gv - ha - haw - he - hi - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mg - mh - mi - mk - ml - mn - mo - mr - ms - mt - mus - my - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - rm - rmy - rn - ro - roa_rup - roa_tara - ru - ru_sib - rw - sa - sc - scn - sco - sd - se - searchcom - sg - sh - si - simple - sk - sl - sm - sn - so - sq - sr - ss - st - su - sv - sw - ta - te - test - tet - tg - th - ti - tk - tl - tlh - tn - to - tokipona - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu

Static Wikipedia 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2007:

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - be - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - closed_zh_tw - co - cr - cs - csb - cu - cv - cy - da - de - diq - dv - dz - ee - el - eml - en - eo - es - et - eu - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gd - gl - glk - gn - got - gu - gv - ha - haw - he - hi - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mg - mh - mi - mk - ml - mn - mo - mr - ms - mt - mus - my - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - rm - rmy - rn - ro - roa_rup - roa_tara - ru - ru_sib - rw - sa - sc - scn - sco - sd - se - searchcom - sg - sh - si - simple - sk - sl - sm - sn - so - sq - sr - ss - st - su - sv - sw - ta - te - test - tet - tg - th - ti - tk - tl - tlh - tn - to - tokipona - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu

Static Wikipedia 2006:

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - be - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - closed_zh_tw - co - cr - cs - csb - cu - cv - cy - da - de - diq - dv - dz - ee - el - eml - en - eo - es - et - eu - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gd - gl - glk - gn - got - gu - gv - ha - haw - he - hi - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mg - mh - mi - mk - ml - mn - mo - mr - ms - mt - mus - my - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - rm - rmy - rn - ro - roa_rup - roa_tara - ru - ru_sib - rw - sa - sc - scn - sco - sd - se - searchcom - sg - sh - si - simple - sk - sl - sm - sn - so - sq - sr - ss - st - su - sv - sw - ta - te - test - tet - tg - th - ti - tk - tl - tlh - tn - to - tokipona - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu