Template:Colored link (internal): Difference between revisions
imported>TabbyGarf No edit summary |
imported>TabbyGarf No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[{{{1}}}|<span style="text-decoration:underline; color:{{{2|blue}}} | <includeonly>{{#ifexist: {{{1}}} |[[{{{1}}}|<span style="text-decoration:underline; color:{{{2|blue}}};">{{{3|{{{1}}}}}}</span>]]|<span style="color:red;"><u>'''ERROR:'''</u> The page {{{1}}} does not exist, please enter a valid page</span>}}</includeonly> | ||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> |
Revision as of 17:25, 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 enter a valid page
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. |