Template:CrewHistory-Subpages: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (Attempt to fix Operations #1)
(Attempt to fix Operations #2)
Line 8: Line 8:
{{#if:{{{NO MEDICAL|}}}||{{!}}style{{=}}"background:#{{#if:{{{PICARDUNI|}}}|0087BD|0087BD}}" align{{=}}center{{!}}[[{{{SHIP}}} Crew History/Medical Division{{!}}<font color="white">Medical Division</font>]]|}}
{{#if:{{{NO MEDICAL|}}}||{{!}}style{{=}}"background:#{{#if:{{{PICARDUNI|}}}|0087BD|0087BD}}" 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:{{{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>]]|}}
{{#if:{{{DIPLO|}}}|{{!}}style{{=}}"background:{{#if:{{{DIPLORED|}}}|red|violet}}" align{{=}}center{{!}}[[{{{SHIP}}} Crew History/Diplomacy Division{{!}}<font color="white">Diplomacy Division</font>]]|}}

Revision as of 07:09, 21 July 2020

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:

{{CrewHistory-Subpages|SHIP=Veritas|NO MEDICAL=Yes}}
{{Post|Silver|Select a Division Subpage}}
{{CrewHistory End}}
{{ID subpages note}}
Veritas Crew History
Command Division Sciences Division Operations Division


Civilian Contingent
Insignia Rank Portrait Name Dates Notes
Select a Division Subpage

This page incorporates information from character ID subpages. More information about how to use them is available here.

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.