Template:R/ref: Difference between revisions

From Vigyanwiki
< Template:R
Template>Matthiaspaul
(added support for {{ page needed }} template to emulate {{ rp }})
Template>Matthiaspaul
(better)
Line 1: Line 1:
<includeonly><!-- <templatestyles src="Template:Tooltip/styles.css" /> --><!-- {{#if:{{#section:{{FULLPAGENAME}}|{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}}}|<span class="rt-commentedText tooltip tooltip-dotted" title='Supports: <q>{{#tag:nowiki|{{#invoke:String|replace|{{#section:{{FULLPAGENAME}}|{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}}}|"|&quot;}}}}</q>'>}} -->{{#tag:ref|{{#if:{{{annotation|}}}||{{{reference|}}}}}|name="{{trim quotes|s={{{1|}}}}}"|group="{{trim quotes|s={{{2|}}}}}"}}{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p={{#if:{{{3|}}}|&zwnj;{{{3|}}}}}|q=&zwnj;{{#if:{{{quote-page|}}}|{{#ifeq:{{{quote-page|}}}|p|{{#if:{{{3|}}}|{{{3|}}}:&#32;}}|{{{quote-page|}}}:&#32;}}}}<q<!-- cite="#..." -->>{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4|}}}}}|"|&quot;}}}}</q>|{{{annotation|}}}}}|follow="{{trim quotes|s={{{1|}}}}}"|group="{{trim quotes|s={{{2|}}}}}"}}}}{{#if:{{{3|}}}|<sup class="reference nowrap"><nowiki>:</nowiki><span {{#if:{{{4|}}}|style="border-bottom: 1px dashed;" title='{{#if:{{{quote-page|}}}|{{#ifeq:{{{quote-page|}}}|p|{{{3|}}}|{{{quote-page|}}}}}:&#32;}}"{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4|}}}}}|"|&quot;}}}}"'}}>{{{3|}}}</span></sup>}}<!-- {{#if:{{#section:{{FULLPAGENAME}}|{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}}}|</span>}} -->{{#if:{{{needed|}}}|{{page needed|date={{{date|}}}}}}}</includeonly><noinclude>
<includeonly><!-- <templatestyles src="Template:Tooltip/styles.css" /> --><!-- {{#if:{{#section:{{FULLPAGENAME}}|{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}}}|<span class="rt-commentedText tooltip tooltip-dotted" title='Supports: <q>{{#tag:nowiki|{{#invoke:String|replace|{{#section:{{FULLPAGENAME}}|{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}}}|"|&quot;}}}}</q>'>}} -->{{#tag:ref|{{#if:{{{annotation|}}}||{{{reference|}}}}}|name="{{trim quotes|s={{{1|}}}}}"|group="{{trim quotes|s={{{2|}}}}}"}}{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p={{#if:{{{3|}}}|&zwnj;{{{3|}}}}}|q=&zwnj;{{#if:{{{quote-page|}}}|{{#ifeq:{{{quote-page|}}}|p|{{#if:{{{3|}}}|{{{3|}}}:&#32;}}|{{{quote-page|}}}:&#32;}}}}<q<!-- cite="#..." -->>{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4|}}}}}|"|&quot;}}}}</q>|{{{annotation|}}}}}|follow="{{trim quotes|s={{{1|}}}}}"|group="{{trim quotes|s={{{2|}}}}}"}}}}{{#if:{{{3|}}}|<sup class="reference nowrap"><nowiki>:</nowiki><span {{#if:{{{4|}}}|style="border-bottom: 1px dashed;" title='{{#if:{{{quote-page|}}}|{{#ifeq:{{{quote-page|}}}|p|{{{3|}}}|{{{quote-page|}}}}}:&#32;}}"{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4|}}}}}|"|&quot;}}}}"'}}>{{{3|}}}</span></sup>}}<!-- {{#if:{{#section:{{FULLPAGENAME}}|{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}}}|</span>}} -->{{#if:{{{needed-reason|}}}|{{page needed|date={{{needed-date|}}}|reason={{#ifeq:{{{needed-reason|}}}|?|No reason given|{{{needed-reason|}}}}}}}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 21:13, 30 August 2021

Template documentation