Changes

190 bytes added ,  01:57, June 18, 2007
Add link-name parameter and update and correct documenation.
Line 1: Line 1:  
<includeonly>{{#if:{{{2|}}}
 
<includeonly>{{#if:{{{2|}}}
 
  |{{!}}-
 
  |{{!}}-
−
  {{!}}{{{1}}}{{!}}{{!}}{{#ifeq:{{{link|}}}|yes|[[{{{2}}}]]|{{{2}}}}}
+
  {{!}}{{{1}}}{{!}}{{!}}{{#ifeq:{{{link|}}}|yes|[[{{{link-name|{{{2}}}}}}]]|{{{2}}}}}
 
|<div></div>}}</includeonly><noinclude>
 
|<div></div>}}</includeonly><noinclude>
 
{{lowercase}}
 
{{lowercase}}
Line 9: Line 9:  
  {{parm|2|Second column text|yes|}}
 
  {{parm|2|Second column text|yes|}}
 
  {{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}}
 
}}
 
}}
 
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.
    
'''Note A:'''
 
'''Note A:'''
−
:If link=yes, the value of the second column will be a Wikilink.
+
: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.
      Line 30: Line 31:  
|}
 
|}
   −
<small>*&mdash; A couple of empty <nowiki><div></nowiki> tags are actually returned, to avoid bugs.</small>
+
<small>*&mdash; A pair of empty <nowiki><div></nowiki> tags are actually returned, to avoid display problems.</small>
 
</noinclude>
 
</noinclude>
nsTeam2RO, nsTeam2RW, nsTeam2_talkRO, nsTeam2_talkRW
13,254

edits