Template:Colored link (internal): Difference between revisions
imported>TabbyGarf Created page with "<includeonly>[[{{{1}}}|<span style="text-decoration:underline; color:{{{color|blue}}};">{{{2|{{{1}}}}}}</span>]]</includeonly> <noinclude>{{Colored link (internal)|1=Vaush|col..." |
imported>TabbyGarf No edit summary |
||
(199 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[{{{1}}}|<span style=" | <includeonly>{{Linkless exists|1={{{1}}}|2=[[{{{1}}}|<span style="color:{{{2|blue}}};">{{{3|{{{1}}}}}}</span>]]|3=<span style="color:red;background-color:#fdd;"><u>'''ERROR</u>:''' The page '''{{{1}}}''' does <u>not</u> exist, please input an existing ED page, dumbass.</span>}}</includeonly><noinclude> | ||
<noinclude>{{ | {{documentation}} | ||
[[Category:Link Templates]] | |||
</noinclude> |
Latest revision as of 18:11, 28 October 2021
The colored link template is a way to make colored links for template or user page making.
Template Usage
# | input |
---|---|
1 | internal link |
2 | color |
3 | alt text (optional) |
{{Colored link (internal)|Template:Colored link (internal)|hotpink}} and
{{Cli|Template:Colored link (internal)|hotpink|Colored link (internal) (template)}}
returns Template:Colored link (internal) and
Colored link (internal) (template).
Known aliases are {{Colored link}} and {{Cli}}
Entering a non existing link would cause this:
ERROR: The page MediaWiki:Existential crisis does not exist, please input an existing ED page, dumbass.
Although entering an incorrect link would usually request it on the Wanted Pages list, the failsafe makes sure it doesnt using a linkless #ifexist system.
Interwiki links such as T:Cli (templates) and U:TabbyGarf (user pages) will not work as an internal link and return the error message.
The above documentation is transcluded from Template:Colored link (internal)/doc. (edit | history) Changes can be experimented in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |