Property:Has page name

From Guild Wars 2 Wiki
Jump to navigationJump to search

This page property identifies the page name of a page.

Usage[edit]

It is required to correctly sort the results of the templates {{skill list}}, {{trait list}}, and {{Hidden achievements list}} which are using property chains in their sort parameter (smw:Help:Property chains and paths and smw:Help:Sorting#Providing sorting conditions: using parameters). Sorting by property chains is only possible if they have all the same hierachy (not sure if this is actually intended or not), i.e. interally it will resort the sort list by hierachy first.

Explanation[edit]

The template {{skill list}} asks for certain skill facts of e.g. weapon skills, (skill facts are stored in subobjects) and the subobjects (hence the weapon skills):

  1. by its profession
  2. by its elite specialiation
  3. by its weapon type
  4. alphabetically (very important to group skills that have several skill facts of the same type and avoid listing a skill twice)

Theoretically, to sort the skills 4. alphabetically, one can either use the result subobject itself (hence use the empty list entry at sort it: , ):

Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has weapon type sort order, 

or its parent, i.e. the weapon skill:

Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has weapon type sort order, Is for skill

However, both sort options fail due to the property chain hierachy, both are internally turned into the following sort list respectively (e.g. use format=debug):

, Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has weapon type sort order
Is for skill, Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has weapon type sort order

Hence, the skills are actually sorted in the following way:

  1. alphabetically
  2. by its profession
  3. by its elite specialiation
  4. by its weapon type

and therefore ruining any intended sort procedere.

Hence, using this property Has page name, allows, due to being at the same hierachy level, to sort in the correct way:

Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has weapon type sort order, Is for skill.Has page name
Showing 20 pages using this property.