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

From NetHackWiki
Jump to navigation Jump to search
m
m
Line 4: Line 4:
  
  
Usage: <tt><nowiki>{{tdx|A|B|C}}</nowiki></tt>
+
Usage: <tt><nowiki>{{tdx|A|B}}</nowiki></tt>
  
 
Where:
 
Where:
 
*A is the page to be linked to, and matched against the page title.
 
*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.
 
*B is an optional parameter used as the link name shown to user.
*C is an optional parameter that can be used as the style to be used.
+
You can also optionally define ''styling'', which can contain your own style or class definitions.
  
 
For example:
 
For example:
Line 18: Line 18:
 
|-  
 
|-  
 
{{:User:Paxed/Template:tdx|tdxtest3|test3}}
 
{{:User:Paxed/Template:tdx|tdxtest3|test3}}
{{:User:Paxed/Template:tdx|User:Paxed/Template:tdx|test4|styling=style="background:blue;color:red"}}
+
{{:User:Paxed/Template:tdx|User:Paxed/Template:tdx|test4|styling=style="background:red;color:yellow"}}
 
|}
 
|}

Revision as of 21:38, 5 March 2008


This template inserts a table cell with a link, and hilights the table cell with green 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