Template:CrewHistory-Subpages: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (Reverted edits by Sky Blake (talk) to last revision by Ceciri)
Tag: Rollback
(Attempt to fix Operations #4)
Line 5: Line 5:
{| style="width:100%" align=center
{| style="width:100%" align=center
|style="background:maroon" align=center|[[{{{SHIP}}} Crew History/Command Division|<font color="white">Command Division</font>]]
|style="background:maroon" align=center|[[{{{SHIP}}} Crew History/Command Division|<font color="white">Command Division</font>]]
|style="background:#{{#if:{{{PICARDUNI|}}}|0080ff|008482}}" align=center|[[{{{SHIP}}} Crew History/Sciences Division|<font color="white">Sciences Division</font>]]
|style="background:#008482" align=center|[[{{{SHIP}}} Crew History/Sciences Division|<font color="white">Sciences Division</font>]]
{{#if:{{{NO MEDICAL|}}}||{{!}}style{{=}}"background:#{{#if:{{{PICARDUNI|}}}|0080ff|008482}}" align{{=}}center{{!}}[[{{{SHIP}}} Crew History/Medical Division{{!}}<font color="white">Medical Division</font>]]}}
{{#if:{{{NO MEDICAL|}}}||{{!}}style{{=}}"background:#008482" align{{=}}center{{!}}[[{{{SHIP}}} Crew History/Medical Division{{!}}<font color="white">Medical Division</font>]]}}
|style="background:darkgoldenrod" align=center|[[{{{SHIP}}} Crew History/Operations Division|<font color="white">Operations Division</font>]]
|style="background:darkgoldenrod" align=center|[[{{{SHIP}}} Crew History/Operations Division|<font color="white">Operations Division</font>]]
{{#if:{{{MARINE|}}}|{{!}}style{{=}}"background:darkgreen" align{{=}}center{{!}}[[{{{SHIP}}} Crew History/Marine Regiment{{!}}<font color="white">Marine Regiment</font>]]|}}
{{#if:{{{MARINE|}}}|{{!}}style{{=}}"background:darkgreen" align{{=}}center{{!}}[[{{{SHIP}}} Crew History/Marine Regiment{{!}}<font color="white">Marine Regiment</font>]]|}}
{{#if:{{{INTEL|}}}|{{!}}style{{=}}"background:{{#if:{{{INTELRED|}}}|red|black}}" align{{=}}center{{!}}[[{{{SHIP}}} Crew History/Intelligence Division{{!}}<font color="white">Intelligence Division</font>]]|}}
{{#if:{{{DIPLO|}}}|{{!}}style{{=}}"background:{{#if:{{{DIPLORED|}}}|red|violet}}" align{{=}}center{{!}}[[{{{SHIP}}} Crew History/Diplomacy Division{{!}}<font color="white">Diplomacy Division</font>]]|}}
|style="background:#606060" align=center|[[{{{SHIP}}} Crew History/Civilian Contingent|<font color="white">Civilian Contingent</font>]]
|style="background:#606060" align=center|[[{{{SHIP}}} Crew History/Civilian Contingent|<font color="white">Civilian Contingent</font>]]
|}
|}
Line 19: Line 17:
!style="background:#C0C0C0;width:175px"|<small>Name</small>
!style="background:#C0C0C0;width:175px"|<small>Name</small>
!style="background:#C0C0C0;"|<small>Dates</small>
!style="background:#C0C0C0;"|<small>Dates</small>
!style="background:#C0C0C0;width:175px"|<small>Notes</small></includeonly><noinclude>
!style="background:#C0C0C0;width:175px"|<small>Notes</small></includeonly><noinclude>Similar to [[Template:CrewHistory]] but with a menu to subpages for individual divisions.
===Usage Instructions===
This template is used to create a nav menu for history pages divided into subpages rather than one long page.
 
Usage is as follows:
<pre><nowiki>
{{CrewHistory-Subpages|SHIP=Veritas|NO MEDICAL=Yes}}
{{Post|Silver|Select a Division Subpage}}
{{CrewHistory End}}
{{ID subpages note}}
</nowiki></pre>
 
{{CrewHistory-Subpages|SHIP=Veritas|NO MEDICAL=Yes}}
{{Post|Silver|Select a Division Subpage}}
{{CrewHistory End}}
{{ID subpages note}}
 
Options that can be added, as needed:
* PICARDUNI=yes will turn science and medical to blue, to match the Picard uniform colors
* NO MEDICAL=yes removes the medical division as a separate category. Removing this will create a separate medical page
* MARINE=yes adds the marine regiment
* INTEL=yes adds the intelligence divison as a separate category. INTELRED=yes turns it red instead of black
* DIPLO=yes adds the diplomacy section as a seperate category. DIPLORED=yes turns it red instead of purple
 
Similar to [[Template:CrewHistory]] but with a menu to subpages for individual divisions.
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 07:20, 21 July 2020

Similar to Template:CrewHistory but with a menu to subpages for individual divisions.