Pathfinder Wiki:API/Database/Layout - Honor Variants
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.
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).