Template:Colored link (internal): Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>TabbyGarf
No edit summary
imported>TabbyGarf
No edit summary
Line 1: Line 1:
<includeonly>[[{{{1}}}|<span style="text-decoration:underline; color:{{{2|blue}}}; weight:bold;">{{{3|{{{1}}}}}}</span>]]</includeonly>
<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

[view] [edit] [history] [purge] Documentation icon Template documentation

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.