Difference between revisions of "Template:Admin"
(De-hardcodes the feedback formatting for future-proofing and pre-emptive fixing, as the admin page didn't follow the format anyhow. I'm not even sure how it was working all this time. Also listed all ranks with switch functionality.) |
(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.) |
||
Line 13: | Line 13: | ||
| #default = color: #9b59b6; | | #default = color: #9b59b6; | ||
}} font-weight: bold; padding: 2px 3px; border-radius: 3px;"> | }} font-weight: bold; padding: 2px 3px; border-radius: 3px;"> | ||
− | {{#switch: {{{ | + | {{#switch: {{{Icon}}} |
| 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]] | ||
Line 27: | Line 27: | ||
| #default = [[File:Font Awesome 5 solid star.svg|16px]] | | #default = [[File:Font Awesome 5 solid star.svg|16px]] | ||
}} | }} | ||
− | {{{Name|No name provided}}}</span> • {{{Rank|GameAdmin}}} {{#if: {{{Feedback|}}} | • [{{{Feedback}}} Feedback Thread]}} {{#if: {{{Note|}}} | • ''{{{Note}}}''}} | + | {{{Name|No name provided}}}</span> • {{#ifeq: {{{Rank}}} | {{{Icon}}} | {{{Rank|GameAdmin}}} | {{{Rank}}} + {{{Icon}}}}} {{#if: {{{Feedback|}}} | • [{{{Feedback}}} Feedback Thread]}} {{#if: {{{Note|}}} | • ''{{{Note}}}''}} |
<noinclude>This template is meant as a way to quickly list an administrator and relevant links. | <noinclude>This template is meant as a way to quickly list an administrator and relevant links. | ||
Line 47: | Line 47: | ||
|Name=JoeAdmin | |Name=JoeAdmin | ||
|Rank=GameAdmin | |Rank=GameAdmin | ||
+ | |Icon=GameAdmin | ||
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}</pre> | |Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}</pre> | ||
Line 53: | Line 54: | ||
|Name=JoeAdmin | |Name=JoeAdmin | ||
|Rank=GameAdmin | |Rank=GameAdmin | ||
+ | |Icon=GameAdmin | ||
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}} | |Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}} | ||
+ | |||
+ | 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: | ||
+ | <pre> | ||
+ | {{Admin | ||
+ | |Name=san7890 | ||
+ | |Rank=GameMaster | ||
+ | |Icon=Maptainer | ||
+ | |Feedback=https://tgstation13.org/phpBB/viewtopic.php?t=30403 | ||
+ | }}</pre> | ||
+ | |||
+ | ...yields: | ||
+ | {{Admin | ||
+ | |Name=san7890 | ||
+ | |Rank=GameMaster | ||
+ | |Icon=Maptainer | ||
+ | |Feedback=https://tgstation13.org/phpBB/viewtopic.php?t=30403 | ||
+ | }} | ||
+ | |||
+ | 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: | And default rank: | ||
Line 69: | Line 90: | ||
|Name=Maintainer | |Name=Maintainer | ||
|Rank=Maintainer | |Rank=Maintainer | ||
+ | |Icon=Maintainer | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=Spritetainer | |Name=Spritetainer | ||
|Rank=Spritetainer | |Rank=Spritetainer | ||
+ | |Icon=Spritetainer | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=Maptainer | |Name=Maptainer | ||
|Rank=Maptainer | |Rank=Maptainer | ||
+ | |Icon=Maptainer | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=AdminObserver | |Name=AdminObserver | ||
|Rank=AdminObserver | |Rank=AdminObserver | ||
+ | |Icon=AdminObserver | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=TrialAdmin | |Name=TrialAdmin | ||
|Rank=TrialAdmin | |Rank=TrialAdmin | ||
+ | |Icon=TrialAdmin | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=GameAdmin | |Name=GameAdmin | ||
|Rank=GameAdmin | |Rank=GameAdmin | ||
+ | |Icon=GameAdmin | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=AdminTrainer | |Name=AdminTrainer | ||
|Rank=AdminTrainer | |Rank=AdminTrainer | ||
+ | |Icon=AdminTrainer | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=GameMaster | |Name=GameMaster | ||
|Rank=GameMaster | |Rank=GameMaster | ||
+ | |Icon=GameMaster | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=HeadAdmin | |Name=HeadAdmin | ||
|Rank=HeadAdmin | |Rank=HeadAdmin | ||
+ | |Icon=HeadAdmin | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=HeadCoder | |Name=HeadCoder | ||
|Rank=HeadCoder | |Rank=HeadCoder | ||
+ | |Icon=HeadCoder | ||
}} | }} | ||
{{Admin | {{Admin | ||
|Name=Host | |Name=Host | ||
|Rank=Host | |Rank=Host | ||
+ | |Icon=Host | ||
}} | }} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 21:23, 16 September 2022
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 |Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}
...yields: Hornygranny • head + {{{Icon}}} • Feedback Thread
{{Admin |Name=JoeAdmin |Rank=GameAdmin |Icon=GameAdmin |Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}
...yields: 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: 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: Shaps • {{{Rank}}} + {{{Icon}}} • Feedback Thread