Difference between revisions of "Template:Colored link"

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

Revision as of 14:18, 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}}
[[Link {{#if Text | | Text }}]]]
{{Template:Colored_link|green|Trinkets}}
[[Trinkets {{#if | | {{{3}}} }}]]]
{{Template:Colored_link|#00f|A|B}}
[[A {{#if B | | B }}]]]