|
|
Line 1: |
Line 1: |
− | <includeonly>{{#switch: {{{1}}}
| + | <noinclude> |
− | |vpcs|svpc|specvps|svp|specclassic=<div class="pii_species_content_container"><div class="pii_species_classic_content">
| + | ==Usage== |
− | |tips|stip|spectip|svp2=<div class="pii_species_content_container"><div class="pii_species_tipStd_content">
| |
− | |jffs|sjff|specjff=<div class="pii_species_content_container"><div class="pii_species_tipJff_content">
| |
− | |vpps|svpp|specvpp=<div class="pii_species_content_container"><div class="pii_species_pp_content">
| |
− | |tvs|stv|spectv=<div class="pii_species_content_container"><div class="pii_species_tv_content">
| |
− | |vpc|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">
| |
− | |jff|justforfun|ajff=<!-- i need the code for this -->
| |
− | |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">
| |
− | |sour=<div class="pii_species_sour_content">
| |
− | |req|require=<div class="pii_species_requirements">
| |
− | |tabs|headertabs|end=<headertabs/>
| |
− | |1=</div>
| |
− | |close|2
| |
− | |#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:600px;"
| |
− | | |
− | ! Paramater !! Result !! Shorthand !! Longhand
| |
− | | |
− | |-
| |
− | |vpcs
| |
− | |Classic species tab
| |
− | |<nowiki>{{div|vpcs}}</nowiki>
| |
− | |<nowiki>{{div|specvpc}}</nowiki>
| |
− | | |
− | |-
| |
− | |tips
| |
− | |Trouble in Paradise species tab
| |
− | |<nowiki>{{div|tips}}</nowiki>
| |
− | |<nowiki>{{div|spectip}}</nowiki>
| |
− | | |
− | |-
| |
− | |jffs
| |
− | |TIB: Just for Fun species tab
| |
− | |<nowiki>{{div|jffs}}</nowiki>
| |
− | |<nowiki>{{div|specjff}}</nowiki>
| |
− | | |
− | |-
| |
− | |vpps
| |
− | |Pocket Paradise species tab
| |
− | |<nowiki>{{div|vpps}}</nowiki>
| |
− | |<nowiki>{{div|specvpp}}</nowiki>
| |
− | | |
− | |-
| |
− | |tvs
| |
− | |TV series species tab
| |
− | |<nowiki>{{div|tvs}}</nowiki>
| |
− | |<nowiki>{{div|spectv}}</nowiki>
| |
− | | |
− | |-
| |
− | |avp
| |
− | |Classic article tab
| |
− | |<nowiki>{{div|vpc}}</nowiki>
| |
− | |<nowiki>{{div|classic}}</nowiki>
| |
− | | |
− | |-
| |
− | |avp2
| |
− | |Trouble in Paradise article tab
| |
− | |<nowiki>{{div|tip}}</nowiki>
| |
− | |<nowiki>{{div|troubleinparadise}}</nowiki>
| |
| | | |
− | |-<!-- I don't have the code for this div yet -->
| + | This template is used to create page tabs. |
− | |jff
| |
− | |TIB: Just for Fun article tab
| |
− | |<nowiki>{{div|jff}}</nowiki>
| |
− | |<nowiki>{{div|justforfun}}</nowiki>
| |
| | | |
− | |-
| + | There are two parameters, the first being the type of page (article or species) and the second being the platform (and gametype, if applicable). It will default to a Trouble in Paradise article if no parameters are supplied. |
− | |vpp
| |
− | |Pocket Paradise article tab
| |
− | |<nowiki>{{div|vpp}}</nowiki>
| |
− | |<nowiki>{{div|pocketparadise}}</nowiki>
| |
| | | |
− | |-
| + | This template should be '''subst:'ed'''. |
− | |tv
| |
− | |TV series article tab
| |
− | |<nowiki>{{div|tv}}</nowiki>
| |
− | |<nowiki>{{div|television}}</nowiki>
| |
| | | |
− | |-
| |
− | |req
| |
− | |Requirements format - same for all platforms
| |
− | |<nowiki>{{div|req}}</nowiki>
| |
− | |<nowiki>{{div|require}}</nowiki>
| |
− |
| |
− | |-
| |
− | |sour
| |
− | |Sour format - same for all platforms
| |
− | |<nowiki>{{div|sour}}</nowiki>
| |
− |
| |
− | |-
| |
− | |1
| |
− | |Used to close the requirements and sour div
| |
− | |<nowiki>{{div|1}}</nowiki>
| |
− | |<nowiki></div></nowiki>
| |
− |
| |
− | |-
| |
− | |2
| |
− | |Used to close a species div tab
| |
− | |<nowiki>{{div|2}}</nowiki>
| |
− | |<nowiki>{{div|close}}</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> | | <pre> |
− | __NOTOC__
| + | Articles |
− | __NOEDITSECTION__
| + | -------- |
− | | + | classic {{subst:div|article|classic}} |
− | =Classic=
| + | trouble in paradise {{subst:div|article|tip}} //default - if no parameters are passed |
− | {{div|svp}} // this opens the tab section for a classic species
| + | pocket paradise {{subst:div|article|pp}} |
− | {{Species2Infobox
| + | television show {{subst:div|article|tv}} |
− | | 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
| |
| | | |
− | </pre> | + | Species |
− | </noinclude> | + | ------- |
| + | classic {{subst:div|species|classic}} |
| + | tip Standard {{subst:div|species|tipStd}} |
| + | tip Just for fun {{subst:div|species|tipJff}} |
| + | pocket paradise {{subst:div|species|pp}} |
| + | television show {{subst:div|species|tv}} |
| + | </pre></noinclude><includeonly><div class="pii_{{{1|article}}}_content_container"><div class="pii_{{{1|article}}}_{{{2|tip}}}_content"></includeonly> |
This template is used to create page tabs.
There are two parameters, the first being the type of page (article or species) and the second being the platform (and gametype, if applicable). It will default to a Trouble in Paradise article if no parameters are supplied.