Difference between revisions of "Template:Div"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
m (update instructions for new name)
(adding stip and atip for paramaters in case we want to deprecate usage of "vp2")
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1}}}
 
<includeonly>{{#switch: {{{1}}}
 
|svp|specclassic=<div class="pii_species_content_container"><div class="pii_species_classic_content">
 
|svp|specclassic=<div class="pii_species_content_container"><div class="pii_species_classic_content">
|svp2|specvp2=<div class="pii_species_content_container"><div class="pii_species_tipStd_content">
+
|svp2|specvp2|stip=<div class="pii_species_content_container"><div class="pii_species_tipStd_content">
 
|sjff|specjff=<div class="pii_species_content_container"><div class="pii_species_tipJff_content">
 
|sjff|specjff=<div class="pii_species_content_container"><div class="pii_species_tipJff_content">
 
|svpp|specvpp=<div class="pii_species_content_container"><div class="pii_species_pp_content">
 
|svpp|specvpp=<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">
 
|stv|spectv=<div class="pii_species_content_container"><div class="pii_species_tv_content">
 
|avp|artclassic=<div class="pii_article_content_container"><div class="pii_article_classic_content">
 
|avp|artclassic=<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">
+
|avp2|artvp2|atip=<div class="pii_article_content_container"><div class="pii_article_tip_content">
 
|avpp|artvpp=<div class="pii_article_content_container"><div class="pii_article_pp_content">
 
|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">
 
|atv|arttv=<div class="pii_article_content_container"><div class="pii_article_tv_content">

Revision as of 11:35, 21 August 2008

Paramaters

Paramater Result Shorthand Longhand
svp Classic species tab {{tab|svp}} {{tab|specclassic}}
svp2 Trouble in Paradise species tab {{tab|svp2}} {{tab|specvp2}}
sjff TIB: Just for Fun species tab {{tab|sjff}} {{tab|specjff}}
svpp Pocket Paradise species tab {{tab|svpp}} {{tab|specvpp}}
stv TV series species tab {{tab|stv}} {{tab|spectv}}
avp Classic article tab {{tab|avp}} {{tab|artclassic}}
avp2 Trouble in Paradise article tab {{tab|avp2}} {{tab|artvp2}}
avpp Pocket Paradise article tab {{tab|avpp}} {{tab|artvpp}}
atv TV series article tab {{tab|atv}} {{tab|arttv}}
req Requirements format - same for all platforms {{tab|req}} {{tab|require}}
1 Used to close the requirements tab {{tab|1}} </div>
2 Used to close a species div tab {{tab|2}} {{tab|close}}
end Used at end of article to close the tabs {{tab|end}} {{tab|headertabs}}

Usage

The tab template is used to create the tabbed browsing for the different games & platforms.

  • Each platform section must be preceded by a =First level header= with the exact standard name followed by the tab template with the appropriate paramater and closed at the bottom of the section before any navboxes
  • Species and articles have different parameters
  • Creating article pages with tabbed browsing uses the same format and =First level headings= as species articles do.
  • Even if the article only applies to one platform, it should be tabbed to make it immediately apparent which platform the article covers


Example of a species article using the tab template
__NOTOC__
__NOEDITSECTION__

=Classic=
{{tab|svp}}           // this opens the tab section for a classic species
{{Species2Infobox
| title = Reddhott
...
}}
Imagine scorching the furniture when ...

== Classic requirements == 
Setting a [[Taffly]] on fire ...

{{tab|req}}           // this formats the requirements properly

=== Romance requirements ===
*Has eaten 3 [[chili]]s
*...
{{tab|1}}             // requirements tab is closed with {{tab|1}}


(rest of species headers i.e. 
== Species variants ==
== Reddhott uses ==
== Species conflicts ==
== Other information ==
)
                      // {{clear}} is required to ensure the tab encloses any floating content
{{clear}}{{tab|2}}    // {{tab|close}}, {{tab|2}} (or simply {{tab}}) closes the species tab section

{{Species-Classic}}   // navboxes go below the close

=TiP - Standard=
{{tab|svp2}}          // this opens the tab section for a Trouble in Paradise (standard) species 

( ... same content as a classic species article ... )

{{clear}}{{tab|2}}    // close tab section

{{Species-TroubleInParadise-Standard}} 

=TiP - Just for Fun=
{{tab|sjff}}          // this opens the tab section for a Trouble in Paradise (Just for Fun) species 

( ... same content as a classic species article ... )

{{clear}}{{tab|2}}    // close tab section

{{Species-TroubleInParadise-JustForFun}}

=Pocket Paradise=
{{tab|svpp}}          // this opens the tab section for a Pocket Paradise species 

( ... same content as a classic species article ... )

{{clear}}{{tab|2}}    // close tab section

{{Template:Species-PocketParadise}}

=TV show=
{{tab|stv}}

( ... content for a TV species article ... ) 

{{clear}}{{tab|2}}    // close tab section

{{tab|end}}           // close article tabs


[[Category:Flying]]   // categories, etc. go at the very bottom