Difference between revisions of "Template:Div"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
(add |tabs|headertabs=<headertabs/>)
m (rv/ broke transclusions in the test articles)
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch: {{{1}}}
+
<noinclude>
|svp|specclass=<div class="pii_species_content_container"><div class="pii_species_classic_content">
+
==Usage==
|svp2|spectipStd=<div class="pii_species_content_container"><div class="pii_species_tipStd_content">
+
 
|sjff|spectipJff=<div class="pii_species_content_container"><div class="pii_species_tipJff_content">
+
This template is used to create page tabs.
|svpp|specpocpar=<div class="pii_species_content_container"><div class="pii_species_pp_content">
+
 
|stv|spectv=<div class="pii_species_content_container"><div class="pii_species_tv_content">
+
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.
|avp|artclass=<div class="pii_article_content_container"><div class="pii_article_classic_content">
+
 
|avp2|artvp2=<div class="pii_article_content_container"><div class="pii_article_tip_content">
+
This template should be '''subst:'ed'''.
|avpp|artvpp=<div class="pii_article_content_container"><div class="pii_article_pp_content">
+
 
|atv|arttv=<div class="pii_article_content_container"><div class="pii_article_tv_content">
+
<pre>
|req|require=<div class="pii_species_requirements">
+
Articles
|tabs|headertabs=<headertabs/>
+
--------
|end
+
classic              {{subst:div|article|classic}}
|#default=</div></div>
+
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:UX|-}} 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}}
 +
...
 +
{{clear}}</div></div>
 +
 
 +
=Trouble in Paradise=
 +
{{subst:div|article|tip}}
 +
...
 +
{{clear}}</div></div>
 +
 
 +
 
 +
=TiP - Standard=
 +
{{subst:div|article|tipStd}}
 +
...
 +
{{clear}}</div></div>
 +
 
 +
 
 +
=TiP - Just for Fun=
 +
{{subst:div|article|tipJff}}
 +
...
 +
{{clear}}</div></div>
 +
 
 +
 
 +
=Pocket Paradise=
 +
{{subst:div|article|pp}}
 +
...
 +
{{clear}}</div></div>
 +
 
 +
 
 +
=TV show=
 +
{{subst:div|article|tipStd}}
 +
...
 +
{{clear}}</div></div>
 +
 
 +
<headertabs/>
 +
                    //never forget <headertabs/> - it closes the tabs
 +
===end===            //any content you put below it and it will show on any tab
 +
 
 +
</pre></noinclude><includeonly><div class="pii_{{{1|article}}}_content_container"><div class="pii_{{{1|article}}}_{{{2|tip}}}_content"></includeonly>

Latest revision as of 15:22, 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:UX|-}} 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}}
...
{{clear}}</div></div>

=Trouble in Paradise=
{{subst:div|article|tip}}
...
{{clear}}</div></div>


=TiP - Standard=
{{subst:div|article|tipStd}}
...
{{clear}}</div></div>


=TiP - Just for Fun=
{{subst:div|article|tipJff}}
...
{{clear}}</div></div>


=Pocket Paradise=
{{subst:div|article|pp}}
...
{{clear}}</div></div>


=TV show=
{{subst:div|article|tipStd}}
...
{{clear}}</div></div>

<headertabs/>
                     //never forget <headertabs/> - it closes the tabs
===end===            //any content you put below it and it will show on any tab