Example:
- The configuration says ;Information:Information|@Description=Beschreibung
- The source wikitext contains {{Information|Beschreibung=Beispiel}}
- The result should be {{Information|Description={{de|Beispiel}}}}
- The language should match the default content language of the source wiki. Ideally, this value is already somewhere in the API request already made. For an MVP it might be enough to simply use the third-level domain, e.g. de.wikipedia.org becomes {{de|…}}.
Acceptance Criteria
In the transfer section of the config files
- if a parameter is preceded by an @ sign, wikitext will be changed so that the contents of the parameter is marked as being in the language the file is from (see example :) )
Notes
Possible follow-up tasks:
- Make sure the target wiki actually contains a template with the language code. E.g. {{de|…}} should only be used if commons.wikimedia.org/wiki/Template:de actually exists. (Can be a redirect.) If one doesn't exist, don't fall back to {{en|…}}, but don't insert any language template.
Where this request was mentioned
https://www.mediawiki.org/wiki/Topic:Uu69id3hhb5tqqiy