Difference between revisions of "Template:Colored link"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly><span style="color: red; text-decoration: inherit;">[[{{{2}}} {{#if: {{{3|}}} | {{!}} {{{3}}}| }} | <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:21, 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. |