Template:ColorIntLink

From MegaGlest
Revision as of 02:34, 16 December 2009 by Trappin (talk) (Created page with '<includeonly>{{#if:{{{3|}}} |[[{{{2}}}|<span style="color:{{{1}}};{{#if:{{{u|}}}|text-decoration: underline;|}}">{{{3}}}</span>]] |[[{{{2}}}|<span style="color:{{{1}}};{{#if:…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usage[edit]

This template generates an interwiki link with a custom displayed text color. It is not suitable for non-wiki links.

The template takes on the form:

{{ColorIntLink|Color|Page name|Displayed text|u=}}

Required fields[edit]

The following fields must be filled. The rest are optional.

  • color
    • The color used for the displayed text.
    • If using hex triplet (ex. #000000) the # must be replaced with #.
  • Page name
    • The name of the page to be linked to.

Optional fields[edit]

The following are some notes on optional fields.

  • Displayed text
    • Displayed text replaces Page name as the text displayed by the link.
    • The entered string will be displayed exactly.
  • u
    • Any non-empty value makes the link text underlined.

Examples[edit]

{{ColorIntLink|#CC0000|Dominion|Big bad wolf}}

Big bad wolf

{{ColorIntLink|#CC0000|Dominion|u=x}}

Dominion