You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Navigate to _Special:Version_ on your wiki and verify that the package
41
41
have been successfully installed.
42
42
43
43
## Usage
44
44
45
-
The parser function `{{INTERLANGUAGELINK: language code | interlanguage reference }}` (or `{{interlanguagelink: ...}}`) provides in-text annotation support with the first argument being a language code (e.g `es`, `ja`) while the second argument contains an arbitrary reference (`interlanguage reference`) that describes similar content for different languages.
45
+
The parser function `{{interlanguagelink: language code | interlanguage reference }}` provides in-text annotation support with the first argument being a language code (e.g `es`, `ja`) while the second argument contains an arbitrary reference (`interlanguage reference`) that describes similar content for different languages.
The parser function `{{INTERLANGUAGELIST: interlanguage reference | template }}` can generate a customizable language target link list for the selected `interlanguage reference` to be available as wikitext inclusion using a template with the following parameters:
49
+
The parser function `{{interlanguagelist: interlanguage reference | template }}` can generate a customizable language target link list for the selected `interlanguage reference` to be available as wikitext inclusion using a template with the following parameters:
50
50
-`target-link` being the target link
51
51
-`lang-code` the language code
52
52
-`lang-name` representing the localized language name for the language code
@@ -66,7 +66,7 @@ Page: Foo
66
66
Lorem ipsum dolor sit amet, sale lucilius id mei, pri id prima legendos, at
67
67
vix tantas habemus tincidunt.
68
68
69
-
{{INTERLANGUAGELINK:la|Lorem ipsum}}
69
+
{{interlanguagelink:la|Lorem ipsum}}
70
70
```
71
71
```text
72
72
Page:Bar
@@ -79,7 +79,7 @@ Page:Bar
79
79
80
80
#### List languages
81
81
82
-
Using `Template:InterlanguageLinksTemplate` in `INTERLANGUAGELIST` will output all available links to the `Lorem ipsum` reference on top of the page `FooBar`.
82
+
Using `Template:InterlanguageLinksTemplate` in `interlanguagelist` will output all available links to the `Lorem ipsum` reference on top of the page `FooBar`.
`$GLOBALS['egSILCacheType'] = CACHE_ANYTHING;` is being set to be the default value to improve query lookups during each page view with cache invalidation being carried out during any delete, change or move action.
108
-
109
-
In case `$GLOBALS['wgHideInterlanguageLinks']` is enabled (set to `true`), no sitelinks or annotations are created.
107
+
-`$GLOBALS['egSILCacheType'] = CACHE_ANYTHING;` is being set to be the default value to improve query lookups during each page view with cache invalidation being carried out during any delete, change or move action.
108
+
-`$GLOBALS['wgHideInterlanguageLinks']` is enabled (set to `true`), no sitelinks or annotations are created (in order to correspond to the MW default behaviour for interwiki links)
0 commit comments