Template:R/ref: Difference between revisions

From Vigyanwiki
< Template:R
Template>Matthiaspaul
(temporarily switched back to name/group handling without trim quotes)
Template>Matthiaspaul
(updated from sandbox)
Line 1: Line 1:
<includeonly><!-- <templatestyles src="Template:Tooltip/styles.css" /> --><!-- {{#if:{{{section|}}}|{{#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: "{{#tag:nowiki|{{#invoke:String|replace|{{#section:{{FULLPAGENAME}}|{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}}}|"|&quot;}}}}"'>}}}} -->{{#tag:ref|{{#if:{{{annotation|}}}||{{{reference|}}}}}|name={{{1|}}}|group={{{2|}}}}}{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p={{#if:{{{3|}}}|&#x200C;{{{3|}}}}}|q=&#x200C;{{#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={{{1|}}}|group={{{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|}}}|{{#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|}}}|y|No reason given|{{{needed-reason|}}}}}}}}}{{#ifeq:{{{wrap|}}}|y|&#x200C;<!-- &zwnj; -->}}</includeonly><noinclude>
<includeonly>{{#if:{{{section|}}}|{{#if:{{#section:{{FULLPAGENAME}}|{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}}}|<templatestyles src="Template:Tooltip/styles.css"/><span class="rt-commentedText tooltip tooltip-dotted" title="Context: &quot;{{#tag:nowiki|{{#invoke:String|replace|{{#section:{{FULLPAGENAME}}|{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}}}|"|&quot;}}}}&quot;">}}}}{{#tag:ref|{{#if:{{{annotation|}}}||{{{reference|}}}}}|name={{{1|}}}|group={{{2|}}}}}{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p|page={{#if:{{{3|}}}|&#8204;{{{3|}}}}}|quote|q=&#8204;{{#switch:{{{quote-page}}}|{{{quote-page}}}=|p|page={{#if:{{{3|}}}|{{{3|}}}:&#32;}}|{{{quote-page|}}}:&#32;}}<q<!-- cite="#..." -->>{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4|}}}}}|"|&quot;}}}}</q>|{{{annotation|}}}}}|follow={{{1|}}}|group={{{2|}}}}}}}{{#if:{{{3|}}}|<sup class="reference nowrap"><nowiki>:</nowiki><span {{#if:{{{4|}}}|style="border-bottom: 1px dashed;" title="Quotation{{#if:{{{quote-page|}}}|&#32;from page&nbsp;/ location&#32;{{#switch:{{{quote-page|}}}|p|page={{{3|}}}|{{{quote-page|}}}}}}}:&#32;&quot;{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4|}}}}}|"|&quot;}}}}&quot;"|title="Page&nbsp;/ location:&#32;{{#tag:nowiki|{{#invoke:String|replace|{{{3|}}}|"|&quot;}}}}"}}>{{{3|}}}</span></sup>}}{{#if:{{{section|}}}|{{#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={{#switch:{{{needed-reason|}}}|y|yes=No reason given|{{{needed-reason|}}}}}}}}}{{#switch:{{{wrap|}}}|n|no=|<wbr/>&#8203;}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 17:32, 31 August 2021

Template documentation