Template:Wiki admin

来自Terraria Wiki
跳到导航 跳到搜索
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Wiki admin/l10n for the localization of this template.
Template-info.svg 文档 以下文档来自Template:Wiki admin/doc。(编辑 | 历史

This template is used to manage the display of administrators, moderators, etc. on Terraria Wiki:List of administrators.

Usage

The template has two modes, user registration and user display. The first mode is used to store information about a user, while the second mode is used to display the table rows for a group of users.

User registration

{{ wiki admin | group = <group name> | active = y/yes/n/no | user = <user name> | lang = <language spoken by the user> | flag = <displayed flag> | notalk = y/yes | displaytext = <custom text> }}

group

Name of the group that the user belongs to. This can be completely custom and is referenced in the second mode.

active

Whether the user should be displayed in the section of active users or in the section of inactive users.

user

Name of the user.

lang/lang2/lang3/etc.

Language(s) spoken by the user. If this is an ISO 639-1/ISO 639-3 code that is recognized by {{langInfo}}, then the respective $flag will be set automatically. Omit this parameter if no information about the language should be displayed.

flag/flag2/flag3/etc.

ISO 3166-1 code of the country whose flag should be displayed next to the user's name. The flag's hovertext will be the language as defined by the respective $lang. Note that there might not be a flag image available for all countries and that the country code used in a flag's file name might not be the country's ISO 3166-1 code. See Category:Flags and Category:Country flags on the Commons wiki for the full list of available flag images.

notalk

Set this parameter to suppress the display of a link to the user's talk page, e.g. if they prefer other methods of communication.

displaytext

Custom text displayed in place of the user's name.

User display

{{ wiki admin | countgroup/listgroup = <group name> | active = y/yes/n/no }}

countgroup

If this parameter is set, the template will display the number of users in the specified group.

listgroup

If this parameter is set, the template will display a table row for each user in the specified group. The users are sorted alphabetically and duplicate names are discarded.

active

Whether to consider users registered as active or inactive.

Examples

Code Result
{{wiki admin|group=sysop|active=y|user=ActiveAdmin1}}
{{wiki admin|group=sysop|active=n|user=InactiveAdmin|lang=ja}}
{{wiki admin|group=sysop|active=y|user=activeAdmin2|notalk=y|lang=en|flag=za}}
{{wiki admin|group=moderator|active=y|user=ActiveMod|lang=Esperanto|flag=europeanunion|lang2=it|lang3=pt|flag3=br}}



{{wiki admin|countgroup=sysop|active=y}} 2
{{wiki admin|countgroup=sysop|active=n}} 1
{{wiki admin|countgroup=moderator|active=y}} 1
{{wiki admin|countgroup=moderator|active=n}} 0
{|
{{wiki admin|listgroup=sysop|active=y}}
|}
ActiveAdmin1
activeAdmin2 English
{|
{{wiki admin|listgroup=moderator|active=y}}
|}
ActiveMod EsperantoItalianPortuguese