Template:SIMNav: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
(adding switch for font colors)
Line 1: Line 1:
<includeonly>{| class="table" id="toc" style="margin: 0.5em auto; clear: both; border-radius: 10px 10px 10px 10px; text-align: center; background:#{{FIBGColor|{{{Color}}}}}"
<includeonly>{| class="table" id="toc" style="margin: 0.5em auto; clear: both; border-radius: 10px 10px 10px 10px; text-align: center; background:#{{FIBGColor|{{{Color}}}}}"
|-
|-
| width="30%"| <font color=#ffcc99>Previous sim<br>{{#if: {{{PrevSIM|}}}|[[{{{PrevSIM}}}|{{{PrevTitle}}}]]|N/A}}</font>
| width="30%"| <font color={{#switch: {{{Color|}}}|Orange=black|Gold=black|White=black|{{{Color|}}}=white||}}>Previous sim<br>{{#if: {{{PrevSIM|}}}|[[{{{PrevSIM}}}|<font color={{#switch: {{{Color|}}}| Orange=navy|Gold=navy|White=steelblue|{{{Color|}}}=#efe576||}}>>{{{PrevTitle}}}</font>]]|N/A}}</font>
| width="40%"| <font color=#ffcc99>'''{{{Rank}}} [[{{{LastName|}}}, {{{FirstName|}}}|<font color=6699cc>{{{FirstName|}}} {{{LastName|}}}</font>]]'''<br />'''{{{Post|}}}'''<br />'''''[[{{{Ship|}}}|<font color=6699cc>{{{Ship|}}}</font>]]'' {{{ShipReg|}}}'''</font>
| width="40%"| <font color={{#switch: {{{Color|}}}|Orange=black|Gold=black|White=black|{{{Color|}}}=white||}}>'''{{{Rank}}} [[{{{LastName|}}}, {{{FirstName|}}}|<font color={{#switch: {{{Color|}}}| Orange=navy|Gold=navy|White=steelblue|{{{Color|}}}=#efe576||}}>>{{{FirstName|}}} {{{LastName|}}}</font>]]'''<br />'''{{{Post|}}}'''<br />'''''[[{{{Ship|}}}|<font color=6699cc>{{{Ship|}}}</font>]]'' {{{ShipReg|}}}'''</font>
| width="30%"| <font color=#ffcc99>Next sim<br />{{#if: {{{NextSIM|}}}|[[{{{NextSIM}}}|{{{NextTitle}}}]]|N/A}}</font>
| width="30%"| <font color={{#switch: {{{Color|}}}|Orange=black|Gold=black|White=black|{{{Color|}}}=white||}}Next sim<br />{{#if: {{{NextSIM|}}}|[[{{{NextSIM}}}|color={{#switch: {{{Color|}}}| Orange=navy|Gold=navy|White=steelblue|{{{Color|}}}=#efe576||}}>>{{{NextTitle}}}</font>]]|N/A}}</font>
|}</includeonly><noinclude>A template for navigating through various SIMs in chronological order. To use, type the following at the bottom of your SIM Archive Page:
|}</includeonly><noinclude>A template for navigating through various SIMs in chronological order. To use, type the following at the bottom of your SIM Archive Page:
<pre>{{SIMNav
<pre>{{SIMNav

Revision as of 03:51, 8 August 2014

A template for navigating through various SIMs in chronological order. To use, type the following at the bottom of your SIM Archive Page:

{{SIMNav
| Color = your character's department color (Red, Orange, Gold, Green, Teal, Blue, Violet, Black, Silver, & White available)
| Rank = character's rank
| FirstName = Jane
| LastName = Doe
| Post = character's job
| Ship = ship name (e.g. USS Enterprise)
| ShipReg = ship registry number (e.g. NCC-1701)
| PrevSIM = page name of the preceding SIM (e.g. SIM: Ens. Doe - "Before Now") - (if non exists, leave blank)
| PrevTitle = shorter name for the link ( e.g. "Before Now") - (if non exists, leave blank)
| NextSIM  = page name of the following SIM (e.g. SIM: Ens. Doe - "After Now") - (if non exists, leave blank)
| NextTitle = shorter name for the link ( e.g. "After Now") - (if non exists, leave blank)
}}

Examples

With other sims listed

Previous sim
>"Before Now"
Ensign >Jane Doe
Turbolift Janitor
USS Steampunk NCC-ID10T
<font color=blackNext sim
color=navy>>"After Now"

Without other sims listed

Previous sim
N/A
Ensign >Jane Doe
Turbolift Janitor
USS Steampunk NCC-ID10T
<font color=blackNext sim
N/A