You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:CL: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(template for coloured links)
 
m (bugfix)
 
Line 1: Line 1:
{{#if:{{{1|}}}|[[{{{1}}}|<span color="{{{2}}}">{{{1}}}</span>]]|}}<noinclude>{{CL/doc}}</noinclude>
{{#if:{{{1|}}}|[[{{{1}}}|<span style="color:{{{2}}}">{{{1}}}</span>]]|}}<noinclude>{{CL/doc}}</noinclude>

Latest revision as of 00:30, 28 May 2018

Name:
  • CL
Type:
Sub-Template:
  • No
Designer:


The {{CL}} template produces a coloured link. The first argument should be the text to link; the second argument should be the colour.

If the first argument is missing or empty, no output will be produced. That makes {{CL}} a suitable argument to {{ForEach}}.

This template will attempt to link even to pages that don't exist, and will link them in the requested colour (thus hiding the fact that the page is a "redlink"). Hovering over a link will still underline it in the appropriate colour (blue for a page that exists, red for a page that doesn't), so the existence of pages can still be checked for.

Examples