User:Ryebot/bot/scripts/langsync/config

From Terraria Wiki
< User:Ryebot‎ | bot‎ | scripts‎ | langsync
Jump to navigation Jump to search

Set configuration settings for the langsync script. See User:Ryebot/bot/scripts/langsync/config/default for the default settings.

This script has several configuration options.

Firstly, wikis contains a comma-separated list of language codes for the wikis to update pages on. Possible list values are de (German), fr (French), hu (Hungarian), ko (Korean), ru (Russian), pl (Polish), pt (Portuguese), uk (Ukrainian), zh (Chinese), es-formal (Spanish (formal)).

Secondly, categories and pages define the set of pages from the English wiki that are to be synced to the language wikis. While categories allows to include large numbers of pages, pages makes it possible to add single pages. Only direct members of each category from categories are included, not members of subcategories nor the subcategories themselves. The list delimiter for both parameter values is a semicolon, e.g. |categories=Category:Data templates; Category:Localization subtemplates.

The following two configuration options are language-specific, thus start with <langcode>: (taking fr here as an example): fr:syncnot and fr:syncalso. syncnot contains a list of pages that are to be excluded from synchronization for this language from the set of pages compiled from the two options above. For instance, if Template:Item infobox/l10n (which could be included in the list of pages to sync via |categories=Localization subtemplates) should not be updated to the most recent version on the French wiki, add it to this list: |fr:syncnot=Template:Item infobox/l10n. On the contrary, syncalso contains a list of pages that should be synced in addition to the ones defined for all languages, and only for this language, e.g. |fr:syncalso=Terraria News. Similarly to above, both lists are semicolon-separated.

Furthermore, it is possible to define the target page on the language wiki for a given English page (by default, it is assumed the page title on the language wiki is identical to the one on the English wiki). Set the configuration option <langcode>:<English page name> to the target page, for instance (again, fr taken as an example): If the contents of the page Recipes/Altar/register should be copied to fr:Recettes/Autel/register instead of fr:Recipes/Altar/register, use the configuration option fr:Recipes/Altar/register=Recettes/Autel/register. This can be done with any page that is in the set of pages to sync, including members of each category from categories and also the respective language's syncalso, and not in the syncnot.

Current configuration

The current configuration will cause the pages listed below to be synced.

Wikis:
  • fr (French)
  • ru (Russian)

fr (431)

ru (405)