Template:Highlighted/doc

From Moegirlpedia
< Template:Highlighted
Revision as of 08:09, 21 October 2023 by KingChan (talk | contribs) (Category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a template for highlighting text. It is packaged to create Template:NeedsTranslating, Template:fact, etc.

Syntax and Usage

Source code: {{highlighted|content=this is the content|background-color=red|content-color=yellow|title=This is the content title text|sup=this is the superscript|sup-color=blue|sup-background-color=#FBFE76|sup-title=this is the superscript title text|attributes=class="noprint"|sup-attributes=class="noprint Template-Fact"}}

Displayed as: this is the contentthis is the superscript

Source code: {{Highlighted|content=this is the content|content-color=blue}}

Displayed as: this is the content

Explanation

  • content is the only required argument. You may omit any of the other arguments.
  • Ignore sup and related arguments if superscripts are not needed.
  • If the argument contains two right braces (}}), you must escape it with <nowiki> tages, i.e. <nowiki>}}</nowiki>.
  • If the argument contains pipe sign (|), use {{!}} to escape it.
  • Arguments may contain pairs of double square brackets (for internal links), but it may not contain double right square brackets and then double left square brackets, i.e. ]][[.