Changes

From Super-wiki
Jump to: navigation, search

Template:Reflist/doc

4,241 bytes removed, 21:58, 7 March 2011
no edit summary
==RefUse this template to create a footnote-family templates==The ref family of templates is used to place labeled references and notes and references into style reference list in an article, with the labels normally being clickable links for navigating from a ref . The advantage to a corresponding note and back from doing this using the note to the ref. The links and backlinks are identified internally by combining Ref tag is that the specified parameters. The templates wiki will take a variable number care of unnamed parameters identified by their position numbering andmanaging the references list, optionally, a named parameter named ''noid'' which, if used, should be set by specifying it as "noid=noid"editors will not need to renumber an entire references list just to add one footnote mid-article.
=== Very simple example ===
{| class=wikitable !Article!Wikitext|-|<pre>Text that requires a footnote.{{ref|a|1}}= Four options for usage ==
==Notes= Option 1 (only specific/unique references) ===:1<pre>== Content == Lorem ipsum.<ref>season, episode, etc.</ref> Lorem ipsum dolor sit amet.<ref>season, episode, etc.</ref> == References == {{note|areflist}}Body of the footnote.
</pre>
|{{quotation|Text that requires This will create an uniquely numbered footnote at the end of each sentence, which will be a footnoteworking link to the references list at the end of the article. The references themselves can also be links to other pages on the wiki, or even external pages.{{ref|a|1}} 
Notes=== Option 2 (repeat references) ===:1.{{note|a}}Body of the footnote.<pre>|}== Content ==
The first parameter of Lorum ipsum.<ref is the label that has to be used for the parameter of the corresponding note. The second parameter is the marker of the resulting link as it will be shown on the page>season, as a superscript. The easiest choice is to make these two the sameepisode, but this is not a requirementetc.</ref>
Lorum ipsum dolor sit amet.<ref name=== Labels must be unique ==="five01">season, episode, etc.</ref>
A common error when using Lorum ipsum.<ref is to use it multiple times with the same label. For example:name"five01" />
<pre>Text that requires a footnote.{{ref|1|1}}Some other text that requires the same footnote.{{ref|1|1}}== References ==
==Notes==:1.{{note|1reflist}}Body of the footnote.
</pre>
This will make numbered footnotes at the end of each sentence, but the number for the second and third footnotes would be the same since they refer to the same source material. The advantage of doing this is less typing and therefore smaller page file size, especially when the reference is itself a link. Note that reference ''name'' '''cannot''' be just an integer, ie. 501, it must start with an alphabetical character.
 
 
=== Option 3 (only general references) ===
<pre>
== Content ==
This generates two citations with the same label, which is invalid HTML. To fix the problem, use multiple unique IDsLorem ipsum.
=== Simple examples ===Lorem ipsum dolor sit amet.
ref and note== References ==
Example:<pre style="border:1; background:white; margin: 0; padding:0; line-height: 130%; word-wrap: break-word;white-space: -moz-pre-wrap;white-space: -o-pre-wrap;white-space: -pre-wrap;white-space: pre-wrap">Article text{{ref|reference_name_A|a}} more text{{ref|reference_name_B|b}} more text {{ref|reference_name_C|c|noid=noidrefbegin}}.*Bulleted text{{ref|reference_name_B|b|noid=noid}}*Bulleted text{{ref|reference_name_C|c}}.general reference 1*general reference 2*intervening text**{{note|reference_name_A|a}}Text for note a.*{{note|reference_name_B|b}}Text for note b.*{{note|reference_name_C|c|Text for note c (with extended highlighting).refend}}
</pre>
This makes a list of references at the end of the article, without any footnotes citing the references to specific text in the article.
 
 
=== Option 4 (both specific and general references) ===
<pre>
== Content ==
This would produce:Lorem ipsum.<div style="margin: 1em; padding: 1em; border:1px solid #999"ref>Article text{{ref|reference_name_A|a}} more text{{ref|reference_name_B|b}} more text {{ref|reference_name_C|c|noid=noid}}.*Bulleted text{{ref|reference_name_B|b|noid=noid}}*Bulleted text{{ref|reference_name_C|c}}.**intervening text**{{note|reference_name_A|a}}Text for note a.*{{note|reference_name_B|b}}Text for note bseason, episode, etc.*{{note|reference_name_C|c|Text for note c (with extended highlighting).}}</divref>
Notice that the navigation back from the note to the Lorem ipsum dolor sit amet.<ref does not work by clicking the backlink for refs which specify "noid=noid". In practice>season, if "noid=noid" is specifiedepisode, it is usually specified for all refs having identical unnamed parameters, and navigation back to the associated etc.</ref is done by using the browser's "Back" button.>
Also notice that browsers which support highlighting of link-accessed material highlight the active backlink by default, and that the highlighting has been extended to encompass the text for note c by specifying that text as a final template parameter instead of placing it outside of the templateLorem ipsum.
=== More complex examples ===ref label pairs with note label.The note label template will normally have identical parameters with the ref label with which it is paired, and is normally created by copying the ref, pasting it into the note location, and changing its name to "note label"; this avoids having parameters mismatched because of a typo. Navigation forward uses parameters 1 and 3, navigation backward uses parameters 1 and 2. Parameter 3 is optional, and note label has an optional fourth parameterLorem ipsum dolor sit amet.
Example:<pre style="border:1; background:white; margin: 0; padding:0; line-height: 130%; word-wrap: break-word;white-space: -moz-pre-wrap;white-space: -o-pre-wrap;white-space: -pre-wrap;white-space: pre-wrap">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}}.**intervening text**{{note label|reference_name_A|a|1}}Text of note for ref a.*{{note label|reference_name_B|b|2}}Text of note for ref b.*{{note label|reference_name_C|c|3|ABCDE}}Text of note for ref c.*{{note label|reference_name_D|d|4|FGHIJ}}Text of note for ref d.*{{note label|reference_name_E|e|none}}Text of note for ref e.*{{note label|reference_name_F|f}}Text of note for ref f.*{{note label|reference_name_G|g||{{note label|reference_name_H|h|8|Text of note for refs g and h (with extended highlighting).}}}}</pre>= References ==
This would produce:<div style="margin: 1em; padding: 1em; border:1px solid #999">Article text{{ref label|reference_name_A|a|1reflist}} 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}}.**intervening text**{{note label|reference_name_A|a|1}}Text of note for ref a.*{{note label|reference_name_B|b|2}}Text of note for ref b.*{{note label|reference_name_C|c|3|ABCDE}}Text of note for ref c.*{{note label|reference_name_D|d|4|FGHIJ}}Text of note for ref d.*{{note label|reference_name_E|e|none}}Text of note for ref e.*{{note label|reference_name_F|f}}Text of note for ref f.*{{note label|reference_name_G|g||{{note label|reference_name_H|h|8|Text of note for refs g and h (with extended highlighting).}}}}</div>#Note that ref label produces a superscripted link with square brackets. #The note for ref e has a "^" character as its backlink, because parameter 3 was specified as "none".#The notes for refs f and g do not have a clickable backlink, because parameter 3 was not specified.
Notice that, because the notes for refs g and h above use the same text, note h was made a part of the text passed as a final parameter to note g {{refbegin}}* general reference 1* general reference 2{{refend}}</pre>This combines both general references with in order for the extended highlighting to cover both notes-article footnoted references.
=== Combining Ref family templates with the alternative referencing style ===
An example combining the use of Ref== Multiple columns ==Using <tt><nowiki>{{reflist|2}}</nowiki></tt> will create a two-family templates with the alternative referencing style might be something likecolumn reference list, and <tt><nowiki>{{reflist|3}}</nowiki></tt> will create a three-column list.
Using <pre style="border:1; background:white; margin: 0; padding:0; line-height: 130%; word-wrap: break-word;white-space: -moz-pre-wrap;white-space: -o-pre-wrap;white-space: -pre-wrap;white-space: pre-wrap"tt>Yammer yammer yammer.<ref name=smith2000nowiki>Smith wrote the definitive book on yammering.{{refreflist|Smith2000|Smith 2000colwidth=30em}}</refnowiki>Yammer yammer yammer.<ref name=smith2000/tt>...==References==<References/>.will allow the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that's appropriate for the average width of the references on the page.
==Third party tool==A third-party tool '''Note''': Multiple columns may not render properly in all browsers, as there are compatibility issues. Due to translate articles this please refrain from using columns, its listed here in the templates described on this page into doc for the Cite.php system is availablesake of comprehensiveness and possible future broad use.<includeonly>[[Category:Templates]]</includeonly>
451
edits

Navigation menu
http://supernaturalwiki.com/Special:MobileDiff/46408...51223
supernaturalwiki.com
crawl=CC-MAIN-2022-21
28756
application/http; msgtype=response
sha1:UWGI2IZFT6ZJMMHX2HNJ4LM2DLHPFBZ5
<urn:uuid:bd375fc2-ef2c-417d-9406-d0fab4980ad0>
2022-05-22T14:53:09Z
206.196.111.105
text/html
sha1:KCWE5RI6TEDRWCNGC3UUNMBGZV6QKT53
<urn:uuid:ce258712-cbcb-47f5-9cf3-ffc9a2c00c0d>
http://supernaturalwiki.com/Special:MobileDiff/46408...51223
response
<urn:uuid:c465c07b-bafd-4c84-8e1b-ff7a4e35f805>
isPartOf: CC-MAIN-2022-21
publisher: Common Crawl
description: Wide crawl of the web for May 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-24
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.3-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/