Template:Retext

From Super Snail Wiki
Jump to navigation Jump to search

Usage

The purpose of this template is to help maintain consistency when applying colour to text for the wiki with a simple-to-use template. This template does not care about capitalisation (excluding your Desired Text of course) and, as such, none of the parameters are case-sensitive.

There are two methods of using this template:

Method 1 - Text

Simply use:

{{Retext|Desired Text|Colour}}

...to take the place of:

<span style="color:var(--Colour-text)">Desired Text</span>

Currently the list of valid colours includes:

  • Green
  • Blue
  • Purple
  • Orange
  • Red
  • Yellow
  • Black

Method 2 - Hex

Alternatively, if you would like to choose a specific colour you can use the optional |hex}} parameter on the end of the template and replace your chosen colour with a hex code.

Use:

{{Retext|Desired Text|HEX Code|hex}}

...to take the place of:

<span style="color:HEX Code">Desired Text</span>

This method is able to support any possible HEX code but should only be used when necessary. Please try to use the listed colour options in Method 1 where possible.

Examples

This:

{{retext|This is an example|oRaNge}} {{retext|of using the text parameters|purPLE|tEXt}}

returns:

This is an example of using the text parameters

and this:

{{retext|This is an example|#e59e39|hex}} {{retext|of using the hex parameters|a939e5|HEx}}

returns this:

This is an example of using the hex parameters