Difference between revisions of "Template:Div"
From PinataIsland.info, the Viva Piñata wiki
m (Template:Div moved to Template:Tab: more descriptive name) |
(update instructions for new name) |
||
Line 12: | Line 12: | ||
|tabs|headertabs|end=<headertabs/> | |tabs|headertabs|end=<headertabs/> | ||
|1=</div> | |1=</div> | ||
− | |2 | + | |close|2 |
|#default=</div></div> | |#default=</div></div> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 24: | Line 24: | ||
|svp | |svp | ||
|Classic species tab | |Classic species tab | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|svp}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|specclassic}}</nowiki> |
|- | |- | ||
|svp2 | |svp2 | ||
|Trouble in Paradise species tab | |Trouble in Paradise species tab | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|svp2}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|specvp2}}</nowiki> |
|- | |- | ||
|sjff | |sjff | ||
|TIB: Just for Fun species tab | |TIB: Just for Fun species tab | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|sjff}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|specjff}}</nowiki> |
|- | |- | ||
|svpp | |svpp | ||
|Pocket Paradise species tab | |Pocket Paradise species tab | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|svpp}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|specvpp}}</nowiki> |
|- | |- | ||
|stv | |stv | ||
|TV series species tab | |TV series species tab | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|stv}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|spectv}}</nowiki> |
|- | |- | ||
|avp | |avp | ||
|Classic article tab | |Classic article tab | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|avp}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|artclassic}}</nowiki> |
|- | |- | ||
|avp2 | |avp2 | ||
|Trouble in Paradise article tab | |Trouble in Paradise article tab | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|avp2}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|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>{{ | + | |<nowiki>{{tab|sjff}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|specjff}}</nowiki> |
--> | --> | ||
|- | |- | ||
|avpp | |avpp | ||
|Pocket Paradise article tab | |Pocket Paradise article tab | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|avpp}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|artvpp}}</nowiki> |
|- | |- | ||
|atv | |atv | ||
|TV series article tab | |TV series article tab | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|atv}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|arttv}}</nowiki> |
|- | |- | ||
|req | |req | ||
|Requirements format - same for all platforms | |Requirements format - same for all platforms | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|req}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|require}}</nowiki> |
|- | |- | ||
|1 | |1 | ||
|Used to close the requirements div | |Used to close the requirements div | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|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>{{ | + | |<nowiki>{{tab|2}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|close}}</nowiki> |
|- | |- | ||
|end | |end | ||
|Used at end of article to close the tabs | |Used at end of article to close the tabs | ||
− | |<nowiki>{{ | + | |<nowiki>{{tab|end}}</nowiki> |
− | |<nowiki>{{ | + | |<nowiki>{{tab|headertabs}}</nowiki> |
|} | |} | ||
Line 123: | Line 123: | ||
=Classic= | =Classic= | ||
− | {{ | + | {{tab|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 |
=== Romance requirements === | === Romance requirements === | ||
*Has eaten 3 [[chili]]s | *Has eaten 3 [[chili]]s | ||
*... | *... | ||
− | {{ | + | {{tab|1}} // requirements div is closed with {{tab|1}} |
Line 147: | Line 147: | ||
== Other information == | == Other information == | ||
) | ) | ||
− | + | // {{clear}} is required to ensure the tab encloses any floating content | |
− | {{clear}}{{ | + | {{clear}}{{tab|2}} // {{tab|close}}, {{tab|2}} (or simply {{tab}}) closes the species tab section |
− | {{Species-Classic}} | + | {{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 |
( ... same content as a classic species article ... ) | ( ... same content as a classic species article ... ) | ||
− | {{clear}}{{ | + | {{clear}}{{tab|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 |
( ... same content as a classic species article ... ) | ( ... same content as a classic species article ... ) | ||
− | {{clear}}{{ | + | {{clear}}{{tab|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 |
( ... same content as a classic species article ... ) | ( ... same content as a classic species article ... ) | ||
− | {{clear}}{{ | + | {{clear}}{{tab|2}} // close tab section |
{{Template:Species-PocketParadise}} | {{Template:Species-PocketParadise}} | ||
=TV show= | =TV show= | ||
− | {{ | + | {{tab|stv}} |
( ... content for a TV species article ... ) | ( ... content for a TV species article ... ) | ||
− | {{clear}}{{ | + | {{clear}}{{tab|2}} // close tab section |
− | {{ | + | {{tab|end}} // close article tabs |
− | [[Category:Flying]] // categories, etc. go at the very bottom | + | [[Category:Flying]] // categories, etc. go at the very bottom |
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Revision as of 11:24, 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 div | {{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 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= {{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 div 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