- Parser functions contains details and usage examples
- Example
#ask
queries - Technical notes
The parser function {{interlanguagelink: ... }}
provides an interface
to declare multilingual content using semantic annotations.
{{interlanguagelink: language code | interlanguage reference }}
, the first
argument specifies the language code (e.g es
, ja
) of the content while
the second argument contains an arbitrary reference (interlanguage reference
)
that describes content of similar nature (content that should be connected to
each other) for different languages.
The parser function {{interlanguagelist: ... }}
can generate a customizable
language target link list.
- The page content language is preset with the language annotated by
interlanguagelink
together with an auto-updated sitelink navigation for pages that point to the sameinterlanguage reference
. - A set of predefined properties (
Page content language
,Interlanguage reference
,Interwiki language
,Interwiki reference
, andHas interlanguage links
) are provided and can be used to create customized#ask
queries (e.gHas interlanguage links.Page content language
). - If a category page contains a
Page content language
annotation, SIL will filter and display only pages that match that content language. In cases where no language has been assigned (or filtering has been disabled), the category page will display all pages without changes or filtering.
$silgCacheType = 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.$wgHideInterlanguageLinks
is enabled (set totrue
), no sitelinks or annotations are created (in order to correspond to the MW default behaviour for interwiki links)- If
$wgPageLanguageUseDB
was enabled andSpecial:PageLanguage
assigned a different language from the annotated SIL value then thePage content language
will be restored to provide consistency with the expected language