Template:Ncolor: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (Protected "Template:Ncolor" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Added third parameter)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{3|}}}
<includeonly>{{#if: {{{3|}}}
|[[{{{3}}}, {{{2}}}|<font color={{{1}}}>{{{2}}} {{{3}}}</font>]]
|[[{{{2}}}|<font color={{{1}}}>{{{3}}}</font>]]
|[[{{{2}}}|<font color={{{1}}}>{{{2}}}</font>]]
|[[{{{2}}}|<font color={{{1}}}>{{{2}}}</font>]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Same function as the [[Template:N|name template]] but it gives a link in a specified color instead of blue.
This template gives a link to a character's page in a specified color instead of blue.


<pre>{{ncolor|teal|Tenzin|Zhou}}</pre>
<pre>{{ncolor|teal|Tenzin Zhou}}</pre>


{{ncolor|teal|Tenzin|Zhou}}
{{ncolor|teal|Tenzin Zhou}}


You can also use this template to make ANY link a specific color rather than blue:


Those with one name will still get one name as well:
<pre>{{ncolor|darkgoldenrod|Starfleet Corps of Engineers}}</pre>
<pre>{{ncolor|teal|Solok}}</pre>


{{ncolor|teal|Solok}}
{{ncolor|darkgoldenrod|Starfleet Corps of Engineers}}


You can also use this template to make ANY link a specific color rather than blue:
You can also change the text of the link by adding a third parameter:


<pre>{{ncolor|darkgoldenrod|Starfleet Corps of Engineers}}</pre>
<pre>{{ncolor|darkgoldenrod|Starfleet Corps of Engineers|SCE}}</pre>


{{ncolor|darkgoldenrod|Starfleet Corps of Engineers}}
{{ncolor|darkgoldenrod|Starfleet Corps of Engineers|SCE}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 21:09, 15 March 2019

This template gives a link to a character's page in a specified color instead of blue.

{{ncolor|teal|Tenzin Zhou}}

Tenzin Zhou

You can also use this template to make ANY link a specific color rather than blue:

{{ncolor|darkgoldenrod|Starfleet Corps of Engineers}}

Starfleet Corps of Engineers

You can also change the text of the link by adding a third parameter:

{{ncolor|darkgoldenrod|Starfleet Corps of Engineers|SCE}}

SCE