|
|
| (2 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| | <includeonly><onlyinclude><div class="mw-references-wrap"><ol class="references">{{{1|}}}</ol></div></onlyinclude></includeonly><!-- |
| | --> |
| __TOC__ | | __TOC__ |
| == Early tests == | | == Description / demo == |
|
| |
|
| (originally tested here:) https://www.wikidata.org/wiki/User:Reversedragon3/RefsTest
| | This template and its inner templates were made as a simpler alternative to the Cite plugin.{{ref|name=abc|1|0}} This plugin did not support certain vanilla MediaWiki features like putting reference sections above the things being linked, or using reference tags in templates, making it worthwhile to recreate the same HTML through basic templates.{{ref|name=wd|2|0}} This version of references is somewhat simpler and may have small quirks versus the plugin version. Currently the plugin is still installed, and will be until these templates are thoroughly tested. |
|
| |
|
| <pre><nowiki>
| | Note that you do not not have to use this template ([[Template:references]]) if you use the "A"/"Z" option in [[Template:refdef]]. |
| (onlyinclude){{Project:Sandbox|name=abc|1|0|article=Legitimate article|authors=Luxemburg, R|date=1926}} <li id="cite_note-{{{name|}}}"><span class="mw-cite-backlink plainlinks" title="Jump up">[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_ref-{{{name|}}}_{{{1|}}}-{{{2|}}} ↑] <span class="reference-text">{{#if:{{{article|}}}|<span class="article">"{{{article|}}}". </span>}}{{#if:{{{authors|}}}|<span class="authors">{{{authors|}}}. </span>}}{{#if:{{{date|}}}|<span class="date">({{{date|}}}). </span>}}{{{3|}}}</span></li>(/onlyinclude) | |
|
| |
|
| (onlyinclude){{RefEntry|name=abc|1|0}} <li id="cite_note-{{{name|}}}"><span class="mw-cite-backlink plainlinks" title="Jump up">[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_ref-{{{name|}}}_{{{1|}}}-{{{2|}}} ↑] <span class="reference-text">{{{3|}}}</span></li>(/onlyinclude)
| | == References == |
|
| |
|
| (onlyinclude){{JumpUpLink|name=abc|1|0}} <sup id="cite_ref-{{{name|}}}_{{{2|}}}" class="mw-cite-targeted-backlink plainlinks" title="Jump up">[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_ref-{{{name|}}}_{{{2|}}} <span class="cite-accessibility-label">Jump up to: </span>{{{1|}}}.{{{2|}}}]</sup> (/onlyinclude)
| | {{references| |
| | {{refdef|1|name=abc|J0=0|"Cite". [https://www.mediawiki.org/wiki/Extension:Cite mediawiki.org]}} |
| | {{refdef|2|name=wd|J0=0|These templates were originally tested on [https://www.wikidata.org/wiki/User:Reversedragon3/RefsTest wikidata.org].}} |
| | }} |
|
| |
|
| (onlyinclude){{Project:Sandbox|f=ref|name=abc|1|0}} <sup id="cite_ref-{{{name|}}}_{{{1|}}}-{{{2|0}}}" class="reference plainlinks"><span class="spacer"> </span>[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_note-{{{name|}}} <span class="cite-bracket"><nowiki>[</nowiki></span>{{{1|}}}<span class="cite-bracket"><nowiki>]</nowiki></span>]</sup>(/onlyinclude)
| | == Templates called == |
| </nowiki></pre>
| |
|
| |
|
| == Demo ==
| | * [[Template:references]] |
| <pre><nowiki>
| | * [[Template:ref]] |
| <includeonly><onlyinclude>{{#switch:{{{f|}}}
| | * [[Template:RefJumpLink]] |
| | ref = <sup id="cite_ref-{{{name|}}}_{{{1|}}}-{{{2|0}}}" class="reference plainlinks"><span class="spacer"> </span>[{{SERVER}}{{ARTICLEPATH}}#cite_note-{{{name|}}} <span class="cite-bracket"><nowiki>[</nowiki></span>{{{1|}}}<span class="cite-bracket"><nowiki>]</nowiki></span>]</sup>
| | * [[Template:refdef]] |
| | JumpUpLink = <sup id="cite_ref-{{{name|}}}_{{{2|}}}" class="mw-cite-targeted-backlink plainlinks" title="Jump up">[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_ref-{{{name|}}}_{{{2|}}} <span class="cite-accessibility-label">Jump up to: </span>{{{1|}}}.{{{2|}}}] </sup>
| |
| | CiteNote = <li id="cite_note-{{{name|}}}">↑ <span class="mw-cite-backlink">{{#if:{{{J0|}}}|{{Project:Sandbox|f=JumpUpLink|name={{{name|}}}|0}}}}{{#if:{{{J1|}}}|{{Project:Sandbox|f=JumpUpLink|name={{{name|}}}|1}}}}<span class="reference-text">{{{2|}}}</span></span></li>
| |
| | references = <div class="mw-references-wrap"><ol class="references">{{{1|}}}</ol></div>
| |
| }}</onlyinclude></includeonly>
| |
|
| |
|
| According to Rosa Luxemburg, borders are a lie.<!--
| |
| --><sup id="cite_ref-abc_0" class="reference plainlinks"><span class="spacer"> </span>[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_note-abc <nowiki>[</nowiki>1<nowiki>]</nowiki>]</sup> {{Project:Sandbox|f=ref|name=abc|1|0}}
| |
|
| |
|
| Trotsky has claimed that borders are necessary, but as we can see from Luxemburg, they only materially cause problems.<!--
| | [[Category:Templates for markup]] |
| --><sup id="cite_ref-abc_1" class="reference plainlinks"><span class="spacer"> </span>[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_note-abc <nowiki>[</nowiki>1<nowiki>]</nowiki>]</sup> {{Project:Sandbox|f=ref|name=abc|1|1}}
| |
| This is to say that uniting everyone into a global civilization will not cause problems.<!--
| |
| --><sup id="cite_ref-def" class="reference plainlinks"><span class="spacer"> </span>[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_note-def <nowiki>[</nowiki>2<nowiki>]</nowiki>]</sup> {{Project:Sandbox|f=ref|name=def|2|0}}
| |
| </nowiki></pre>
| |
| | |
| == Refs ==
| |
| <pre><nowiki>
| |
| <div class="mw-references-wrap"><ol class="references">
| |
| <li id="cite_note-abc">↑ <span class="mw-cite-backlink"><sup id="cite_ref-abc_0" class="mw-cite-targeted-backlink plainlinks" title="Jump up">[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_ref-abc_0 <span class="cite-accessibility-label">Jump up to: </span>1.0]</sup> <sup id="cite_ref-abc_1" class="mw-cite-targeted-backlink plainlinks" title="Jump up">[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_ref-abc_1 <span class="cite-accessibility-label">Jump up to: </span>1.1]</sup> <span class="reference-text">"Legitimate article". Luxemburg, R. (1926).</span></span></li>
| |
| | |
| <li id="cite_note-def">↑ <span class="mw-cite-backlink"><sup id="cite_ref-def_0" class="mw-cite-targeted-backlink plainlinks" title="Jump up">[https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=submit#cite_ref-def_0 <span class="cite-accessibility-label">Jump up to: </span>2.0]</sup> <span class="reference-text">"Why the collected works of Lenin don't need to be updated". Trotsky, L. (1928).</span></span></span></li>
| |
| </ol></div>
| |
| </nowiki></pre>
| |
| | |
| === refs template ===
| |
| <pre><nowiki>
| |
| <div class="mw-references-wrap"><ol class="references">
| |
| {{Project:Sandbox|f=CiteNote|name=abc|1|J0=y|J1=y|"Legitimate article". Luxemburg, R. (1926).}}
| |
| {{Project:Sandbox|f=CiteNote|name=def|2|J0=y|"Why the collected works of Lenin don't need to be updated". Trotsky, L. (1928).}}
| |
| </ol></div>
| |
| </nowiki></pre>
| |
| | |
| === refs tag ===
| |
| <pre><nowiki>
| |
| <references><ref name="abc">"Legitimate article". Luxemburg, R. (1926).</ref></references>
| |
| </nowiki></pre>
| |
Description / demo[edit]
This template and its inner templates were made as a simpler alternative to the Cite plugin. [1] This plugin did not support certain vanilla MediaWiki features like putting reference sections above the things being linked, or using reference tags in templates, making it worthwhile to recreate the same HTML through basic templates. [2] This version of references is somewhat simpler and may have small quirks versus the plugin version. Currently the plugin is still installed, and will be until these templates are thoroughly tested.
Note that you do not not have to use this template (Template:references) if you use the "A"/"Z" option in Template:refdef.
References[edit]
Templates called[edit]