Template:Refdef: Difference between revisions
Appearance
make template:references optional / half-functional demo |
simplify start/end feature - fixes bug |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if:{{{A|}}}|<div class="mw-references-wrap"><ol class="references">}}<li id="cite_note-{{{name|}}}">↑ <span class="mw-cite-backlink">{{for||call=Template:RefJumpLink|pv=2|start=0|stop={{{J0|0}}}|by=1|pc1n=1|pc1v={{{1 | <includeonly><onlyinclude>{{#if:{{{A|}}}|<div class="mw-references-wrap"><ol class="references">}}<li id="cite_note-{{{name|}}}">↑ <span class="mw-cite-backlink">{{for||call=Template:RefJumpLink|pv=2|start=0|stop={{{J0|0}}}|by=1|pc1n=1|pc1v={{{1|}}}|pc2n=name|pc2v={{{name|}}}}}</span><span class="reference-text">{{{2|}}}</span></li>{{#if:{{{Z|}}}|</ol></div>}}</onlyinclude></includeonly><!-- | ||
--> | --> | ||
== Demo == | == Demo == | ||
{{refdef|1|name=abc|J0=2|A=1|"Article". [https://www.wikidata.org/w/index.php?title{{=}}User:Reversedragon3/RefsTest wikidata.org]}} | |||
{{refdef|2|name=abc|J0=2|"Article". [https://www.wikidata.org/w/index.php?title{{=}}User:Reversedragon3/RefsTest wikidata.org]}} | |||
{{refdef| | {{refdef|3|name=abc|J0=2|Z=3|"Article". [https://www.wikidata.org/w/index.php?title{{=}}User:Reversedragon3/RefsTest wikidata.org]}} | ||
{{refdef| | |||
{{refdef| | |||
== Template parameters == | == Template parameters == | ||
Latest revision as of 12:38, 21 January 2026
Demo[edit]
- ↑ Jump up to: 1.0 Jump up to: 1.1 Jump up to: 1.2 "Article". wikidata.org
- ↑ Jump up to: 2.0 Jump up to: 2.1 Jump up to: 2.2 "Article". wikidata.org
- ↑ Jump up to: 3.0 Jump up to: 3.1 Jump up to: 3.2 "Article". wikidata.org
Template parameters[edit]
name- reference nameJ0- number of jump-up links, which will be displayed one by one using Template:for; this should be the whole number of links minus 1.1- number of reference in list2- reference text