Sandbox: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
(fixup two rules, now it verifies on copy-n-paste)
No edit summary
 
(17 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<tt>-----BEGIN PGP SIGNED MESSAGE-----<br>
Test edit.
Hash: SHA1<br>
 
<br>
==Notes gathered at a single position==
I can take bitcoins for Noisebridge (I'm on the board for whatever that counts as -- at the very least, Noisebridge have a tradition that you can give cash to a board member as a donation)<br>
Note: This method will only work if you have installed the [[mw:Extension:Cite|Cite Extension]].
<br>
 
1B5sJQ6Wu6AmK9xG5YTic4Nszw4PS7UMAM<br>
This method gathers the notes at a single position marked with the
<br>
<nowiki><references/></nowiki> tag.  If used multiple times, only the first works.
d.<br>
 
<br>
* <code>&lt;ref&gt;</code>Reference text<code>&lt;/ref&gt;</code>
<br>
*: Produces a reference mark linking to the reference text, provided that the tag <code>&lt;references/&gt;</code> mentioned below is present on the page.
</tt><tt>-----BEGIN PGP SIGNATURE-----<br>
* <code>&lt;ref name="</code>''id''<code>"&gt;</code>Reference text<code>&lt;/ref&gt;</code>
Version: GnuPG v1.4.10 (Darwin)<br>
*: Ditto; also assigns a name to the reference text; the quotes are only needed if ''id'' contains spaces or special characters.
<br>
* <code>&lt;ref name="</code>''id''<code>"/&gt;</code>
iQIcBAEBAgAGBQJNyLOVAAoJEOUAGQaj/eReJ2UQALrBF2ifw1B9QH26jo+0838M<br>
*: Produces a reference mark linking to a reference text defined before.
wYWbpxMf4JdNLHt9NdFwIaucahWLmWHVEkkZRkp4eUUBr7uO7l9J1hEC3AazcRSa<br>
* <code>&lt;references/&gt;</code>
PT4wgVmCiX+zE+RcJHsDLIvSw3+MOK+8mehMRc5OrLnXiF5hwKB9TFwfonqMmsj4<br>
*: Inserts a list of reference texts, each preceded by a list of links to the positions in the page linking to the text; this applies for all texts inside <code>&lt;ref&gt;</code> tags in the wikitext of the page.
GuvZkVS6ziE+KS3RdqQu2lbJ9zpyPqlrLed5ULCk1gnaCxU5nn0QuLo5rLo4BcQr<br>
 
HH9XF6AHAIT3sS972tWxACCtkZu4YjUJ1pSMaG5Kdx8S4bbR089odYE24JiwpALl<br>
===Multiple insertion of the same reference===
M3sRfm9uz4kPIWB+xckG5qurIHctl45Q5izxj7tfhLJpwe2QmKDW6OT2ePMDe8L5<br>
[[mw:Extension:Cite]]:
YiII4cI18C9hxHV4biEKRzl9GgwfiWBOOm0LypQnJVgShLYdtERs97cLb/XEgHo8<br>
 
ba04ZCYyyLfDnAbECyj3zwEiwdkQ8lyJQpqWkt4DUhRavVMaxyt/K8bVAmPdWTcO<br>
References may be cited more than once using <code>&lt;ref name="</code>''id''<code>"/&gt;</code>.
o1OpKhx0Au/aFJp3mLFxahGUcN24mEMngf/Oma5LuhFvNssUZ156LQwGl84zB35X<br>
On the Edit page, this is placed at the first insertion point of citation:<br />
/B4bcAwL72RQGYMzM/crxKz2kID405r8hdaUgpJa2uuCi0hmloWuYwMhPhpAHkzN<br>
 
K/QPymQJ7/n4o1610HXHCPTxHIWMIBSgPCraYIrBLziVgtbTKNE6aWcJz3ONtQG+<br>
:'''<nowiki><ref name="Perry">Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref></nowiki>'''
u0h66V6CFa5xAUhzS88p<br>
 
=Nwpk<br>
This is placed at the second insertion point of citation:<br>
</tt><tt>-----END PGP SIGNATURE-----<br>
:'''<nowiki><ref name="Perry"/></nowiki>'''
</tt>
 
This is placed at the third insertion point of citation:<br>
:'''<nowiki><ref name="Perry"/></nowiki>''' ..... and so forth for further insertion points<br><br>
 
===Single insertion of a reference===
 
For the single insertion of a reference, the "name" parameter is not needed. On the Edit page, this is placed at the insertion point of citation:<br>
 
:'''<nowiki><ref>Excel For Dummies, First Edition, Hungry Minds, Inc., 1980.</ref></nowiki>'''
 
To have the reference depend on a parameter, use e.g.::
 
:<nowiki>{{#tag:ref|...{{tc}}...{{{1}}}...}}</nowiki> giving {{#tag:ref|...{{tc}}...{{{1}}}...}}
 
===What is produced at the points of insertion===
 
The '''<nowiki><ref></nowiki>''' tags in the main text are converted to auto-numbered superscripts, like this:
 
{|class=wikitable
|
:The only reference to Excel For Dummies.<ref>Excel For Dummies, First Edition, Hungry Minds, Inc., 1980.</ref>
 
:The first reference to Perry's Handbook.<ref name="Perry">Perry's  Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>  
 
:The second reference to Perry's Handbook.<ref name="Perry"/>&nbsp;&nbsp;&nbsp;
 
:The third reference to Perry's Handbook.<ref name="Perry"/>
 
:{{Help:Footnotes/demo/ref}}
 
|}
 
Clicking on a numbered superscript takes you straight to the text of the corresponding footnote or reference.
 
===Producing the reference or footnote list===
The '''<nowiki><references/></nowiki>''' tag is expanded to show the text of the footnotes or references against their corresponding numbers, like this:
 
{|class=wikitable
|
<references/>
|}
 
For single citations, clicking on the caret (<font color=blue>'''^'''</font>) takes you to the point of citation in the main text.
 
For multiple citations, the links back to the main text can be distinguished in various ways, depending on [[MediaWiki:Cite references link many format]] and [[MediaWiki:Cite references link many format backlink labels]]: the default is to have double-numerical superscripts, e.g. 2.0, 2.1, .. for the second reference, while on Meta and the English Wikipedia we have letters instead of a second number (a instead of 0, b instead of 1, c instead of 2, etc.), and without repeating the reference number. Clicking on a link takes you to the corresponding citation in the main text.
 
You may also use a slightly different format if desired, like this:
 
<nowiki>== Example reference section ==</nowiki><br />
&lt;div class="references-small">
&lt;references />
&lt;/div>
 
to generate the example section on [[help:Footnotes/example 1]].
 
===Notes on the Cite.php method===
 
* Clicking on the blue superscript <font color="blue">1.0</font> causes the screen display to scroll back up to the point where the first  reference to Perry's Handbook was inserted. Clicking on the blue superscript <font color=blue>1.1</font> causes the screen display to scroll back up to the point where the second reference to Perry's Handbook was inserted. Clicking on the blue superscript <font color=blue>1.2</font> causes the screen display to scroll back up to the point where the the third reference to Perry's Handbook was inserted ... and so forth.
 
* Clicking on any vertical arrow (<font color="blue">↑</font>) that has no associated superscripts causes the screen display to scroll back up to the point where that single-use references was inserted.
 
==Notes at independent positions==
 
The systems below require a note tag with id for each note, but they allow the position of each footnote text to be chosen independently. For example, footnotes in a table or section can be put at the bottom of the table or section.
 
==See also==
*[[Help:Collapsing]] - another way of separating "main" and "supplementary" content.

Latest revision as of 20:48, 29 August 2023

Test edit.

Notes gathered at a single position[edit]

Note: This method will only work if you have installed the Cite Extension.

This method gathers the notes at a single position marked with the <references/> tag. If used multiple times, only the first works.

  • <ref>Reference text</ref>
    Produces a reference mark linking to the reference text, provided that the tag <references/> mentioned below is present on the page.
  • <ref name="id">Reference text</ref>
    Ditto; also assigns a name to the reference text; the quotes are only needed if id contains spaces or special characters.
  • <ref name="id"/>
    Produces a reference mark linking to a reference text defined before.
  • <references/>
    Inserts a list of reference texts, each preceded by a list of links to the positions in the page linking to the text; this applies for all texts inside <ref> tags in the wikitext of the page.

Multiple insertion of the same reference[edit]

mw:Extension:Cite:

References may be cited more than once using <ref name="id"/>. On the Edit page, this is placed at the first insertion point of citation:

<ref name="Perry">Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>

This is placed at the second insertion point of citation:

<ref name="Perry"/>

This is placed at the third insertion point of citation:

<ref name="Perry"/> ..... and so forth for further insertion points

Single insertion of a reference[edit]

For the single insertion of a reference, the "name" parameter is not needed. On the Edit page, this is placed at the insertion point of citation:

<ref>Excel For Dummies, First Edition, Hungry Minds, Inc., 1980.</ref>

To have the reference depend on a parameter, use e.g.::

{{#tag:ref|...{{tc}}...{{{1}}}...}} giving <ref>...Template:Tc...{{{1}}}...</ref>

What is produced at the points of insertion[edit]

The <ref> tags in the main text are converted to auto-numbered superscripts, like this:

The only reference to Excel For Dummies.<ref>Excel For Dummies, First Edition, Hungry Minds, Inc., 1980.</ref>
The first reference to Perry's Handbook.<ref name="Perry">Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>
The second reference to Perry's Handbook.<ref name="Perry"/>   
The third reference to Perry's Handbook.<ref name="Perry"/>
Help:Footnotes/demo/ref

Clicking on a numbered superscript takes you straight to the text of the corresponding footnote or reference.

Producing the reference or footnote list[edit]

The <references/> tag is expanded to show the text of the footnotes or references against their corresponding numbers, like this:

<references/>

For single citations, clicking on the caret (^) takes you to the point of citation in the main text.

For multiple citations, the links back to the main text can be distinguished in various ways, depending on MediaWiki:Cite references link many format and MediaWiki:Cite references link many format backlink labels: the default is to have double-numerical superscripts, e.g. 2.0, 2.1, .. for the second reference, while on Meta and the English Wikipedia we have letters instead of a second number (a instead of 0, b instead of 1, c instead of 2, etc.), and without repeating the reference number. Clicking on a link takes you to the corresponding citation in the main text.

You may also use a slightly different format if desired, like this:

== Example reference section ==
<div class="references-small"> <references /> </div>

to generate the example section on help:Footnotes/example 1.

Notes on the Cite.php method[edit]

  • Clicking on the blue superscript 1.0 causes the screen display to scroll back up to the point where the first reference to Perry's Handbook was inserted. Clicking on the blue superscript 1.1 causes the screen display to scroll back up to the point where the second reference to Perry's Handbook was inserted. Clicking on the blue superscript 1.2 causes the screen display to scroll back up to the point where the the third reference to Perry's Handbook was inserted ... and so forth.
  • Clicking on any vertical arrow () that has no associated superscripts causes the screen display to scroll back up to the point where that single-use references was inserted.

Notes at independent positions[edit]

The systems below require a note tag with id for each note, but they allow the position of each footnote text to be chosen independently. For example, footnotes in a table or section can be put at the bottom of the table or section.

See also[edit]

  • Help:Collapsing - another way of separating "main" and "supplementary" content.