Template:Sidebar Collapse: Difference between revisions

Replacing documentation with transclusion from subpage
(Initial creation of template (+ documentation))
 
(Replacing documentation with transclusion from subpage)
Tag: Replaced
 
Line 4: Line 4:
|{{{1|}}}
|{{{1|}}}
|}
|}
{{#if: {{{NOLINE|}}}||----}}</includeonly><noinclude>__NOTOC__
{{#if: {{{NOLINE|}}}||----}}</includeonly><noinclude>{{doc}}</noinclude>
 
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]].
 
{{LCARS-bar-heading|Basic Usage|clear|COLOR=#1D72A6}}
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:
<pre>{{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
}}
}}</pre>
 
produces the following result in a [[Template:Sidebar|sidebar]]:
{{Sidebar
|NAME = Noa T'Nessa Levinson
|SHIP = {{USS|Chin'toka}}
|RANK = Lieutenant
|PIPSTYLE = PIC
|POST = Chief Science Officer
|COLOR = Blue
|SPECIES = Human (3/4) / Vulcan (1/4)
|GENDER = Female
|BIRTHMONTH = 10
|BIRTHDATE = 04
|BIRTHYEAR = 2373
|BIRTHPLACE = Starbase 295
|IMAGE = Lt Noa.png
|AUTHOR = E239701NL0
|EXTRA =
{{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
}}
}}
}}
 
{{LCARS-bar-heading|Hiding the horizontal line|clear|COLOR=#1D72A6}}
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:
<pre>{{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
}}
}}</pre>
 
which produces the following result:
{{Sidebar
|NAME = Noa T'Nessa Levinson
|SHIP = {{USS|Chin'toka}}
|RANK = Lieutenant
|PIPSTYLE = PIC
|POST = Chief Science Officer
|COLOR = Blue
|SPECIES = Human (3/4) / Vulcan (1/4)
|GENDER = Female
|BIRTHMONTH = 10
|BIRTHDATE = 04
|BIRTHYEAR = 2373
|BIRTHPLACE = Starbase 295
|IMAGE = Lt Noa.png
|AUTHOR = E239701NL0
|EXTRA =
{{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
}}
}}
}}
 
{{LCARS-bar-heading|Full sidebar example|clear|COLOR=#1D72A6}}
{{Sidebar
|NAME = Noa T'Nessa Levinson
|SHIP = {{USS|Chin'toka}}
|RANK = Lieutenant
|PIPSTYLE = PIC
|POST = Chief Science Officer
|COLOR = Blue
|SPECIES = Human (3/4) / Vulcan (1/4)
|GENDER = Female
|BIRTHMONTH = 10
|BIRTHDATE = 04
|BIRTHYEAR = 2373
|BIRTHPLACE = Starbase 295
|IMAGE = Lt Noa.png
|AUTHOR = E239701NL0
|EXTRA =
{{Sidebar Collapse|TITLE=Awards & Service Ribbons
|{{Ribbons Rack|LABEL=Awards
|Neelix Award|1
|Xalor Clan Xifilis Award|1
|Genesis Award|1
|1-year Member|1
|Sarpeidon Award|1
}}
{{Ribbons Rack|LABEL=Service Ribbons
|Starfleet Academy Graduate Ribbon|1
|Joint Meritorious Unit Award|2
|First Contact Ribbon|2
|Explorer's Ribbon|2r
|Maiden Voyage Ribbon|2
|Purple Heart|1
|Good Conduct Ribbon|1
|Diplomacy Ribbon|2
|Scientific Discovery Ribbon|1
|Operation Safe Harbor Service Medal|1
|Silver Star|1
}}
}}
{{Sidebar Collapse|TITLE=Player Achievements
|{{Achievements Rack
|SHIP=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
}}
{{Achievements Rack
|SHIP=Chin'toka
|LABEL=ship only
|Follow up appointment
|A head full of dreams
|Data hound
|Under warranty
|Chatterbox
}}
}}
{{Sidebar Collapse|TITLE=Badges & Coins
|{{Badge Rack
|Awards Ceremony Nominator|2
|Chat Trivia Participant|1
|To Boldly Go|2
}}
{{Coin Rack
|Per Aspera Ad Astra
}}
}}
<center>[[File:AcademyLogo2390.png|65px|link=Noa T'Nessa Levinson/Academy Transcript|Academy Transcript]][[File:SFA-Science.png|65px|link=Science (Duty Post)]]</center>
<center>{{Logo|USS Chin'toka|200}}</center>
}}
 
{{LCARS-bar-heading|Any questions or suggestions?|clear|COLOR=#1D72A6}}
Contact [[User:Noa T'Nessa Levinson|Adingo]], either via the wiki or on Discord!
 
[[Category:Templates]]</noinclude>