Template:NavLink: Difference between revisions
Jump to navigation
Jump to search
imported>Ulti added currentcss parameter |
imported>Ulti added a documentation |
||
Line 1: | Line 1: | ||
{{#ifeq: {{FULLPAGENAMEE}} | {{{1}}} | style="{{{currentcss|background-color:#e9ebf5;}}}"| style="{{{css|background-color:white;}}}"}} |<!-- | <includeonly>{{#ifeq: {{FULLPAGENAMEE}} | {{{1}}} | style="{{{currentcss|background-color:#e9ebf5;}}}"| style="{{{css|background-color:white;}}}"}} |<!-- | ||
--><nowiki> </nowiki>[[{{{1}}}|<span style="font-weight:normal;">{{{2}}}</span>]]<nowiki> </nowiki> | --><nowiki> </nowiki>[[{{{1}}}|<span style="font-weight:normal;">{{{2}}}</span>]]<nowiki> </nowiki></includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 15:18, 19 October 2014
NavLink | NavLink/doc |
The above is an example which renders from:
{| class="wikitable" cellpadding="3" |- | {{NavLink|Template:NavLink|NavLink}} | {{NavLink|Template:NavLink/doc|NavLink/doc}} |}
Alternatively, we can omit a parameter and not specify text for the link:
{| class="wikitable" cellpadding="3" |- | {{NavLink|Template:NavLink}} | {{NavLink|Template:NavLink/doc}} |}
which renders the slightly different:
{{{2}}} | {{{2}}} |