Changes

Jump to navigation Jump to search
352 bytes added ,  15:12, July 8, 2007
Add col2txt parameter, and debugging category
Line 1: Line 1: −
<includeonly>{{#if:{{{2|}}}
+
<includeonly>{{#if:{{{2|}}}{{{col2txt|}}}
 
  |{{!}}-
 
  |{{!}}-
−
  {{!}}{{{1}}}{{!}}{{!}}{{#ifeq:{{{link|}}}|yes|{{#if:{{{link-name|}}}|[[{{{link-name}}}]]|[[{{{2}}}]]}}|{{{2}}}}}
+
  {{!}}{{{1}}}{{!}}{{!}}{{#if:{{{col2txt|}}}|{{{col2txt}}}|{{#ifeq:{{{link|}}}|yes|{{#if:{{{link-name|}}}|[[{{{link-name}}}]][[Category:TDebug]]|[[{{{2}}}]]}}|}}}}
 
|<div></div>}}</includeonly><noinclude>
 
|<div></div>}}</includeonly><noinclude>
 
{{lowercase}}
 
{{lowercase}}
Line 10: Line 10:  
  {{parm|link|link the second column?|no|see note A}}
 
  {{parm|link|link the second column?|no|see note A}}
 
  {{parm|link-name|name of page to link to|no|Defaults to parameter 2}}
 
  {{parm|link-name|name of page to link to|no|Defaults to parameter 2}}
 +
{{parm|col2txt|Second column text|no|Defaults to paramter 2; see note B}}
 
}}
 
}}
 
If parameter 2 is not empty, then the code for a table row (wiki syntax) with two columns is returned, else nothing* is returned.
 
If parameter 2 is not empty, then the code for a table row (wiki syntax) with two columns is returned, else nothing* is returned.
Line 16: Line 17:  
:If link=yes, the value of the second column will be a Wikilink, to the page in parameter ''link-name'', or if that is not provided, the page in parameter 2.
 
:If link=yes, the value of the second column will be a Wikilink, to the page in parameter ''link-name'', or if that is not provided, the page in parameter 2.
   −
 
+
'''Note B:'''
 +
:If ''col2txt'' is provided, this will be used in place of the text supplied to parameter 2, ''and will not be linked''.  If you want it linked, include the square brackets in the text of ''col2txt''.
    
'''Example:'''
 
'''Example:'''
nsTeam2RO, nsTeam2RW, nsTeam2_talkRO, nsTeam2_talkRW
13,254

edits

Navigation menu