Template:TalentRole/doc: Difference between revisions

Template page
(Created page with "This template should always used as a direct unnamed parameters of the Template:TalentTab template. The TalentRole template takes the following parameters: Unnamed parameters to signify the name of the list, like |Observers or |Commentators etc |div= - add anything there, like "y". Will go to the next column with that TalentRole list onwards |t+number= - for each talent, so |t1=Name |t2=Second Name etc |t+number+link= - if the name of the talent is not the same as h...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
This template should always used as a direct unnamed parameters of the [[Template:TalentTab]] template.  
This template should always used as a direct unnamed parameters of the [[Template:TalentTab]] template.  
The TalentRole template takes the following parameters:
Unnamed parameters to signify the name of the list, like |Observers or |Commentators etc
|div= - add anything there, like "y". Will go to the next column with that TalentRole list onwards
|t+number= - for each talent, so |t1=Name |t2=Second Name etc
|t+number+link= - if the name of the talent is not the same as his page, so "|t1=Name|t1link=KheZu" would show "Name" as the text, but link to the KheZu page


Example:
=== TalentRole parameters ===
 
'''Unnamed parameters''' - to signify the name of the list, like '''|Observers''' or '''|Commentators''' etc
 
'''|div=''' - add anything there, like "y". Will go to the next column with that TalentRole list onwards
 
'''|t+number=''' - for each talent, so |t1=Name |t2=Second Name etc
 
'''|t+number+link=''' - if the name of the talent is not the same as his page, so "|t1=Name|t1link=KheZu" would show "Name" as the text, but link to the KheZu page
 
'''|t+number+flag=''' - if no flag is added to the infobox of the persons page or if no page exists, so for example "|t1=Name|t1link=KheZu|t1flag=Germany" would add the german flag infront of the talent
 
=== Example ===
<pre>
<pre>
   |{{TalentRole|Commentators
{{TalentTable
    |t1=Bkop
   |{{TalentTab|lang=English|topNote=Note at the top|botNote=Note at the bottom
     |t2=Lacoste|t2link=LacosteDota
    |{{TalentRole|Commentators|section=Section example
  }}
      |t1=Bkop
  |{{TalentRole|Commentators
      |t2=Lacoste
    |div=y
     }}
    |t1=Bkop
    |{{TalentRole|Observers||section=Second section
    |t2=Lacoste|t2link=LacosteDota
      |t1=KheZu
      |t2=CustomLink|t2link=RealLink|t2flag=USA
    }}
    |{{TalentRole|Observers|div=y
      |t1=Sheever
      |t2=Quinn
    }}
   }}
   }}
}}
</pre>
</pre>
Will look like this:
[[File:TalentTable_example.png]]

Latest revision as of 15:13, 14 February 2024

This template should always used as a direct unnamed parameters of the Template:TalentTab template.

TalentRole parameters

Unnamed parameters - to signify the name of the list, like |Observers or |Commentators etc

|div= - add anything there, like "y". Will go to the next column with that TalentRole list onwards

|t+number= - for each talent, so |t1=Name |t2=Second Name etc

|t+number+link= - if the name of the talent is not the same as his page, so "|t1=Name|t1link=KheZu" would show "Name" as the text, but link to the KheZu page

|t+number+flag= - if no flag is added to the infobox of the persons page or if no page exists, so for example "|t1=Name|t1link=KheZu|t1flag=Germany" would add the german flag infront of the talent

Example

{{TalentTable
  |{{TalentTab|lang=English|topNote=Note at the top|botNote=Note at the bottom
    |{{TalentRole|Commentators|section=Section example
      |t1=Bkop
      |t2=Lacoste
    }}
    |{{TalentRole|Observers||section=Second section
      |t1=KheZu
      |t2=CustomLink|t2link=RealLink|t2flag=USA
    }}
    |{{TalentRole|Observers|div=y
      |t1=Sheever
      |t2=Quinn
    }}
  }}
}}

Will look like this:

TalentTable example.png