Difference between revisions of "Template:Div"
From PinataIsland.info, the Viva Piñata wiki
m (end = <headertabs/>) |
(documentation) |
||
Line 1: | Line 1: | ||
− | {{#switch: {{{1}}} | + | <includeonly>{{#switch: {{{1}}} |
− | |svp| | + | |svp|specclassic=<div class="pii_species_content_container"><div class="pii_species_classic_content"> |
− | |svp2| | + | |svp2|specvp2=<div class="pii_species_content_container"><div class="pii_species_tipStd_content"> |
− | |sjff| | + | |sjff|specjff=<div class="pii_species_content_container"><div class="pii_species_tipJff_content"> |
− | |svpp| | + | |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| | + | |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=<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"> | ||
Line 14: | Line 14: | ||
|2= | |2= | ||
|#default=</div></div> | |#default=</div></div> | ||
+ | }}</includeonly><noinclude> | ||
+ | ==Paramaters== | ||
+ | |||
+ | {| style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; padding: 0.2em; text-align:center; width:50%;" | ||
+ | |||
+ | ! Paramater !! Result !! Shorthand !! Longhand | ||
+ | |||
+ | |- | ||
+ | |svp | ||
+ | |Classic species tab | ||
+ | |<nowiki>{{div|svp}}</nowiki> | ||
+ | |<nowiki>{{div|specclassic}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |svp2 | ||
+ | |Trouble in Paradise species tab | ||
+ | |<nowiki>{{div|svp2}}</nowiki> | ||
+ | |<nowiki>{{div|specvp2}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |sjff | ||
+ | |TIB: Just for Fun species tab | ||
+ | |<nowiki>{{div|sjff}}</nowiki> | ||
+ | |<nowiki>{{div|specjff}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |svpp | ||
+ | |Pocket Paradise species tab | ||
+ | |<nowiki>{{div|svpp}}</nowiki> | ||
+ | |<nowiki>{{div|specvpp}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |stv | ||
+ | |TV series species tab | ||
+ | |<nowiki>{{div|stv}}</nowiki> | ||
+ | |<nowiki>{{div|spectv}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |avp | ||
+ | |Classic article tab | ||
+ | |<nowiki>{{div|avp}}</nowiki> | ||
+ | |<nowiki>{{div|artclassic}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |avp2 | ||
+ | |Trouble in Paradise article tab | ||
+ | |<nowiki>{{div|avp2}}</nowiki> | ||
+ | |<nowiki>{{div|artvp2}}</nowiki> | ||
+ | |||
+ | <!-- not sure if this is needed | ||
+ | |- | ||
+ | |ajff | ||
+ | |TIB: Just for Fun species tab | ||
+ | |<nowiki>{{div|sjff}}</nowiki> | ||
+ | |<nowiki>{{div|specjff}}</nowiki> | ||
+ | --> | ||
+ | |- | ||
+ | |avpp | ||
+ | |Pocket Paradise article tab | ||
+ | |<nowiki>{{div|avpp}}</nowiki> | ||
+ | |<nowiki>{{div|artvpp}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |atv | ||
+ | |TV series article tab | ||
+ | |<nowiki>{{div|atv}}</nowiki> | ||
+ | |<nowiki>{{div|arttv}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |req | ||
+ | |Requirements format - same for all platforms | ||
+ | |<nowiki>{{div|req}}</nowiki> | ||
+ | |<nowiki>{{div|require}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |1 | ||
+ | |Used to close the requirements div | ||
+ | |<nowiki>{{div|1}}</nowiki> | ||
+ | |<nowiki></div></nowiki> | ||
+ | |||
+ | |- | ||
+ | |2 | ||
+ | |Used to close a species div tab | ||
+ | |<nowiki>{{div}}</nowiki> | ||
+ | |<nowiki>{{div|2}}</nowiki> | ||
+ | |||
+ | |- | ||
+ | |end | ||
+ | |Used at end of article to close the tabs | ||
+ | |<nowiki>{{div|end}}</nowiki> | ||
+ | |<nowiki>{{div|headertabs}}</nowiki> | ||
+ | |||
+ | |} | ||
+ | |||
+ | ==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 | ||
+ | <pre> | ||
+ | __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}} // {{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}} // 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}} // 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}} // close tab section | ||
+ | |||
+ | {{Template:Species-PocketParadise}} | ||
+ | |||
+ | =TV show= | ||
+ | {{div|stv}} | ||
+ | |||
+ | ( ... content for a TV species article ... ) | ||
+ | |||
+ | {{clear}}{{div}} // close tab section | ||
+ | |||
+ | {{div|end}} // close article tabs | ||
+ | |||
+ | |||
+ | [[Category:Flying]] // categories, etc. go at the very bottom | ||
+ | |||
+ | </pre> | ||
+ | </noinclude> |
Revision as of 06:59, 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}} | {{div|2}} |
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}} // {{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}} // 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}} // 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}} // close tab section {{Template:Species-PocketParadise}} =TV show= {{div|stv}} ( ... content for a TV species article ... ) {{clear}}{{div}} // close tab section {{div|end}} // close article tabs [[Category:Flying]] // categories, etc. go at the very bottom