Template:Admin: Difference between revisions

From tgwiki2
Jump to navigation Jump to search
imported>Dragomagol
m Removed a duplicate "File:
imported>San7890
actually we can use a broom svg from Wikimedia Commons
 
(4 intermediate revisions by 2 users not shown)
Line 4: Line 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;
Line 11: Line 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;">
{{#switch: {{{Rank}}}
{{#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]]
| 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]]
Line 25: Line 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]]
}}
}}
{{{Name|No name provided}}}</span> • {{{Rank|GameAdmin}}} {{#if: {{{Feedback|}}} | • [https://tgstation13.org/phpBB/viewtopic.php?f=37&t={{{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 36: Line 40:
|Name=Hornygranny
|Name=Hornygranny
|Rank=head
|Rank=head
|Feedback=244}}</pre>
|Icon=head
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=244}}</pre>


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


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


...yields:
...yields:
Line 53: Line 60:
|Name=JoeAdmin
|Name=JoeAdmin
|Rank=GameAdmin
|Rank=GameAdmin
|Feedback=244}}
|Icon=GameAdmin
|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:
<pre>{{Admin
<pre>{{Admin
|Name=Shaps
|Name=Shaps
|Feedback=4603}}</pre>
|Feedback=https://tgstation13.org/phpBB/viewtopic.php?f=37&t=4603}}</pre>


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


===List of ranks with auto-formatting===
{{Admin
|Name=Maintainer
|Rank=Maintainer
|Icon=Maintainer
}}
{{Admin
|Name=Spritetainer
|Rank=Spritetainer
|Icon=Spritetainer
}}
{{Admin
|Name=Maptainer
|Rank=Maptainer
|Icon=Maptainer
}}
{{Admin
|Name=AdminObserver
|Rank=AdminObserver
|Icon=AdminObserver
}}
{{Admin
|Name=AdminCandidate
|Rank=AdminCandidate
|Icon=AdminCandidate
}}
{{Admin
|Name=TrialAdmin
|Rank=TrialAdmin
|Icon=TrialAdmin
}}
{{Admin
|Name=GameAdmin
|Rank=GameAdmin
|Icon=GameAdmin
}}
{{Admin
|Name=AdminTrainer
|Rank=AdminTrainer
|Icon=AdminTrainer
}}
{{Admin
|Name=GameMaster
|Rank=GameMaster
|Icon=GameMaster
}}
{{Admin
|Name=HeadAdmin
|Rank=HeadAdmin
|Icon=HeadAdmin
}}
{{Admin
|Name=HeadCoder
|Rank=HeadCoder
|Icon=HeadCoder
}}
{{Admin
|Name=Host
|Rank=Host
|Icon=Host
}}
{{Admin
|Name=RememberedForever
|Rank=RememberedForever
|Icon=RememberedForever
}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 22:25, 16 September 2022

File: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: File: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: File: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: 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: File:Font Awesome 5 solid star.svg Shaps • {{{Rank}}} + {{{Icon}}} • Feedback Thread


List of ranks with auto-formatting

File:Font Awesome 5 solid code.svg Maintainer • Maintainer


File:Font Awesome 5 solid pen.svg Spritetainer • Spritetainer


Maptainer • Maptainer


File:Font Awesome 5 solid binoculars.svg AdminObserver • AdminObserver


File:Font Awesome 5 solid broom.svg AdminCandidate • AdminCandidate


File:Font Awesome 5 solid gavel.svg TrialAdmin • TrialAdmin


File:Font Awesome 5 solid asterisk.svg GameAdmin • GameAdmin


File:Font Awesome 5 solid book-open.svg AdminTrainer • AdminTrainer


File:Font Awesome 5 solid dungeon.svg GameMaster • GameMaster


File:Font Awesome 5 solid star.svg HeadAdmin • HeadAdmin


File:Font Awesome 5 solid star.svg HeadCoder • HeadCoder


File:Font Awesome 5 solid server.svg Host • Host


RememberedForever • RememberedForever