Template:Reference page/superscript: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(desperate revert in light of unknown bug causing missing space after invocations of {r} and {rp} at end of source lines)
(Undid revision 1042742432 by EEng (talk) that doesn't fix it either.)
Line 1: Line 1:
<!-- |wrap=n[o]/f[orced] |leadin=value |prefix=value |pp=value |where=value |quote=value |translation=value |suffix=value -->{{#if:{{{where|}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|no}}wrap"<!-- style="white-space:{{#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: &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>{{#switch:{{{wrap|}}}|n|no=|&#8203;}}}}<noinclude>
<!-- |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}}|"|&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 14:51, 6 September 2021

Instructions for {{Reference page/superscript}}
This is a subtemplate, implementing the wikipedia:superscript info piece of Template:Rp 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, |suffix=value

See also