Difference between revisions of "User:Paxed/Template:tdx"

From NetHackWiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
<onlyinclude><includeonly>{{!}}{{#ifeq:{{FULLPAGENAME}}|{{{1}}}|{{{styling|style="background:#eff"}}}}}{{!}} [[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]] </includeonly></onlyinclude>
 
<onlyinclude><includeonly>{{!}}{{#ifeq:{{FULLPAGENAME}}|{{{1}}}|{{{styling|style="background:#eff"}}}}}{{!}} [[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]] </includeonly></onlyinclude>
  
This template inserts a table cell with a link, and hilights the table cell with <span style="background:#eff"&nbsp;&nbsp;</span> background color, if the link is the current page.
+
This template inserts a table cell with a link, and hilights the table cell with <span style="background:#eff">&nbsp;&nbsp;</span> background color, if the link is the current page.
  
  

Revision as of 21:39, 5 March 2008


This template inserts a table cell with a link, and hilights the table cell with    background color, if the link is the current page.


Usage: {{tdx|A|B}}

Where:

  • A is the page to be linked to, and matched against the page title.
  • B is an optional parameter used as the link name shown to user.

You can also optionally define styling, which can contain your own style or class definitions.

For example:

test1 User:Paxed/Template:tdx
test3 test4