Fandom Developers Wiki
Advertisement

I18nLink is a script that adds link to translations pages, both Lua and JS. It also adds a button to quickly create translation pages.

It has been created for usage only on Fandom Developers Wiki.

Installation

Configuration

There are two configuration options, both stored under the window.I18nLink variable. The create variable is by default true; when false, it disables the quick create buttons. The buttons variable can be used to add links to translation pages with different ?action parameters, such as delete. Here is an example configuration:

window.I18nLink = {
    create: false
    buttons: [
        'delete',
        'edit',
        'raw'
    ]
}

Changelog

Version Date Description Author
v1.0 19 August 2018 Initial revision.

Load only if a JSON page for a certain script exists.

Rail

TheGoldenPatrik1

v1.1 3 September 2018 Add optional button to quickly create JSON. TheGoldenPatrik1
v1.2 19 November 2018 Add support for Lua. TheGoldenPatrik1
v1.3 23 November 2018 I18n-js and support for Module and MediaWiki pages. TheGoldenPatrik1
v1.4 2 December 2018 Optimization. TheGoldenPatrik1
v1.5 8 December 2018 Add optional create Lua button and change configuration options. TheGoldenPatrik1
v1.6 10 December 2018 Add more configuration options. TheGoldenPatrik1
Text above can be found here (edit)
Advertisement