Template:Tnav: Difference between revisions

From Dragon Quest Wiki
m (Modified to accept a class)
 
mNo edit summary
Line 1: Line 1:
<onlyinclude>
<onlyinclude><includeonly><span style="float:left; {{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" class="plainlinks"><font style="font-size:10px; font-family:tahoma;"> [[Template:{{{1}}}|{{#if:{{{fontcolor|}}}|<span style="color:{{{fontcolor}}};">v</span>|v}}]] &middot; [{{fullurl:Template:{{{1}}}|action=edit}} {{#if:{{{fontcolor|}}}|<span style="color:{{{fontcolor}}};">e</span>|e}}] &middot; [[Template Talk:{{{1}}}|{{#if:{{{fontcolor|}}}|<span style="color:{{{fontcolor}}};">d</span>|d}}]]</font></span></includeonly></onlyinclude>
<includeonly>
<span style="float:left; {{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" {{#if:{{{classname\}}}|class="{{{classname}}}"|class="plainlinks"}}>
<font style="font-size:10px; font-family:tahoma;">  
[[Template:{{{1}}}|{{#if:{{{fontcolor|}}}|<span style="color:{{{fontcolor}}};">v</span>|v}}]] &middot; [{{fullurl:Template:{{{1}}}|action=edit}} {{#if:{{{fontcolor|}}}|<span style="color:{{{fontcolor}}};">e</span>|e}}] &middot; [[Template Talk:{{{1}}}|{{#if:{{{fontcolor|}}}|<span style="color:{{{fontcolor}}};">d</span>|d}}]]
</font>
</span>
</includeonly></onlyinclude>


==Use==
==Use==
:<code><nowiki>{{tnav|template name (without Template: part)}}</nowiki></code>
:<code><nowiki>{{tnav|template name (without Template: part)}}</nowiki></code>
:<code><nowiki>{{tnav|template name|fontcolor=color name or color hexcode}}</nowiki></code>
:<code><nowiki>{{tnav|tempalte name|fontcolor=color name or color hexcode}}</nowiki></code>
:<code><nowiki>{{tnav|template name|classname=class name which has 'color' attribute}}</nowiki></code>

Revision as of 10:07, 5 February 2010


Use

{{tnav|template name (without Template: part)}}
{{tnav|tempalte name|fontcolor=color name or color hexcode}}