Template:R/superscript: Difference between revisions
Jump to navigation
Jump to search
Richardpruen (talk | contribs) m (1 revision imported) |
(CE) |
||
Line 1: | Line 1: | ||
<!-- |wrap=n[o]/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: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> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 16:36, 6 September 2021
This is a subtemplate, implementing the superscript info piece of Template:R for a single ref name.
Usage
For internal use only:
|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
(ISO language code or Language string in English, i.e. "de" or "German
"), |translation=value
, |suffix=value
Note: This subtemplate is used by {{r}} and {{rp}} (and indirectly also by {{ran}}.
See also
- Module:DecodeEncode.encode()
- Module:Plain text.main()
- Module:String.replace()
- Template:lang fn