Template:Amity Headshot: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
{| style=""
{| style=""


| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: {{ #switch: {{{DEPT}}} | #default = grey | Command = firebrick | Ops = goldenrod | Science = steelblue | FDC = darkslategrey }};" | {{ #if: {{{IDNAME}}} | <div id="inner" style="position: relative; left: -2px; top: -4px; background-color: black;">{{:{{{IDNAME}}}/ID|TEMPLATE=Member Portrait-100}}</div> }}
| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: {{ #switch: {{{4}}} | #default = grey | Command = firebrick | Ops = goldenrod | Science = steelblue | FDC = darkslategrey }};" | {{ #if: {{{3}}} | <div id="inner" style="position: relative; left: -2px; top: -4px; background-color: black;">{{:{{{3}}}/ID|TEMPLATE=Member Portrait-100}}</div> }}
|-
|-
| style="background-color:{{ #switch: {{{DEPT}}} | #default = grey | Command = firebrick | Ops = goldenrod | Science = steelblue | FDC = darkslategrey }}; color: white; text-align: center; font-size: smaller;" | {{ #if: {{{SHORT}}} | '''{{{SHORT}}}''' | '''{{{NAME}}}''' }}
| style="background-color:{{ #switch: {{{4}}} | #default = grey | Command = firebrick | Ops = goldenrod | Science = steelblue | FDC = darkslategrey }}; color: white; text-align: center; font-size: smaller;" | {{ #if: {{{2}}} | '''{{{2}}}''' | '''{{{1}}}''' }}
|}
|}
{{ #switch: {{{POST}}} | CO | Officer | Enlisted = <div style="width: 73px; height: 0; margin-left: 2px; border: 2px solid {{ #switch: {{{DEPT}}} | #default = grey | Command = firebrick | Ops = goldenrod | Science = steelblue | FDC = darkslategrey }};"></div> | }}
{{ #switch: {{{5}}} | CO | Officer | Enlisted = <div style="width: 73px; height: 0; margin-left: 2px; border: 2px solid {{ #switch: {{{4}}} | #default = grey | Command = firebrick | Ops = goldenrod | Science = steelblue | FDC = darkslategrey }};"></div> | }}
{{ #switch: {{{POST}}} | CO | Officer = <div style="margin-top: 2px; width: 73px; height: 0; margin-left: 2px; border: 2px solid {{ #switch: {{{DEPT}}} | #default = grey | Command = firebrick | Ops = goldenrod | Science = steelblue | FDC = darkslategrey }};"></div> | }}
{{ #switch: {{{5}}} | CO | Officer = <div style="margin-top: 2px; width: 73px; height: 0; margin-left: 2px; border: 2px solid {{ #switch: {{{4}}} | #default = grey | Command = firebrick | Ops = goldenrod | Science = steelblue | FDC = darkslategrey }};"></div> | }}
{{ #switch: {{{POST}}} | CO = <div style="margin-top: 2px; width: 73px; height: 0; margin-left: 2px; border: 2px solid firebrick;"></div> | }}
{{ #switch: {{{5}}} | CO = <div style="margin-top: 2px; width: 73px; height: 0; margin-left: 2px; border: 2px solid firebrick;"></div> | }}
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
Line 24: Line 24:
}}
}}
</pre>
</pre>
{{Amity Headshot
| NAME = Kivik Altik-Nerun
| SHORT = Kivik
| IDNAME = Kivik
| DEPT = Science
| POST = Officer
}}
{{Amity Headshot
| NAME = Kivik Altik-Nerun
| SHORT = Kivik
| IDNAME = Kivik
| DEPT = Science
| POST = Officer
}}
{{Amity Headshot
{{Amity Headshot
| NAME = Kivik Altik-Nerun
| NAME = Kivik Altik-Nerun
Line 67: Line 53:
}}
}}
{{Clear}}
{{Clear}}
===Stacking & Simplified Syntax===
<pre>
{{Amity Headshot||Rahman|Roshanara Rahman|Command|CO}}
{{Amity Headshot||Kivik|Kivik|Science|Officer}}
{{Amity Headshot||Ukinix|Wil Ukinix|Command|Officer}}
</pre>
{{Amity Headshot||Rahman|Roshanara Rahman|Command|CO}}
{{Amity Headshot||Kivik|Kivik|Science|Officer}}
{{Amity Headshot||Ukinix|Wil Ukinix|Command|Officer}}
</noinclude>
</noinclude>

Revision as of 00:34, 15 June 2022

Usage Notes

Basic Syntax w/ Example

{{Amity Headshot
| NAME = Kivik Altik-Nerun
| SHORT = Kivik
| IDNAME = Kivik
| DEPT = Science
| POST = Officer
}}
{{:{{{3}}}/ID|TEMPLATE=Member Portrait-100}}
{{{2}}}


Department & Post

You can change DEPT to either Command, Science, Ops, or FDC. This will affect the colour scheme.

You can change POST to either CO, Officer, Enlisted, or Civilian. This will affect the number of bars displayed.

{{Amity Headshot
| NAME = Niarivi Vataix
| SHORT = Vataix
| IDNAME = Rivi Vataix
| DEPT = FDC
| POST = CO
}}
{{:{{{3}}}/ID|TEMPLATE=Member Portrait-100}}
{{{2}}}


Stacking & Simplified Syntax

{{Amity Headshot||Rahman|Roshanara Rahman|Command|CO}}
{{Amity Headshot||Kivik|Kivik|Science|Officer}}
{{Amity Headshot||Ukinix|Wil Ukinix|Command|Officer}}
Rahman-Official-Portrait-2397.png
Rahman


Kivik-V2.png
Kivik


WilUkinix.png
Ukinix