Pathfinder Wiki:API/Database/Layout - Honor Variants

From Pathfinder Wiki
Revision as of 16:46, 23 September 2022 by DesignerThan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This table will hold all the information about honor variants

Template to save the data

The template that saves all of the information about variants into the database, is the HonorLanding template. This template is being used on each landing page of the honor to display the information and to enable the navigation to the subpages and all the variants.

Example

Layout details

Column description

In this part the columns of the honor variants table are described in detail.

landingID (Integer - mandatory)

The ID of the honor the variant belongs to.

type (String - mandatory & allowed values)

Defines if the variant is an answer- or a requirement-variant.

Allowed values:

  • answer_variants
  • requirement_variants

number (Integer - mandatory)

The arguments that define a variant of an honor are being enumerated starting with 1, it is used inside the pagenames too. This number need's to be stored, so that the variant's are able to retrieve needed information by their number.

authority (String - mandatory)

The short name of the authority that released the requirements that are being used by the answer-variant or being defined by the requirement-variant.

Maybe we should rename the requirement_n argument of the HonorLanding Template and use the authority argument instead by adding a number to it, where no number-suffix and _1-suffix means the same.

usage_authorities (String)

Semicolon separated string of authority short names that use this variant. It is only needed if there are other variant's that could be used. For example: An honor has a GC and a NAD Variant. Normally the EUD, that has not altered the honor (has no own variant) would use the GC Variant. But because the NAD Variant is more up to date the EUD uses the NAD Variant.

So that is the place to store that kind of information.

countries (String)

Semicolon separated list of the countries that the answer-variant is relevant too.

srcLanguage (String)

ONLY USED BY ANSWER-VARIANTS Some answers are only relevant to some countries. For example in the Postcards honor the answers will differ from country to country. Those answers are also mostly only relevant for those countries, that is why it is possible to define a source language for answer variants. That way the answers don't need to be written in english and then be translated back to the needed language. Requirements should always be available in English. That is why we decided to not implement the source language for them.

The value in this cell has to be a language code defined on this list. Default is english (en).