Template:Objectives table header
From Guild Wars 2 Wiki
Jump to navigationJump to search
Description[edit]
This table header template is used in conjunction with {{objectives table row}}.
For most achievements, this template provides API check functionality. A few checks are performed prior to displaying this, see #Notes below.
Usage[edit]
{{objectives table header}}
{{objectives table row|<objective>|<notes>}}
|}
Parameters[edit]
- 1 (unnamed parameter)
- Optional. Name of the achievement (matching property "Has canonical name").
- Note that this parameter defaults to PAGENAME, which instead matches on "Has achievement page" (set by
pageto be set in Template:Achievement table row). - id
- Optional on standalone achievement pages. Can be used instead the unnamed parameter 1 on standalone achievement pages to set the id for the API check.
- Required for achievements without a standalone achievement page. Set the achievement id to properly enable the API check.
- api
- Optional. Achievement api check box, enabled on default. Set to either "true" or "false" to enable/disable the box.
- map
- Optional. Map screenshot column, disabled on default. Set to either "true" or "false" to enable/disable the column.
- location
- Optional. Location screenshot column, disabled on default. Set to either "true" or "false" to enable/disable the column.
- notes
- Optional. Alternative notes column title. Set to "false" to disable the notes column.
- col1 ... col3
- Optional. Additional custom columns that allow any content, e.g. "Location" as text, "Nearest waypoint", "Enemies", etc... Set this parameter to the wanted column title to activate this column.
- class
- Optional. Appends a CSS class into the table header in addition to the existing value of "table mech1 sortable".
- objectives width
- Optional. Minimum width of the column "Objectives".
- notes width
- Optional. Width of the column "Notes".
- col1 width ... col3 width
- Optional. Width of the custom columns.
- scope
- Optional. Either "objective" (not a wiki page, no icon), or "collection" (wiki page with icon and rarity). Should be auto-detected.
- disable warning
- Optional. Allows to disable the warning for achievements that doesn't match the API objectives list by setting it to "true". The API check is not shown.
- custom bit
- Optional. Allows to enable the API check by setting it to "true" in order to enable the API check (also disables the warning). This requires also the usage of the parameter "custom bit" in the {{objectives table row}}, and the addition of the achievement ID to Template:Achievement id blacklist.
Notes[edit]
The API check is disabled automatically on the following pages:
- Achievement pages which includes several achievements. The template collects the achievement id based on the individual achievement name, if there are several achievements (
pagein {{achievement table row}}) then the template can't decide for the actually wanted achievement id. Set the parameter id to enable the API check. - Achievements with the type "meta". Although API:2/account/achievements provides the unlocked objectives, the API:2/achievements doesn't list them and hence there's no reasonable way to gain the objectives order used by API:2/account/achievements. Note that currently the meta achievements are barely documented on an individual achievement page anyways.
- Achievements with one of the following ids, last updated: Apr 2023. For these achievements the API:2/account/achievements uses another objectives order than the in-game and thus how it is documented on the wiki. In this case a visible warning will appear, see #Additional parameters for further details.
- Blacklisted achievement IDs
See also[edit]
- {{Collection table}} — automated list