• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:PDCFlag/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:PDCFlag
This is the template sandbox page for Template:PDCFlag (diff).
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:DartsRankings (sandbox)
  • Module:Flag (sandbox)

This creates a link with flag to PDC Darts players. This invokes the module and gets players from Module:DartsRankings/data/PDC Players

Usage

edit
{{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

edit

Template:PDCFlagR gives a right positioning of the flag with the average on the left.

Examples

edit
Wiki markup alignment Displays Links to
{{PDCFlag|Michael van Gerwen}} left  Michael van Gerwen Michael van Gerwen
{{PDCFlag|Peter Wright}}  Peter Wright Peter Wright (darts player)
{{PDCFlag|Gary Anderson|avg=111.09|b=1}}  Gary Anderson 111.09 Gary Anderson (darts player)
{{PDCFlag|Stefan Bellmont|avg=104.67}}  Stefan Bellmont 104.67 Stefan Bellmont
{{PDCFlag|Mickey Mouse}}  Mickey Mouse Mickey Mouse (Missing flag indicates player not in library)
{{PDCFlag|mensur suljovic|avg=98.57}}  Mensur Suljović 98.57 Mensur Suljović
{{PDCFlag|Martin Atkins (Wigan)|b=y}}  Martin Atkins Martin Atkins (darts player, born 1975)
{{PDCFlag|Chengan Liu}}  Chengan Liu nothing, template suppresses redlinks
{{PDCFlag|Chengan Liu|nolink=0}}  Chengan Liu Chengan Liu
{{PDCFlag|Gerwyn Price|nolink=1}}  Gerwyn Price nothing, link suppressed by args
{{PDCFlag|Phil Taylor|flag=GBR}}  Phil Taylor Phil Taylor (darts player)
{{PDCFlag|txt=George Washington|flag=USA|avg=100.17}} United States George Washington 100.17 n/a
{{PDCFlag|Michael van Gerwen|txt=(2)|avg=113.12}}  Michael van Gerwen (2) 113.12 Michael van Gerwen
PDCFlagR
{{PDCFlagR|Michael van Gerwen}} right Michael van Gerwen  Michael van Gerwen
{{PDCFlagR|Gary Anderson|avg=111.09|b=1}} 111.09 Gary Anderson  Gary Anderson (darts player)
{{PDCFlagR|Stefan Bellmont|avg=104.67}} 104.67 Stefan Bellmont  Stefan Bellmont
{{PDCFlagR|Mickey Mouse}} Mickey Mouse  nothing
{{PDCFlagR|Michael van Gerwen|txt=(2)|avg=113.12}} 113.12 (2) Michael van Gerwen  Michael van Gerwen
{{PDCFlagR|Peter Wright}} center Peter Wright  Peter Wright (darts player)
{{PDCFlagR|mensur suljovic|avg=98.57}} left 98.57 Mensur Suljović  Mensur Suljović
{{PDCFlagR|Martin Atkins (Wigan)|b=y}} Martin Atkins  Martin Atkins (darts player, born 1975)
The above documentation is transcluded from Template:PDCFlag/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:PDCFlag/sandbox&oldid=1300107047"
Last edited on 12 July 2025, at 09:00

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 12 July 2025, at 09:00 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop