Difference between revisions of "Template:Text highlight"

From Moegirlpedia
Jump to: navigation, search
 
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-text-color|}}}|color:{{{supt-text-color}}};}}" title="{{{supt-title|}}}" {{{supt-other|}}}><span {{#ifeq:{{{note-text|}}}|yes|class="nomobile"}}>{{{supt|}}}</span></sup></includeonly><noinclude>{{Documentation}}</noinclude>
+
  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

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

This template produces the effect of highlighted text: This is the content 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 the class="mobileref" and class="nomobile" fields to the superscript, provides mobile support. The default is blank.