Шаблон:Admin: различия между версиями

imported>San7890
(Updates the template to allow for mixing Icons and Ranks to allow for those fancy persons with both a rank in the codebase and an admin rank to be specially denoted. I believe background should be standard with the admin color scheme, and the icon should be the special demarkation of the codebase role.)
imported>San7890
(actually we can use a broom svg from Wikimedia Commons)
 
(не показаны 2 промежуточные версии этого же участника)
Строка 4: Строка 4:
| Maptainer = color: #FFF; background: #5ba75b;
| Maptainer = color: #FFF; background: #5ba75b;
| AdminObserver = color: #FFF; background: #3498db;
| AdminObserver = color: #FFF; background: #3498db;
| AdminCandidate = color: #FFF; background: #3498db;
| TrialAdmin = color: #FFF; background: #d05995;
| TrialAdmin = color: #FFF; background: #d05995;
| GameAdmin = color: #FFF; background: #9b59b6;
| GameAdmin = color: #FFF; background: #9b59b6;
Строка 11: Строка 12:
| HeadCoder = color: #FFF; background: #31b626;
| HeadCoder = color: #FFF; background: #31b626;
| Host = color: #FFF; background: #A00;
| Host = color: #FFF; background: #A00;
| RememberedForever = color: #FFF; background: #000;
| #default = color: #9b59b6;
| #default = color: #9b59b6;
}} font-weight: bold; padding: 2px 3px; border-radius: 3px;">
}} font-weight: bold; padding: 2px 3px; border-radius: 3px;">
Строка 16: Строка 18:
| Maintainer = [[File:Font Awesome 5 solid code.svg|16px]]
| Maintainer = [[File:Font Awesome 5 solid code.svg|16px]]
| Spritetainer = [[File:Font Awesome 5 solid pen.svg|16px]]
| Spritetainer = [[File:Font Awesome 5 solid pen.svg|16px]]
| Maptainer = [[File:LocationLogo.png|16px]]
| Maptainer = [[File:Font Awesome 6 Solid Map Marker.png|12px]]
| AdminObserver = [[File:Font_Awesome_5_solid_binoculars.svg|16px]]
| AdminObserver = [[File:Font_Awesome_5_solid_binoculars.svg|16px]]
| AdminCandidate = [[File:Font Awesome 5 solid broom.svg|16px]]
| TrialAdmin = [[File:Font Awesome 5 solid gavel.svg|16px]]
| TrialAdmin = [[File:Font Awesome 5 solid gavel.svg|16px]]
| GameAdmin = [[File:Font Awesome 5 solid asterisk.svg|16px]]
| GameAdmin = [[File:Font Awesome 5 solid asterisk.svg|16px]]
Строка 25: Строка 28:
| HeadCoder = [[File:Font Awesome 5 solid star.svg|16px]]
| HeadCoder = [[File:Font Awesome 5 solid star.svg|16px]]
| Host = [[File:Font Awesome 5 solid server.svg|16px]]
| Host = [[File:Font Awesome 5 solid server.svg|16px]]
| RememberedForever = [[File:Font Awesome 6 solid infinity white.png|16px]]
| #default = [[File:Font Awesome 5 solid star.svg|16px]]
| #default = [[File:Font Awesome 5 solid star.svg|16px]]
}}
}}
Строка 36: Строка 40:
|Name=Hornygranny
|Name=Hornygranny
|Rank=head
|Rank=head
|Icon=head
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}</pre>
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}</pre>


Строка 42: Строка 47:
|Name=Hornygranny
|Name=Hornygranny
|Rank=head
|Rank=head
|Icon=head
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}


Строка 106: Строка 112:
|Rank=AdminObserver
|Rank=AdminObserver
|Icon=AdminObserver
|Icon=AdminObserver
}}
{{Admin
|Name=AdminCandidate
|Rank=AdminCandidate
|Icon=AdminCandidate
}}
}}
{{Admin
{{Admin
Строка 141: Строка 152:
|Rank=Host
|Rank=Host
|Icon=Host
|Icon=Host
}}
{{Admin
|Name=RememberedForever
|Rank=RememberedForever
|Icon=RememberedForever
}}
}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Текущая версия от 22:25, 16 сентября 2022

Файл:Font Awesome 5 solid star.svg No name provided • {{{Rank}}} + {{{Icon}}}

This template is meant as a way to quickly list an administrator and relevant links.

Usage

{{Admin
|Name=Hornygranny
|Rank=head
|Icon=head
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}

...yields: Файл:Font Awesome 5 solid star.svg Hornygranny • head • Feedback Thread


{{Admin
|Name=JoeAdmin
|Rank=GameAdmin
|Icon=GameAdmin
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}

...yields: Файл:Font Awesome 5 solid asterisk.svg JoeAdmin • GameAdmin • Feedback Thread


Having a different Icon and Rank is handled by the template itself. If both fields are true like you saw above, the rank will autogenerate to have just that one title. However, if you mix the two like such:

{{Admin
|Name=san7890
|Rank=GameMaster
|Icon=Maptainer
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?t=30403
}}

...yields: Font Awesome 6 Solid Map Marker.png san7890 • GameMaster + Maptainer • Feedback Thread


Note that the Rank field should not be "GameMaster + Maptainer", the template will automatically generate the rank if the two fields mis-match.

And default rank:

{{Admin
|Name=Shaps
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=4603}}

...yields: Файл:Font Awesome 5 solid star.svg Shaps • {{{Rank}}} + {{{Icon}}} • Feedback Thread


List of ranks with auto-formatting

Файл:Font Awesome 5 solid code.svg Maintainer • Maintainer


Файл:Font Awesome 5 solid pen.svg Spritetainer • Spritetainer


Font Awesome 6 Solid Map Marker.png Maptainer • Maptainer


Файл:Font Awesome 5 solid binoculars.svg AdminObserver • AdminObserver


Файл:Font Awesome 5 solid broom.svg AdminCandidate • AdminCandidate


Файл:Font Awesome 5 solid gavel.svg TrialAdmin • TrialAdmin


Файл:Font Awesome 5 solid asterisk.svg GameAdmin • GameAdmin


Файл:Font Awesome 5 solid book-open.svg AdminTrainer • AdminTrainer


Файл:Font Awesome 5 solid dungeon.svg GameMaster • GameMaster


Файл:Font Awesome 5 solid star.svg HeadAdmin • HeadAdmin


Файл:Font Awesome 5 solid star.svg HeadCoder • HeadCoder


Файл:Font Awesome 5 solid server.svg Host • Host


Font Awesome 6 solid infinity white.png RememberedForever • RememberedForever