Difference between revisions of "Template:Div"
From PinataIsland.info, the Viva Piñata wiki
m (Template:Tab moved to Template:Div over redirect: previous name was better) |
(update for standardized naming) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1}}} | <includeonly>{{#switch: {{{1}}} | ||
− | |svp|specclassic=<div class="pii_species_content_container"><div class="pii_species_classic_content"> | + | |svpc|specvps|svp|specclassic=<div class="pii_species_content_container"><div class="pii_species_classic_content"> |
− | | | + | |stip|spectip|svp2=<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"> | ||
− | | | + | |vp|classic=<div class="pii_article_content_container"><div class="pii_article_classic_content"> |
− | | | + | |tip|troubleinparadise|atip=<div class="pii_article_content_container"><div class="pii_article_tip_content"> |
− | |avpp | + | |jff|justforfun|ajff=<!-- i need the code for this --> |
− | |atv | + | |vpp|pocketparadise|avpp=<div class="pii_article_content_container"><div class="pii_article_pp_content"> |
+ | |tv|television|atv=<div class="pii_article_content_container"><div class="pii_article_tv_content"> | ||
|req|require=<div class="pii_species_requirements"> | |req|require=<div class="pii_species_requirements"> | ||
|tabs|headertabs|end=<headertabs/> | |tabs|headertabs|end=<headertabs/> | ||
Line 22: | Line 23: | ||
|- | |- | ||
− | | | + | |svpc |
|Classic species tab | |Classic species tab | ||
− | |<nowiki>{{div| | + | |<nowiki>{{div|svpc}}</nowiki> |
− | |<nowiki>{{div| | + | |<nowiki>{{div|specvpc}}</nowiki> |
|- | |- | ||
− | | | + | |stip |
|Trouble in Paradise species tab | |Trouble in Paradise species tab | ||
− | |<nowiki>{{div| | + | |<nowiki>{{div|stip}}</nowiki> |
− | |<nowiki>{{div| | + | |<nowiki>{{div|spectip}}</nowiki> |
|- | |- | ||
Line 54: | Line 55: | ||
|avp | |avp | ||
|Classic article tab | |Classic article tab | ||
− | |<nowiki>{{div| | + | |<nowiki>{{div|vpc}}</nowiki> |
− | |<nowiki>{{div| | + | |<nowiki>{{div|classic}}</nowiki> |
|- | |- | ||
|avp2 | |avp2 | ||
|Trouble in Paradise article tab | |Trouble in Paradise article tab | ||
− | |<nowiki>{{div| | + | |<nowiki>{{div|tip}}</nowiki> |
− | |<nowiki>{{div| | + | |<nowiki>{{div|troubleinparadise}}</nowiki> |
+ | |||
+ | |-<!-- I don't have the code for this div yet --> | ||
+ | |jff | ||
+ | |TIB: Just for Fun article tab | ||
+ | |<nowiki>{{div|jff}}</nowiki> | ||
+ | |<nowiki>{{div|justforfun}}</nowiki> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | |vpp |
|Pocket Paradise article tab | |Pocket Paradise article tab | ||
− | |<nowiki>{{div| | + | |<nowiki>{{div|vpp}}</nowiki> |
− | |<nowiki>{{div| | + | |<nowiki>{{div|pocketparadise}}</nowiki> |
|- | |- | ||
− | | | + | |tv |
|TV series article tab | |TV series article tab | ||
− | |<nowiki>{{div| | + | |<nowiki>{{div|tv}}</nowiki> |
− | |<nowiki>{{div| | + | |<nowiki>{{div|television}}</nowiki> |
|- | |- |
Revision as of 16:15, 21 August 2008
Paramaters
Paramater | Result | Shorthand | Longhand |
---|---|---|---|
svpc | Classic species tab | {{div|svpc}} | {{div|specvpc}} |
stip | Trouble in Paradise species tab | {{div|stip}} | {{div|spectip}} |
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|vpc}} | {{div|classic}} |
avp2 | Trouble in Paradise article tab | {{div|tip}} | {{div|troubleinparadise}} |
jff | TIB: Just for Fun article tab | {{div|jff}} | {{div|justforfun}} |
vpp | Pocket Paradise article tab | {{div|vpp}} | {{div|pocketparadise}} |
tv | TV series article tab | {{div|tv}} | {{div|television}} |
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