Difference between revisions of "Template:Colored link"

From Sunrust Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<onlyinclude>[[<span style="color: {{{1}}}; text-decoration: inherit;">{{{2}}}</span>{{#if: {{{3|}}} | {{!}} {{{3}}}|}}]]
<onlyinclude><includeonly>[[{{{2}}}|<span style="color: {{{1}}}; text-decoration: inherit;">{{#if:{{{3|}}}|{{!}}{{{3}}}|{{{2}}}}}</span>]]
</onlyinclude><noinclude>{{Documentation}}</noinclude>
</onlyinclude></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 14:36, 16 November 2021

50px Template documentation[view] [edit] [history] [purge]

Creates a link with different color.

Usage

  • 1st parameter = Color (CSS)
  • 2nd parameter = Link
  • 3rd parameter = Text (Optional, if not included, the text will be the same as link)

Examples

Wikitext What is rendered
{{Template:Colored_link|#ff0000|Link|Text}}
|Text
{{Template:Colored_link|green|Trinkets}}
Trinkets
{{Template:Colored_link|#00f|A|B}}
|B