Template:Ncolored: Difference between revisions

rewritten to conform with Template:Ncolor syntax
No edit summary
(rewritten to conform with Template:Ncolor syntax)
Line 1: Line 1:
<includeonly>{{#if: {{{2|}}}
<includeonly>{{#if: {{{3|}}}
|[[{{{2}}}, {{{1}}}|<font style="{{TextColor|{{{3|}}}}}">{{{1}}} {{{2}}}</font>]]
|[[{{{3}}}, {{{2}}}|<font style="{{TextColor|{{{1|}}}}}">{{{2}}} {{{3}}}</font>]]
|[[{{{1}}}|<font style="{{TextColor|{{{3|}}}}}">{{{1}}}</font>]]
|[[{{{2}}}|<font style="{{TextColor|{{{1|}}}}}">{{{2}}}</font>]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Same function as the [[Template:Ncolor]] but lets you use the standard rank color names (red, gold, etc.) instead of the actual HTML color names (maroon, darkgoldenrod, etc.).
Same function as the [[Template:Ncolor]] but lets you use the standard rank color names (red, gold, etc.) instead of the actual HTML color names (maroon, darkgoldenrod, etc.).
<pre>{{Ncolored|Red|Ceciri Ariadust}}</pre>
{{Ncolored|Red|Ceciri Ariadust}}
Also works for a link to any other page:
<pre>{{Ncolored|Teal|Starfleet Medical}}</pre>
{{Ncolored|Teal|Starfleet Medical}}


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