Propiedad:Tiene nombre de página
Esta propiedad page identifica el nombre de la página de una página.
Uso[editar]
It is required to correctly sort the results of the templates {{lista de habilidades}} and {{lista de rasgos}} which are using property chains in their sort parameter (en:smw:Printouts and property chains and en: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[editar]
The template {{lista de habilidades}} asks for certain skill facts of e.g. weapon skills, (skill facts are stored in subobjetos) and the subobjects (hence the weapon skills):
- by its profession
- by its elite specialiation
- by its weapon type
- 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:
- alphabetically
- by its profession
- by its elite specialiation
- by its weapon type
and therefore ruining any intended sort procedere.
Hence, using this property Tiene nombre de página, 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