Template:Amity Headshot: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{| id="container"" style="float:left; display:block;" | <includeonly><span style="text-indent: 50px;">{| id="container"" style="float:left; display:block;" | ||
| 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: {{{2}}} | <div id="inner" style="position: relative; left: -12px; top: -4px; background-color: black;">{{:{{{2}}}/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: {{{2}}} | <div id="inner" style="position: relative; left: -12px; top: -4px; background-color: black;">{{:{{{2}}}/ID|TEMPLATE=Member Portrait-100}}</div> }} | ||
|- | |- |
Revision as of 16:52, 16 June 2022
Usage Notes
Expanded Syntax w/ Example
- Post: Current options are CO, Officer, Enlisted, or Civilian (may be left blank)
- Name: The name of your character as it appears on their ID (if left blank, no image will display)
- Shortened Name: If your name is too long, include a shorter version to display (i.e. last name only)
- Department: Current options are Command, Science, Ops, or FDC (may be left blank)
- Syntax is the same as for the "Headshot" Template (with the addition of 4: Department.
Note: Be sure to include a CLEAR Template under sections of Headshots to avoid formatting issues! (See in examples below)...
{{Amity Headshot | 1 = Officer | 2 = Kivik | 3 = | 4 = Science }} {{Clear}}
Yields... {| id="container"" style="float:left; display:block;"
| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: steelblue;" |
|- | style="background-color:steelblue; color: white; text-align: center; font-size: smaller;" | Kivik |- | style ="height: 4px; background-color: steelblue;" | |- | style ="height: 4px; background-color: steelblue;" | |- | style ="height: 4px; background-color: grey;" | |}
Department & Post
You can change 4 (Department) to either Command, Science, Ops, or FDC. This will affect the colour scheme.
You can change 5 (Post) to either CO, Officer, Enlisted, or Civilian. This will affect the number of bars displayed.
{{Amity Headshot | 1 = CO | 2 = Rivi Vataix | 3 = Vataix | 4 = FDC }}
Yields... {| id="container"" style="float:left; display:block;"
| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: darkslategrey;" |
|- | style="background-color:darkslategrey; color: white; text-align: center; font-size: smaller;" | Vataix |- | style ="height: 4px; background-color: darkslategrey;" | |- | style ="height: 4px; background-color: darkslategrey;" | |- | style ="height: 4px; background-color: firebrick;" | |}
Stacking & Simplified Syntax
{{Amity Headshot|CO|Roshanara Rahman|Rahman|Command}} {{Amity Headshot|Officer|Wil Ukinix|W. Ukinix|Command}} {{Amity Headshot|Enlisted|Annamae Barberra|Barberra|Command}} {{Amity Headshot|Officer|Kivik||Science}} {{Amity Headshot|Officer|Scotty Reade|Reade|Ops}} {{Amity Headshot||Arthur Summerside|Summerside}} {{Clear}}
Yields... {| id="container"" style="float:left; display:block;"
| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: firebrick;" |
|- | style="background-color:firebrick; color: white; text-align: center; font-size: smaller;" | Rahman |- | style ="height: 4px; background-color: firebrick;" | |- | style ="height: 4px; background-color: firebrick;" | |- | style ="height: 4px; background-color: firebrick;" | |} {| id="container"" style="float:left; display:block;"
| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: firebrick;" |
|- | style="background-color:firebrick; color: white; text-align: center; font-size: smaller;" | W. Ukinix |- | style ="height: 4px; background-color: firebrick;" | |- | style ="height: 4px; background-color: firebrick;" | |- | style ="height: 4px; background-color: grey;" | |} {| id="container"" style="float:left; display:block;"
| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: firebrick;" |
|- | style="background-color:firebrick; color: white; text-align: center; font-size: smaller;" | Barberra |- | style ="height: 4px; background-color: firebrick;" | |- | style ="height: 4px; background-color: grey;" | |- | style ="height: 4px; background-color: grey;" | |} {| id="container"" style="float:left; display:block;"
| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: steelblue;" |
|- | style="background-color:steelblue; color: white; text-align: center; font-size: smaller;" | Kivik |- | style ="height: 4px; background-color: steelblue;" | |- | style ="height: 4px; background-color: steelblue;" | |- | style ="height: 4px; background-color: grey;" | |} {| id="container"" style="float:left; display:block;"
| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: goldenrod;" |
|- | style="background-color:goldenrod; color: white; text-align: center; font-size: smaller;" | Reade |- | style ="height: 4px; background-color: goldenrod;" | |- | style ="height: 4px; background-color: goldenrod;" | |- | style ="height: 4px; background-color: grey;" | |} {| id="container"" style="float:left; display:block;"
| id="outer" style="display: inline-block; width: 75px; height: 75px; overflow: hidden; display: inline-block; border-radius: 25% 25% 0 0; background-color: grey;" |
|- | style="background-color:grey; color: white; text-align: center; font-size: smaller;" | Summerside |- | style ="height: 4px; background-color: grey;" | |- | style ="height: 4px; background-color: grey;" | |- | style ="height: 4px; background-color: grey;" | |}