Template:R/superscript: Difference between revisions
From Vigyanwiki
Template>Matthiaspaul (CE) |
Template>Matthiaspaul (Encode < > " instead of only " to avoid problems if < or > are part of the parameter value. (Using Plain text encode=true does not work as it also encodes &, which causes § to be broken.)) |
||
Line 1: | Line 1: | ||
<!-- |wrap=n[o]/y[es]/f[orced] |leadin=value |prefix=value |pp=value |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:Plain text|main|1={{{leadin|}}}: {{#if:{{{quote-where|}}}|{{{quote-where|}}}|{{{where|}}}}}|encode=false}}|"|"}}{{#if:{{{quote|}}}| Quotation{{#invoke:String|replace|{{#invoke:Plain text|main|1={{#if:{{{language|}}}| ({{{language|}}})}}: "{{trim quotes|s={{{quote|}}}}}"{{#if:{{{translation|}}}| Translation: "{{trim quotes|s={{{translation}}}}}"}}|encode=false}}|"|"}}" class="tooltip tooltip-dashed" style="border-bottom: 1px dashed;}}">{{{pp|}}}{{{where|}}}</span>{{{suffix|}}}</sup>}}<noinclude> | <!-- |wrap=n[o]/y[es]/f[orced] |leadin=value |prefix=value |pp=value |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=<>"}}<!--|"|"}}|<|>}}|>|<}}-->{{#if:{{{quote|}}}| Quotation<!--{{#invoke:String|replace|{{#invoke:String|replace|{{#invoke:String|replace|-->{{#invoke:decodeEncode|encode|s={{#invoke:Plain text|main|1={{#if:{{{language|}}}| ({{{language|}}})}}: "{{trim quotes|s={{{quote|}}}}}"{{#if:{{{translation|}}}| Translation: "{{trim quotes|s={{{translation}}}}}"}}|encode=false}}|charset=<>"}}<!--|"|"}}|<|>}}|>|<}}-->" class="tooltip tooltip-dashed" style="border-bottom: 1px dashed;}}">{{{pp|}}}{{{where|}}}</span>{{{suffix|}}}</sup>}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 17:39, 13 September 2021
Template documentation
[create]