Template:Colored link/doc: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Created page with "== Usage == This template takes three parameters: the color of the link, the article being linked to, and optional text to display as a piped link. {{tlc|colored link|2=purple|3=Page name to link|4=Alternative text}} → {{colored link|purple|Page name to link|Alternative text}} Use <code>noinvert = yes</code> to preserve the link color in dark mode: {{tlc|colored link|2=purple|3=Page name to link|4=Alternative text|5=noinvert=yes}}..."
 
No edit summary
 
Line 3: Line 3:
This template takes three parameters: the color of the link, the article being linked to, and optional text to display as a [[WP:piped link|piped link]].
This template takes three parameters: the color of the link, the article being linked to, and optional text to display as a [[WP:piped link|piped link]].


{{tlc|colored link|2=purple|3=Page name to link|4=Alternative text}} → {{colored link|purple|Page name to link|Alternative text}}
<nowiki>{{colored link|2=purple|3=Page name to link|4=Alternative text}}</nowiki> → {{colored link|purple|Page name to link|Alternative text}}


Use <code>noinvert = yes</code> to preserve the link color in [[WP:dark mode|dark mode]]:
Use <code>noinvert = yes</code> to preserve the link color in [[WP:dark mode|dark mode]]:


{{tlc|colored link|2=purple|3=Page name to link|4=Alternative text|5=noinvert=yes}} → {{colored link|purple|Page name to link|Alternative text|noinvert=yes}}
<nowiki>{{colored link|2=purple|3=Page name to link|4=Alternative text|5=noinvert=yes}}</nowiki> → {{colored link|purple|Page name to link|Alternative text|noinvert=yes}}

Latest revision as of 16:50, 23 September 2024

Usage[edit source]

This template takes three parameters: the color of the link, the article being linked to, and optional text to display as a piped link.

{{colored link|2=purple|3=Page name to link|4=Alternative text}} → Alternative text

Use noinvert = yes to preserve the link color in dark mode:

{{colored link|2=purple|3=Page name to link|4=Alternative text|5=noinvert=yes}} → Alternative text