Template:Sidebar Collapse

From 118Wiki
Revision as of 20:48, 12 July 2021 by Noa T'Nessa Levinson (talk | contribs) (Initial creation of template (+ documentation))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Creates a collapsible table adjusted for use with the two commonly used sidebar templates and their variants, as well as the various racks templates.


Basic Usage

Use the TITLE parameter to specify the collapsible's title, and paste the entire code for the racks you wish to collapse together.

For example, the following code:

{{Sidebar Collapse|TITLE=Badges & Coins
|{{Badge Rack
|Awards Ceremony Nominator|2
|Chat Trivia Participant|2
|To Boldly Go|2
}}
{{Coin Rack
|Per Aspera Ad Astra
}}
}}

produces the following result in a sidebar:

USS Chin'toka
Lt Noa.png
PICstyle-lt blue.png
PICstyle-end blue.png
Noa T'Nessa Levinson
Position Chief Science Officer
Rank Lieutenant
Species Human (3/4) / Vulcan (1/4)
Gender Female
DOB 237310.04
Age 28
Birthplace Starbase 295
Writer ID E239701NL0
Badges & Coins
Badges
Awards Ceremony Nominator
Badge 2.png
Chat Trivia Participant
Badge 2.png
To Boldly Go
Badge 2.png
Commemorative Coins
Per Aspera Ad Astra Commemorative Coin.png


Hiding the horizontal line

By default, the template generates a horizontal line after the table. If you prefer to hide it, you can specify the optional NOLINE parameter and give it any value:

{{Sidebar Collapse|TITLE=Badges & Coins|NOLINE=yes
|{{Badge Rack
|Awards Ceremony Nominator|2
|Chat Trivia Participant|2
|To Boldly Go|2
}}
{{Coin Rack
|Per Aspera Ad Astra
}}
}}

which produces the following result:

USS Chin'toka
Lt Noa.png
PICstyle-lt blue.png
PICstyle-end blue.png
Noa T'Nessa Levinson
Position Chief Science Officer
Rank Lieutenant
Species Human (3/4) / Vulcan (1/4)
Gender Female
DOB 237310.04
Age 28
Birthplace Starbase 295
Writer ID E239701NL0
Badges & Coins
Badges
Awards Ceremony Nominator
Badge 2.png
Chat Trivia Participant
Badge 2.png
To Boldly Go
Badge 2.png
Commemorative Coins
Per Aspera Ad Astra Commemorative Coin.png


Full sidebar example

USS Chin'toka
Lt Noa.png
PICstyle-lt blue.png
PICstyle-end blue.png
Noa T'Nessa Levinson
Position Chief Science Officer
Rank Lieutenant
Species Human (3/4) / Vulcan (1/4)
Gender Female
DOB 237310.04
Age 28
Birthplace Starbase 295
Writer ID E239701NL0
Awards & Service Ribbons
Awards
Awards General Neelix 2011.jpg
Awards Special Xalor 2011.jpg
Awards General GenesisAward 2011.jpg
Awards General 1Year.jpg
Awards Special Sarpeidon 2011.jpg


Neelix Award
Xalor Clan Xifilis Award
Genesis Award
1-year Member
Sarpeidon Award

Service Ribbons
Awards ServiceRibbons Graduate.jpg
Award-goldstar.png
Awards ServiceRibbons JointMeritoriousUnit 2011.jpg
Award-goldstar.png
Awards ServiceRibbons FirstContact 2011.jpg
Award-goldstar.png
Awards ServiceRibbons Explorers 2011.jpg
Award-goldstar.png
Maiden Voyage Ribbon.png
Awards ServiceRibbons PurpleHeart 2011.jpg
Awards ServiceRibbons GoodConduct 2011.jpg
Award-goldstar.png
Awards ServiceRibbons diplomacyribbon 2014.jpg
Scientific Discovery Ribbon.png
Operation Safe Harbor Service Medal.png
Awards ServiceRibbons SilverStar 2011.jpg


Starfleet Academy Graduate Ribbon
Joint Meritorious Unit Award
First Contact Ribbon
Explorer's Ribbon
Maiden Voyage Ribbon
Purple Heart
Good Conduct Ribbon
Diplomacy Ribbon
Scientific Discovery Ribbon
Operation Safe Harbor Service Medal
Silver Star


Player Achievements
Player Achievements
Eagle
Friends in high places
Minion
What's up, doc?
Penny for your thoughts
It's all in the details
A face for the name
That was awkward
Chin'toka
Follow up appointment
A head full of dreams
Data hound
Under warranty
Chatterbox

Badges & Coins
Badges
Awards Ceremony Nominator
Badge 2.png
Chat Trivia Participant
Badge 1.png
To Boldly Go
Badge 2.png
Commemorative Coins
Per Aspera Ad Astra Commemorative Coin.png

Academy TranscriptSFA-Science.png
USS Chin'toka-logo.png


Any questions or suggestions?

Contact Adingo, either via the wiki or on Discord!