Difference between revisions of "Template:Div"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
(adding stip and atip for paramaters in case we want to deprecate usage of "vp2")
(turns out we like {{div}} better)
Line 24: Line 24:
 
|svp
 
|svp
 
|Classic species tab
 
|Classic species tab
|<nowiki>{{tab|svp}}</nowiki>
+
|<nowiki>{{div|svp}}</nowiki>
|<nowiki>{{tab|specclassic}}</nowiki>
+
|<nowiki>{{div|specclassic}}</nowiki>
  
 
|-
 
|-
 
|svp2
 
|svp2
 
|Trouble in Paradise species tab
 
|Trouble in Paradise species tab
|<nowiki>{{tab|svp2}}</nowiki>
+
|<nowiki>{{div|svp2}}</nowiki>
|<nowiki>{{tab|specvp2}}</nowiki>
+
|<nowiki>{{div|specvp2}}</nowiki>
  
 
|-
 
|-
 
|sjff
 
|sjff
 
|TIB: Just for Fun species tab
 
|TIB: Just for Fun species tab
|<nowiki>{{tab|sjff}}</nowiki>
+
|<nowiki>{{div|sjff}}</nowiki>
|<nowiki>{{tab|specjff}}</nowiki>
+
|<nowiki>{{div|specjff}}</nowiki>
  
 
|-
 
|-
 
|svpp
 
|svpp
 
|Pocket Paradise species tab
 
|Pocket Paradise species tab
|<nowiki>{{tab|svpp}}</nowiki>
+
|<nowiki>{{div|svpp}}</nowiki>
|<nowiki>{{tab|specvpp}}</nowiki>
+
|<nowiki>{{div|specvpp}}</nowiki>
  
 
|-
 
|-
 
|stv
 
|stv
 
|TV series species tab
 
|TV series species tab
|<nowiki>{{tab|stv}}</nowiki>
+
|<nowiki>{{div|stv}}</nowiki>
|<nowiki>{{tab|spectv}}</nowiki>
+
|<nowiki>{{div|spectv}}</nowiki>
  
 
|-
 
|-
 
|avp
 
|avp
 
|Classic article tab
 
|Classic article tab
|<nowiki>{{tab|avp}}</nowiki>
+
|<nowiki>{{div|avp}}</nowiki>
|<nowiki>{{tab|artclassic}}</nowiki>
+
|<nowiki>{{div|artclassic}}</nowiki>
  
 
|-
 
|-
 
|avp2
 
|avp2
 
|Trouble in Paradise article tab
 
|Trouble in Paradise article tab
|<nowiki>{{tab|avp2}}</nowiki>
+
|<nowiki>{{div|avp2}}</nowiki>
|<nowiki>{{tab|artvp2}}</nowiki>
+
|<nowiki>{{div|artvp2}}</nowiki>
  
 
<!-- not sure if this is needed
 
<!-- not sure if this is needed
Line 67: Line 67:
 
|ajff
 
|ajff
 
|TIB: Just for Fun species tab
 
|TIB: Just for Fun species tab
|<nowiki>{{tab|sjff}}</nowiki>
+
|<nowiki>{{div|sjff}}</nowiki>
|<nowiki>{{tab|specjff}}</nowiki>
+
|<nowiki>{{div|specjff}}</nowiki>
 
-->
 
-->
 
|-
 
|-
 
|avpp
 
|avpp
 
|Pocket Paradise article tab
 
|Pocket Paradise article tab
|<nowiki>{{tab|avpp}}</nowiki>
+
|<nowiki>{{div|avpp}}</nowiki>
|<nowiki>{{tab|artvpp}}</nowiki>
+
|<nowiki>{{div|artvpp}}</nowiki>
  
 
|-
 
|-
 
|atv
 
|atv
 
|TV series article tab
 
|TV series article tab
|<nowiki>{{tab|atv}}</nowiki>
+
|<nowiki>{{div|atv}}</nowiki>
|<nowiki>{{tab|arttv}}</nowiki>
+
|<nowiki>{{div|arttv}}</nowiki>
  
 
|-
 
|-
 
|req
 
|req
 
|Requirements format - same for all platforms
 
|Requirements format - same for all platforms
|<nowiki>{{tab|req}}</nowiki>
+
|<nowiki>{{div|req}}</nowiki>
|<nowiki>{{tab|require}}</nowiki>
+
|<nowiki>{{div|require}}</nowiki>
  
 
|-
 
|-
 
|1
 
|1
|Used to close the requirements tab
+
|Used to close the requirements div
|<nowiki>{{tab|1}}</nowiki>
+
|<nowiki>{{div|1}}</nowiki>
 
|<nowiki></div></nowiki>
 
|<nowiki></div></nowiki>
  
Line 97: Line 97:
 
|2
 
|2
 
|Used to close a species div tab
 
|Used to close a species div tab
|<nowiki>{{tab|2}}</nowiki>
+
|<nowiki>{{div|2}}</nowiki>
|<nowiki>{{tab|close}}</nowiki>
+
|<nowiki>{{div|close}}</nowiki>
  
 
|-
 
|-
 
|end
 
|end
 
|Used at end of article to close the tabs
 
