Difference between revisions of "Template:Div"
From PinataIsland.info, the Viva Piñata wiki
(let's see if {{subst:div|clear}} works) |
(tweak instructions, using {{subst:div|clear}}) |
||
Line 26: | Line 26: | ||
television show {{subst:div|species|tv}} | television show {{subst:div|species|tv}} | ||
− | ^^ The above tabs must be closed with {{subst: | + | ^^ The above tabs must be closed with {{subst:div|clear}} and each article ends with <headertabs/> |
^^ common content not within a page tab may appear below the headertabs closing | ^^ common content not within a page tab may appear below the headertabs closing | ||
Line 38: | Line 38: | ||
{{subst:div|article|classic}} | {{subst:div|article|classic}} | ||
... | ... | ||
− | {{clear}} | + | {{subst:div|clear}} |
=Trouble in Paradise= | =Trouble in Paradise= | ||
{{subst:div|article|tip}} | {{subst:div|article|tip}} | ||
... | ... | ||
− | {{clear}} | + | {{subst:div|clear}} |
Line 49: | Line 49: | ||
{{subst:div|article|tipStd}} | {{subst:div|article|tipStd}} | ||
... | ... | ||
− | {{clear}} | + | {{subst:div|clear}} |
Line 55: | Line 55: | ||
{{subst:div|article|tipJff}} | {{subst:div|article|tipJff}} | ||
... | ... | ||
− | {{clear}} | + | {{subst:div|clear}} |
Line 61: | Line 61: | ||
{{subst:div|article|pp}} | {{subst:div|article|pp}} | ||
... | ... | ||
− | {{clear}} | + | {{subst:div|clear}} |
Line 67: | Line 67: | ||
{{subst:div|article|tipStd}} | {{subst:div|article|tipStd}} | ||
... | ... | ||
− | {{clear}} | + | {{subst:div|clear}} |
<headertabs/> | <headertabs/> | ||
Line 73: | Line 73: | ||
===end=== //any content you put below it and it will show on any tab | ===end=== //any content you put below it and it will show on any tab | ||
− | </pre></noinclude><includeonly>{{subst:#ifeq: {{{1}}} | | + | </pre></noinclude><includeonly>{{subst:#ifeq: {{{1}}} | clear | {{clear}}</div></div> | <div class="pii_{{{1|article}}}_content_container"><div class="pii_{{{1|article}}}_{{{2|tip}}}_content"> }}</includeonly> |
Revision as of 15:18, 23 August 2008
Usage
This template is used to create page tabs.
There are two parameters, the first being the type of page (article, species, or plant) and the second being the platform (and gametype, if applicable). It will default to a Trouble in Paradise article if no parameters are supplied.
This template should be subst:'ed.
Articles -------- classic {{subst:div|article|classic}} trouble in paradise {{subst:div|article|tip}} //default - if no parameters are passed - Standard {{subst:div|article|tipStd}} - Just for fun {{subst:div|article|tipJff}} pocket paradise {{subst:div|article|pp}} television show {{subst:div|article|tv}} Species ------- classic {{subst:div|species|classic}} tip Standard {{subst:div|species|tipStd}} tip Just for fun {{subst:div|species|tipJff}} pocket paradise {{subst:div|species|pp}} television show {{subst:div|species|tv}} ^^ The above tabs must be closed with {{subst:div|clear}} and each article ends with <headertabs/> ^^ common content not within a page tab may appear below the headertabs closing Basic article shell ---start--- //eliminate any sections you don't need __NOTOC__ __NOEDITSECTION__ =Classic= {{subst:div|article|classic}} ... {{subst:div|clear}} =Trouble in Paradise= {{subst:div|article|tip}} ... {{subst:div|clear}} =TiP - Standard= {{subst:div|article|tipStd}} ... {{subst:div|clear}} =TiP - Just for Fun= {{subst:div|article|tipJff}} ... {{subst:div|clear}} =Pocket Paradise= {{subst:div|article|pp}} ... {{subst:div|clear}} =TV show= {{subst:div|article|tipStd}} ... {{subst:div|clear}} <headertabs/> //never forget <headertabs/> - it closes the tabs ===end=== //any content you put below it and it will show on any tab