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}}.

Exceptions

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 (page in {{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

Usage[edit]

{{objectives table header}}
{{objectives table row|<objective>|<notes>}}
|}

Parameters[edit]

1 (unnamed parameter)
Required. Standalone achievement page name. Defaults to PAGENAME. Requires the parameter page to be set in {{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.

Additional parameters[edit]

The following parameters are used to handle the API:2/achievements objectives list mismatch with the in-game order (and hence the documented wiki order) that certain achievements have. The parameter disable warning allows to disable the warning but the API check box won't be shown then. The parameter custom bit allows to assign the API order and thus enables the check.

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 {{#var:achievement id blacklist}} in this template.

The following warning will appear:


Note: For this achievement the API:2/achievements objectives list does not match the in-game order. In order to avoid that the wrong completed objectives are grayed out, the API check has been disabled.

  • To disable this warning set the parameter disable warning=true in the header template {{Objectives table header}} on this page.
  • To enable the API check set the parameter custom bit=true in the header template {{Objectives table header}} and set the parameter custom bit=X in the row template {{Objectives table row}} where X is the bit number according to the API.