|Used at end of article to close the tabs
|<nowiki>{{tab|end}}</nowiki>
+
|<nowiki>{{div|end}}</nowiki>
|<nowiki>{{tab|headertabs}}</nowiki>
+
|<nowiki>{{div|headertabs}}</nowiki>
  
 
|}
 
|}
  
 
==Usage==
 
==Usage==
The tab template is used to create the tabbed browsing for the different games & platforms.
+
The div 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
+
*Each platform section must be preceded by a =First level header= with the exact standard name followed by the div template with the appropriate paramater and closed at the bottom of the section before any navboxes
 
*Species and articles have different parameters
 
*Species and articles have different parameters
 
*Creating article pages with tabbed browsing uses the same format and =First level headings= as species articles do.
 
*Creating article pages with tabbed browsing uses the same format and =First level headings= as species articles do.
Line 117: Line 117:
  
  
;Example of a species article using the tab template
+
;Example of a species article using the div template
 
<pre>
 
<pre>
 
__NOTOC__
 
__NOTOC__
Line 123: Line 123:
  
 
=Classic=
 
=Classic=
{{tab|svp}}          // this opens the tab section for a classic species
+
{{div|svp}}          // this opens the tab section for a classic species
 
{{Species2Infobox
 
{{Species2Infobox
 
| title = Reddhott
 
| title = Reddhott
Line 133: Line 133:
 
Setting a [[Taffly]] on fire ...
 
Setting a [[Taffly]] on fire ...
  
{{tab|req}}          // this formats the requirements properly
+
{{div|req}}          // this formats the requirements properly
  
 
=== Romance requirements ===
 
=== Romance requirements ===
 
*Has eaten 3 [[chili]]s
 
*Has eaten 3 [[chili]]s
 
*...
 
*...
{{tab|1}}            // requirements tab is closed with {{tab|1}}
+
{{div|1}}            // requirements div is closed with {{div|1}}
  
  
Line 148: Line 148:
 
)
 
)
 
                       // {{clear}} is required to ensure the tab encloses any floating content
 
                       // {{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
+
{{clear}}{{div|2}}    // {{div|close}}, {{div|2}} (or simply {{div}}) closes the species tab section
  
 
{{Species-Classic}}  // navboxes go below the close
 
{{Species-Classic}}  // navboxes go below the close
  
 
=TiP - Standard=
 
=TiP - Standard=
{{tab|svp2}}          // this opens the tab section for a Trouble in Paradise (standard) species  
+
{{div|svp2}}          // this opens the tab section for a Trouble in Paradise (standard) species  
  
 
( ... same content as a classic species article ... )
 
( ... same content as a classic species article ... )
  
{{clear}}{{tab|2}}    // close tab section
+
{{clear}}{{div|2}}    // close tab section
  
 
{{Species-TroubleInParadise-Standard}}  
 
{{Species-TroubleInParadise-Standard}}  
  
 
=TiP - Just for Fun=
 
=TiP - Just for Fun=
{{tab|sjff}}          // this opens the tab section for a Trouble in Paradise (Just for Fun) species  
+
{{div|sjff}}          // this opens the tab section for a Trouble in Paradise (Just for Fun) species  
  
 
( ... same content as a classic species article ... )
 
( ... same content as a classic species article ... )
  
{{clear}}{{tab|2}}    // close tab section
+
{{clear}}{{div|2}}    // close tab section
  
 
{{Species-TroubleInParadise-JustForFun}}
 
{{Species-TroubleInParadise-JustForFun}}
  
 
=Pocket Paradise=
 
=Pocket Paradise=
{{tab|svpp}}          // this opens the tab section for a Pocket Paradise species  
+
{{div|svpp}}          // this opens the tab section for a Pocket Paradise species  
  
 
( ... same content as a classic species article ... )
 
( ... same content as a classic species article ... )
  
{{clear}}{{tab|2}}    // close tab section
+
{{clear}}{{div|2}}    // close tab section
  
 
{{Template:Species-PocketParadise}}
 
{{Template:Species-PocketParadise}}
  
 
=TV show=
 
=TV show=
{{tab|stv}}
+
{{div|stv}}         // this opens the tab section for a TV species
  
 
( ... content for a TV species article ... )  
 
( ... content for a TV species article ... )  
  
{{clear}}{{tab|2}}    // close tab section
+
{{clear}}{{div|2}}    // close tab section
  
{{tab|end}}          // close article tabs
+
{{div|end}}          // close article tabs
  
  

Revision as of 12:46, 21 August 2008

Paramaters

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

Usage

The div 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 div 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 div template
__NOTOC__
__NOEDITSECTION__

=Classic=
{{div|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 ...

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

=== Romance requirements ===
*Has eaten 3 [[chili]]s
*...
{{div|1}}             // requirements div is closed with {{div|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}}{{div|2}}    // {{div|close}}, {{div|2}} (or simply {{div}}) closes the species tab section

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

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

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

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

{{Species-TroubleInParadise-Standard}} 

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

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

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

{{Species-TroubleInParadise-JustForFun}}

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

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

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

{{Template:Species-PocketParadise}}

=TV show=
{{div|stv}}          // this opens the tab section for a TV species 

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

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

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


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