Template:Achievement icon

From Guild Wars 2 Wiki
Jump to navigationJump to search

Arenanet Points.png Achievement

Description[edit]

Displays a link to an achievement or achievement category and adds the icon in front of it.

Usage[edit]

{{achievement icon|<achievement/achievement category>}}
{{achievement icon|page=<achievement page>}}
{{achievement icon|<achievement/achievement category>|<displayed text>|size=<icon size>}}

Parameters[edit]

1 (unnamed parameter)
Required. Achievement (scheme: <achievement category>#achievement<achievement id>) or achievement category name.
How to find out an achievement id?
  • The achievement has an individual achievement page. Perfect, then we are nearly done: click the achievement category page in the top right cell which gives the exact internal achievement name. E.g. Ambrite Weapon Collection has the link Rare Collection linking to Rare Collections#achievement1749 which is already what we want.
  • On an achievement category page: Edit the achievement category page, search for the wanted {{achievement table row}} entry and find the parameter id. E.g. on the page Rare Collections for name = Ambrite Weapon Collection we find the parameter id = 1749.
  • For experts: Right-click the achievement table subheader in the achievement category page, then use Inspect and locate <tr id="achievement<id>" class="widget-account-achievement line" data-id="achievement<id>">.
2 (unnamed parameter)
Optional. Link text. Defaults to canonical name.
page
Optional. Overrides unnamed parameter 1, set to individual achievement page instead. Leave parameter 1 empty in this case.
icon
Optional. Set to "only" to disable the linked text.
size
Size of icon to display, in px. Defaults to 20px.

Example[edit]

* {{achievement icon|Weapon Master}}
* {{achievement icon|Slayer#achievement8}}
* {{achievement icon|page=Ambrite Weapon Collection}}
* {{achievement icon|Dungeons (achievements)#achievement122|icon=only|size=32}}
  • Dungeons (achievements).png