Ice Age Village Wiki

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