Difference between revisions of "Template:Colored link"

From Sunrust Wiki
Jump to navigation Jump to search
m
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="color: red; text-decoration: inherit;">[[ {{{2}} {{#if {{{3|}}} | {{!}} {{{3}}} }} ]]]</span>
<onlyinclude><includeonly>[[{{{2}}}|<span style="color: {{{1}}}; text-decoration: inherit;">{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}</span>]]
</includeonly><noinclude>{{Documentation}}</noinclude>
</onlyinclude></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 14:37, 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