Difference between revisions of "Template:Text highlight"
Line 1: | Line 1: | ||
<includeonly><span style="{{#if:{{{bg-color|}}}|background-color:{{{bg-color}}};}} {{#if:{{{cont-color|}}}|color:{{{cont-color}}};}} | <includeonly><span style="{{#if:{{{bg-color|}}}|background-color:{{{bg-color}}};}} {{#if:{{{cont-color|}}}|color:{{{cont-color}}};}} | ||
− | title="{{{cont-title|}}}" {{{cont-other|}}}>{{{content|}}}</span> <sup {{#ifeq:{{{note|}}}|yes|class="mobileref"}} style="display:inline; {{#if:{{{supt-bg-color|}}}|background-color:{{{supt-bg-color}}};}} {{#if:{{{supt | + | title="{{{cont-title|}}}" {{{cont-other|}}}>{{{content|}}}</span> <sup {{#ifeq:{{{note|}}}|yes|class="mobileref"}} style="display:inline; {{#if:{{{supt-bg-color|}}}|background-color:{{{supt-bg-color}}};}} {{#if:{{{supt-color|}}}|color:{{{supt-color}}};}}" title="{{{supt-title|}}}" {{{supt-other|}}}><span {{#ifeq:{{{note-text|}}}|yes|class="nomobile"}}>{{{supt|}}}</span></sup></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 02:00, 16 July 2023
This template produces the effect of highlighted text: This is the superscript
Usage
{{text highlight|content=|supt=|cont-color=|bg-color=|cont-title=|supt-color=|supt-bg-color=|supt-title=|cont-other=|supt-other=|note-text=}}
- content
- Obligatory. Text located in the normal position.
- supt
- Obligatory. Text located in the superscript.
- cont-color
- Optional. Color code for the content text, the default is the same as the current color.
- bg-color
- Optional. Color code for the background, the default is the same as the current background color.
- cont-title
- Optional. Prompt text displayed when hovering the mouse over the content, the default is blank.
- supt-color
- Optional. Color code for the superscript text, the default is the same as the current color.
- supt-bg-color
- Optional. Color code for the superscript text background, the default is the same as the current background color.
- supt-title
- Optional. Prompt text displayed when hovering the mouse over the superscript, the default is blank.
- cont-other
- Optional. Other HTML for the content text, the default is blank.
- supt-other
- Optional. Other HTML for the superscript text, the default is blank.
- note
- Optional. Input
yes
to add theclass="mobileref"
andclass="nomobile"
fields to the superscript, provides mobile support. The default is blank.