Template:GroupLink/doc
![]() |
This is a documentation subpage for Template:GroupLink. It contains usage information, categories and other content that is not part of the original template page. |
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 |