Content deleted Content added
|
 |
|||
| Line 1: | Line 1: | ||
|
<noinclude><!–The nowiki that follows is needed because of parser bug T18700–></noinclude><templatestyles src=”https://en.wikipedia.org/w/Nobold/styles.css”/><includeonly><nowiki/><span class=”nowrap”>{{#if: {{{b|}}}|”’}}{{#if: {{{1|}}}|{{#invoke:DartsRankings|playerLink|PDC Rankings|{{{1|}}}|flag={{#switch: {{{org}}}|DPA=AUS}} }} |
<noinclude><!–The nowiki that follows is needed because of parser bug T18700–></noinclude><templatestyles src=”https://en.wikipedia.org/w/Nobold/styles.css”/><includeonly><nowiki/><span class=”nowrap”>{{#if: {{{b|}}}|”’}}{{#if: {{{1|}}}|{{#invoke:DartsRankings|playerLink|PDC Rankings|{{{1|}}}|flag={{#switch: {{{org}}}|DPA=AUS}} }}{{#:{{{|}}}| }}{{#:{{{|}}}|}} }}{{{txt|}}}{{#if: {{{b|}}}|”’}}<span class=”nobold”><small style=”color:dimgray;”> {{{avg|}}}</small></span></span></includeonly><noinclude>{{documentation}}</noinclude> |
||
Latest revision as of 17:30, 19 November 2025
This creates a link with flag to PDC Darts players. This invokes the module and gets players from Module:DartsRankings/data/PDC Players
Usage
{{PDCFlag|Player name|avg=123.45}}
- Player name is the name of the player used by the PDC OoM.
- the avg parameter is optional and will display small gray text after the name, intended for player 3 dart average.
- the b parameter is optional and displays the player name in bold
- the flag parameter is optional and will replace the flag icon from the database.
- the txt parameter is optional and can be used for players not in the database, or for additional text between player name and average
- the no link parameter is optional and can force a link to be suppressed, or force a red link to appear
See also
Template:PDCFlagR gives a right positioning of the flag with the average on the left.
Examples


