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

From NetHackWiki
Jump to navigation Jump to search
m
m
 
(2 intermediate revisions by the same user not shown)
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="border:1px black solid;background:#eff:padding:0 1em 0 1em 0;">&nbsp;&nbsp;</span> background color, if the link is the current page.
+
This template inserts a table cell with a link. If the link is the current page, the cell is hilighted with <span style="border:1px black solid;background:#eff;padding:0 1em 0 1em;">&nbsp;</span> background color.
  
 +
'''Usage:'''
 +
*<tt><nowiki>{{tdx|PAGE}}</nowiki></tt>
 +
*<tt><nowiki>{{tdx|PAGE|LINKNAME}}</nowiki></tt>
 +
*<tt><nowiki>{{tdx|PAGE|LINKNAME|styling=STYLE}}</nowiki></tt>
  
Usage: <tt><nowiki>{{tdx|A|B}}</nowiki></tt>
+
'''Where:'''
 
+
*PAGE is the page to be linked to, and matched against the page title.
Where:
+
*LINKNAME is an optional parameter used as the link name shown to user.
*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.
 
You can also optionally define ''styling'', which can contain your own style or class definitions.
  
For example:
+
'''For example:'''
 
 
 
{| class="prettytable"
 
{| class="prettytable"
{{:User:Paxed/Template:tdx|test1}}
+
{{:User:Paxed/Template:tdx|Not this page}}
 
{{:User:Paxed/Template:tdx|User:Paxed/Template:tdx}}
 
{{:User:Paxed/Template:tdx|User:Paxed/Template:tdx}}
 
|-  
 
|-  
{{:User:Paxed/Template:tdx|tdxtest3|test3}}
+
{{:User:Paxed/Template:tdx|Some other page|Different linkname}}
{{:User:Paxed/Template:tdx|User:Paxed/Template:tdx|test4|styling=style="background:red;color:yellow"}}
+
{{:User:Paxed/Template:tdx|User:Paxed/Template:tdx|This Page}}
 +
|-
 +
{{:User:Paxed/Template:tdx|Not this page}}
 +
{{:User:Paxed/Template:tdx|User:Paxed/Template:tdx|This page with user style|styling=style="background:red;color:yellow"}}
 
|}
 
|}

Latest revision as of 21:59, 5 March 2008


This template inserts a table cell with a link. If the link is the current page, the cell is hilighted with   background color.

Usage:

  • {{tdx|PAGE}}
  • {{tdx|PAGE|LINKNAME}}
  • {{tdx|PAGE|LINKNAME|styling=STYLE}}

Where:

  • PAGE is the page to be linked to, and matched against the page title.
  • LINKNAME 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:

Not this page User:Paxed/Template:tdx
Different linkname This Page
Not this page This page with user style