Template:R/superscript: Difference between revisions

From Vigyanwiki
< Template:R
Template>MusikBot II
m (Protected "Template:Rp/superscript": High-risk template or module: 2968 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
Template>Matthiaspaul
(moved wrapping into calling template in order to make this compatible with template r)
Line 1: Line 1:
<!-- |wrap=n[o]/f[orced] |leadin=value |prefix=value |pp=value |where=value |quote=value |translation=value |suffix=value -->{{#if:{{{where|}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|no}}wrap"<!-- style="white-space:{{#switch:{{{wrap|}}}|f|forced=|no}}wrap;"-->>{{{prefix|}}}<span title="{{{leadin|}}}: {{#invoke:String|replace|{{#invoke:Plain text|main|1={{{where|}}}|encode=false}}|"|&quot;}}{{#if:{{{quote|}}}|&#10;Quotation: &quot;{{#invoke:String|replace|{{#invoke:Plain text|main|1={{trim quotes|s={{{quote|}}}}}|encode=false}}|"|&quot;}}&quot;{{#if:{{{translation|}}}|&#10;Translation: &quot;{{#invoke:String|replace|{{#invoke:Plain text|main|1={{trim quotes|s={{{translation}}}}}|encode=false}}|"|&quot;}}&quot;}}" class="tooltip tooltip-dashed" style="border-bottom: 1px dashed;}}">{{{pp|}}}{{{where|}}}</span>{{{suffix|}}}</sup>{{#switch:{{{wrap|}}}|n|no=|&#8203;}}}}<noinclude>
<!-- |wrap=n[o]/f[orced] |leadin=value |prefix=value |pp=value |where=value |quote=value |translation=value |suffix=value -->{{#if:{{{where|}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|no}}wrap"<!-- style="white-space:{{#switch:{{{wrap|}}}|f|forced=|no}}wrap;"-->>{{{prefix|}}}<span title="{{{leadin|}}}: {{#invoke:String|replace|{{#invoke:Plain text|main|1={{{where|}}}|encode=false}}|"|&quot;}}{{#if:{{{quote|}}}|&#10;Quotation: &quot;{{#invoke:String|replace|{{#invoke:Plain text|main|1={{trim quotes|s={{{quote|}}}}}|encode=false}}|"|&quot;}}&quot;{{#if:{{{translation|}}}|&#10;Translation: &quot;{{#invoke:String|replace|{{#invoke:Plain text|main|1={{trim quotes|s={{{translation}}}}}|encode=false}}|"|&quot;}}&quot;}}" class="tooltip tooltip-dashed" style="border-bottom: 1px dashed;}}">{{{pp|}}}{{{where|}}}</span>{{{suffix|}}}</sup>}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 06:27, 5 September 2021

Template documentation