Template:R/superscript: Difference between revisions
From Vigyanwiki
Template>Matthiaspaul (CE) |
Template>Matthiaspaul (added support for |language= parameter (has to be text only, because it can't be embedded into HTML as multilingual title attributes are not possible in HTML, and HTML elements (like another span) cannot be located inside attributes)) |
||
Line 1: | Line 1: | ||
<!-- |wrap=n[o]/f[orced] |leadin=value |prefix=value |pp=value |where=value |quote=value | <!-- |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}}|"|"}}{{#if:{{{quote|}}}| Quotation{{#if:{{{language|}}}| ({{{language|}}})}}: "{{#invoke:String|replace|{{#invoke:Plain text|main|1={{trim quotes|s={{{quote|}}}}}|encode=false}}|"|"}}"{{#if:{{{translation|}}}| Translation: "{{#invoke:String|replace|{{#invoke:Plain text|main|1={{trim quotes|s={{{translation}}}}}|encode=false}}|"|"}}"}}" class="tooltip tooltip-dashed" style="border-bottom: 1px dashed;}}">{{{pp|}}}{{{where|}}}</span>{{{suffix|}}}</sup>}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 13:24, 5 September 2021
Template documentation
[create]