Difference between revisions of "Template:Colored link"
Jump to navigation
Jump to search
(test) |
m |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style="color: {{{1}}}; text-decoration: inherit;">{{{3|{{{2 | <onlyinclude><includeonly>[[{{{2}}}|<span style="color: {{{1}}}; text-decoration: inherit;">{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}</span>]] | ||
</includeonly><noinclude>{{Documentation}} | </onlyinclude></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 14:37, 16 November 2021
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 |
The above documentation is transcluded from Template:Colored link/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |