Template:R/superscript: Difference between revisions

From Vigyanwiki
< Template:R
Template>Matthiaspaul
(Undid revision 1044532351 by Matthiaspaul (talk))
Template>Matthiaspaul
(make sup-where a required parameter to avoid the #if: evaluation which breaks if the first character of sub-where (or where) is among :;*#)
Line 1: Line 1:
<!-- Only for internal use: |wrap=n[o]/y[es]/f[orced] |leadin=value |prefix=value |pp=value |where=value |sup-where=value |quote-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:String|replace|{{#invoke:String|replace|-->{{#invoke:DecodeEncode|encode|s={{#invoke:Plain text|main|1={{{leadin|}}}: {{#if:{{{quote-where|}}}|{{{quote-where|}}}|{{{where|}}}}}|encode=false}}|charset=<>"}}<!--|"|&quot;}}|<|&gt;}}|>|&lt;}}-->{{#if:{{{quote|}}}|&#10;Quotation<!--{{#invoke:String|replace|{{#invoke:String|replace|{{#invoke:String|replace|-->{{#invoke:DecodeEncode|encode|s={{#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}}|charset=<>"}}<!--|"|&quot;}}|<|&gt;}}|>|&lt;}}-->" class="tooltip tooltip-dashed" style="border-bottom: 1px dashed;}}">{{#invoke:DecodeEncode|encode|s=<!--DEBUG: This breaks plainlinks/stripmarkers/catlinks testcases {{#invoke:String|replace|-->{{{pp|}}}{{#if:{{{sup-where|}}}|{{{sup-where|}}}|{{{where|}}}}}<!--| |&thinsp;}}-->|charset=*#}}</span>{{{suffix|}}}</sup>}}<noinclude>
<!-- Only for internal use: |wrap=n[o]/y[es]/f[orced] |leadin=value |prefix=value |pp=value |where=value |sup-where=value |quote-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|source={{#invoke:String|replace|source={{#invoke:String|replace|source=-->{{#invoke:DecodeEncode|encode|s={{#invoke:Plain text|main|1={{{leadin|}}}: {{#if:{{{quote-where|}}}|{{{quote-where|}}}|{{{where|}}}}}|encode=false}}|charset=<>"}}<!--|"|&quot;}}|<|&gt;}}|>|&lt;}}-->{{#if:{{{quote|}}}|&#10;Quotation<!--{{#invoke:String|replace|source={{#invoke:String|replace|source={{#invoke:String|replace|source=-->{{#invoke:DecodeEncode|encode|s={{#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}}|charset=<>"}}<!--|"|&quot;}}|<|&gt;}}|>|&lt;}}-->" class="tooltip tooltip-dashed" style="border-bottom: 1px dashed;}}"><!--DEBUG: Take care of :;*# as first character here. This also breaks plainlinks/stripmarkers/catlinks testcases {{#invoke:String|replace|source=-->{{{pp|}}}{{{sup-where|}}}<!--| |&thinsp;}}--></span>{{{suffix|}}}</sup>}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 06:52, 16 September 2021

Template documentation