Template:GroupLink
This template attempts to find a suitable article to link to, given the name of a key group. When working with English-language articles, the following article titles are considered in turn:
- Group:Group
- Group
If an article with one of these names exists, the group name is generated, linked to the first existing article in the list; if no articles exist with these names, the group name is generated with no linking.
When working with non-English articles, the following article titles are considered in turn:
- Lang:Group:Group
- Group:Group
- Lang:Group
- Group
In looking for articles and displaying the Group name, the first letter of that name is always folded to upper case.
The language code passed in the lang=Lang parameter is not case-significant. The effective link will be normalized by MediaWiki (uppercase only for DE|ES|FR|IT|JA|NL|RU namespaces, otherwise lowercase with an initial uppercase for all other language codes).
Usage
Examples
| This wikitext: | looks for the following pages: | and produces: |
|---|---|---|
{{GroupLink
| group = properties
| lang = en
}}
|
|
properties |
{{GroupLink
| group = properties
| lang = de
}}
|
|
properties |
{{GroupLink
| group = properties
| lang =
}}
|
|
properties |
{{GroupLink
| group = properties
}}
|
|
properties |
{{GroupLink
| group = emergency
| lang = en
}}
|
|
emergency |
{{GroupLink
| group = emergency
| lang = de
}}
|
|
emergency |
{{GroupLink
| group = emergency
| lang = EN
}}
|
|
emergency |
{{GroupLink
| group = emergency
| lang = DE
}}
|
|
emergency |
{{GroupLink
| group = transport
| lang = en
}}
|
|
transport |
{{GroupLink
| group = transport
| lang = de
}}
|
|
transport |
{{GroupLink
| group = buildings
| lang = IT
}}
|
|
buildings |
{{GroupLink
| group = buildings
| lang = cs
}}
|
|
buildings |
{{GroupLink
| group = Koleje
| lang = pl
}}
|
|
Koleje |