Template:Sidebar Collapse/doc: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Moving documentation to subpage)
 
(Removing unnecessary space)
Line 1: Line 1:
__NOTOC__
__NOTOC__
Creates a collapsible table adjusted for use with the two commonly used [[Template:Sidebar|sidebar]] [[Template:LCARS-Navbar|templates]] and their variants, as well as the [[Template:Ribbons Rack|various]] [[Template:Badge Rack|racks]] [[Template:Achievements Rack|templates]].
Creates a collapsible table adjusted for use with the two commonly used [[Template:Sidebar|sidebar]] [[Template:LCARS-Navbar|templates]] and their variants, as well as the [[Template:Ribbons Rack|various]] [[Template:Badge Rack|racks]] [[Template:Achievements Rack|templates]].



Revision as of 14:52, 23 June 2023

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!

Template Data

Adds a small collapsible table intended for use inside the major sidebar templates, for compacting large racks.

Template parameters

ParameterDescriptionTypeStatus
TitleTITLE

The title for the table. Can be any short text.

Example
Awards & Service Ribbons
Linerequired
Remove the separator line?NOLINE

Provide any value to this parameter to remove the horizontal line after the table.

Lineoptional
Content1

The contents of the table. Can be anything from a collection of links to a ribbon rack.

Contentrequired