tests

latest release

If the version has `-next` in the title, the code should not be considered stable. Please do not deploy it without careful testing across all the projects above.

version
4.16.0

Code

Configuration

enwikivoyage
Name Type Description
ALLOW_UNRECOGNIZED_PARAMETERS boolean required private do not use
ALLOW_UNRECOGNIZED_PARAMETERS_LOOKUP boolean required whether to allow unrecognized parameters to be saved.
APPEND_FULL_STOP_TO_DESCRIPTION boolean required adds a full stop at end of description.
COORD_PRECISION number required How many decimal places to show. Defaults to 6.
DEFAULT_LISTING_TEMPLATE string required the wiki page where your listing template lives.
EDITOR_TAG string optional if present all edits will be tagged with this string. It must be defined in Special:Tags.
iata string required template for rendering iata e.g. `"{{IATA|%s}}"`
LISTING_CONTENT_PARAMETER string required content field for your template in DEFAULT_LISTING_TEMPLATE
LISTING_TEMPLATE_PARAMETERS ListingTemplateParametersConfig required map fields to configuration options. Unstable and likely to change in future. e.g. `{ "hours": { "hideIfEmpty": "div_hours", "skipIfEmpty": true } }`
LISTING_TYPE_PARAMETER string required type field for your listing template defined in DEFAULT_LISTING_TEMPLATE
listingTypeRegExp string required regular expression for creating lists! Override at your own risk!
REPLACE_NEW_LINE_CHARS boolean required replace all new line characters inside form values before saving
SECTION_TO_TEMPLATE_TYPE Record<string, string> required private. Do not configure. See sectionType.
sectionType Record<string, string> required maps heading titles to section types e.g. `{ "Eat_and_drink": "eat" }`
SHOW_LAST_EDITED_FIELD boolean required whether to show the last edited field on listings.
SLEEP_TEMPLATE_PARAMETERS ListingTemplateParametersConfig required map fields specific to sleep section to configuration options. Unstable and likely to change in future. e.g. `{ "hours": { "hideIfEmpty": "div_hours", "skipIfEmpty": true } }`
SPECIAL_CHARS string[] required a list of characters that are commonly used in your language/;locale and might be helpful e.g. é - these appear in listing editor for easy copy and pasting
SUPPORTED_SECTIONS string[] required array of lowercased strings that will be checked against the section heading string. For example if "do" is in array than listings can be added to any heading == Do ==
VALIDATE_CALLBACKS_EMAIL boolean required checks email fields are in expected format e.g. don't allow emails missing @ character
WIKIDATA_SYNC_PLACEHOLDER boolean required When true, fields that Wikidata can supply dynamically at render time (wikipedia, commons image) are shown as a disabled placeholder after syncing and saved empty, so the local value cannot drift out of sync with Wikidata.
WIKIDATAID string required the wikidata ID of your project