Place to collect various code solutions (and key terms I've used to find them) in editing this wiki so that I don't lose them.
Editing Notes[]
To have source code show up in a box on a published page (as I'll be doing in this blog post), you use Pre tags. < Pre > before the material and closed with < / Pre > (but without the spaces).
To add notes to future editors anywhere on a page so that they will not be published:
<!-- Note goes here. -->
Expand/Collapse[]
To have material (text, table, whatever) default collapsed. Had a really irritating thing though where some editing of the page it's on automatically adds a space after the "Expand" button but before the collapsed content. Used to have this on Game Updates page before switching to tabber as amount of information grew larger.
<div class="mw-collapsible mw-collapsed"> <p style="text-align: center;">'''Expand'''</p> <div class="mw-collapsible-content"> Content you want collapsed by default goes here. </div> </div>
Tabber[]
To add tabs to pages. Will force you to use source mode afterwards.
<tabber> First Tab Title= First tab sample text. |-| Second Tab Title= Second tab content goes here. |-| Third Tab Title= Third tab content goes here. </tabber>
Headings won't work by default. Have to add the following CSS to the wiki's MediaWiki page:
.tabberlive .tabbertab h2, .tabberlive .tabbertab h3 { display:block !important; }
To have nested tabbers, have to use different code for the internal tabs. Can have several layers, Game Updates page has a tabber within a tabber within a tabber.
<tabber> First Tab = Example Text 1 {{#tag:tabber| Inner Tab 1 = Example Text 3 {{!}}-{{!}} Inner Tab 2 = Example Text 4 }} |-| Second Tab = Example Text 2 </tabber>
Using tabber for infoboxes
- AHA! Also found an explanation for the adult/baby switch not working...hopefully the suggested solution here won't require going to individual pages though...
- http://community.wikia.com/wiki/User_blog:Kirkburn/Technical_Update:_April_27,_2015#comm-832123 I don't really understand everything they're saying, but can go to the ruby rose page they're talking about and look at the code there
- See the Stag page for a workable alternative I've tried - just used tabber instead of the adult/baby switch template.
- Pages currently marinating in my brain:
- http://community.wikia.com/wiki/Forum:Tabbers_in_Templates
- http://community.wikia.com/wiki/Thread:792226 (generic multiple tabs in infoboxes)