Template:R/superscript: Difference between revisions

From Vigyanwiki
< Template:R
Template>MusikBot II
m (Changed protection settings for "Template:R/superscript": High-risk template or module: 38553 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
Template>Matthiaspaul
(protected leadin and language values from being able to invalidate the title attribute, thereby eliminated one/two calls to string.replace & plain text.main)
Line 1: Line 1:
<!-- |wrap=n[o]/f[orced] |leadin=value |prefix=value |pp=value |where=value |quote=value |language=value |translation=value |suffix=value -->{{#if:{{{where|}}}|<sup class="reference {{#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{{#if:{{{language|}}}|&#32;({{{language|}}})}}: &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>
<!-- |wrap=n[o]/f[orced] |leadin=value |prefix=value |pp=value |where=value |quote=value |language=value |translation=value |suffix=value -->{{#if:{{{where|}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|no}}wrap">{{{prefix|}}}<span title="{{#invoke:String|replace|{{#invoke:Plain text|main|1={{{leadin|}}}: {{{where|}}}|encode=false}}|"|&quot;}}{{#if:{{{quote|}}}|&#10;Quotation{{#invoke:String|replace|{{#invoke:Plain text|main|1={{#if:{{{language|}}}|&#32;({{{language|}}})}}: &quot;{{trim quotes|s={{{quote|}}}}}&quot;{{#if:{{{translation|}}}|&#10;Translation: &quot;{{trim quotes|s={{{translation}}}}}&quot;}}|encode=false}}|"|&quot;}}" class="tooltip tooltip-dashed" style="border-bottom: 1px dashed;}}">{{{pp|}}}{{{where|}}}</span>{{{suffix|}}}</sup>}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 00:45, 6 September 2021

Template documentation