Difference between revisions of "Template:TwitchPoké/doc"

no edit summary
 
 
This template is meant exclusively for useused on the [[Twitch Plays Pokémon]] article and its sub-pages. The template is used within a table to show the contents of PC boxes.
==How to Use==
This template is meant exclusively for use on the [[Twitch Plays Pokémon]] article and its sub-pages.
 
==How to Useuse==
{| width="50%" class="roundy" style="margin:auto; border: 2px solid #{{psychic color dark}}; background: #{{psychic color}};"
The template uses numbered parameters, so these should be used in order. Named parameters can be used in any position within the template. It must be used within a table.
! class="roundytl" style="background: #{{psychic color light}}" | Parameter
 
! class="roundytr" style="background: #{{psychic color light}}" | Input
===Parameters===
|- style="background: #FFF"
All parameters are case sensitive.
! 1
!{| class="roundytrwikitable" style="background: #{{psychic color light}}e5f1ec;" | Input
| Generation number in Arabic numerals.
|-
|- style="background: #FFF"
! class="roundytl" style="background: #{{psychic color light}}d1e5d9" | Parameter
! 2
|-! style="background: #FFFd1e5d9" | Allowed values
| National Pokédex number.
|-! style="background: #FFFd1e5d9" | Notes
|}-
! 3
| ''<code>1</code>''
| Pokémon name.
| ''Number''
|- style="background: #FFF"
| The [[Generation]] number. '''Don't''' use roman numerals. Defaults to <code>3</code>.
! 4
|-
| Gender.
| ''<code>2</code>''
|- style="background: #FFF"
| ''National Pokédex number.''
! 5
| The Pokémon's [[National Pokédex]] number. Defaults to <code>001</code>.
| Level.
|-
|- style="background: #FFF"
| ''<code>3</code>''
! 6
| ''String''
| Held item.
| The Pokémon's name. Defaults to <code>Bulbasaur</code>.
|-
| <code>nick</code>
| ''String''
| '''Optional'''. The Pokémon's [[nickname]].
|-
| ''<code>4</code>''
| <code>M</code> • <code>♂</code> • <code>F</code> • <code>♀</code> • <code>B</code> • <code>?</code>
| The Pokémon's [[gender]]. Defaults to <code>?</code>.
|-
| ''<code>5</code>''
| ''Number''
| The Pokémon's [[level]]. Defaults to <code>100</code>
|-
| ''<code>6</code>''
! class="roundybl" style="background: #FFF" | nick
| ''String'' • <code>None</code>
| class="roundyb2" style="background: #FFF" | Nickname, if applicable.
| The Pokémon's [[held item]]. Defaults to <code>None</code>.
|}
 
===ExampleSyntax===
The template is written as follows:
<pre>{{TwitchPoké|<<1>>|<<2>>|<<3>>|nick=|<<4>>|<<5>>|<<6>>}}</pre>
 
For example, <code><nowiki>{{TwitchPoké|3|401|Kricketot|nick=KRICKETOT|M|4|Yellow Shard}}</nowiki></code> creates:
<pre>{| class="roundy" style="border: 2px solid #464646; background: #F5F5F5"
{|
{{TwitchPoké|3|401|Kricketot|nick=KRICKETOT|M|4|Yellow Shard}}
|}{{-}}
 
==Example==
The template is used together with others within a table to show the contents of a PC.
 
<pre>
{| width="50%" class="roundy" style="margin:auto; border: 2px solid #{{psychic color dark}}464646; background: #{{psychic color}};F5F5F5"
! colspan="4" style="{{roundy|5px}}; background: #B190E9" | {{color2|000|Pokémon Storage System|Bill's PC}}
|-
{{TwitchPoké|3|396|Starly|nick=STARLY|F|2}}
{{TwitchPoké|3|401|Kricketot|nick=KRICKETOT|M|4|Yellow Shard}}
{{TwitchPoké|3|399|Bidoof|nick=BIDOOF|FB|5}}
{{TwitchPoké|3|433|Chingling|nick=CHINGLING|M?|14}}
|}</pre>
</pre>
 
{| class="roundy" style="border: 2px solid #464646; background: #F5F5F5"
{{TwitchPoké|3|396|Starly|nick=STARLY|F|2}}
{{TwitchPoké|3|401|Kricketot|nick=KRICKETOT|M|4|Yellow Shard}}
{{TwitchPoké|3|399|Bidoof|nick=BIDOOF|FB|5}}
{{TwitchPoké|3|433|Chingling|nick=CHINGLING|M?|14}}
|}<noinclude>
|}
[[Category:Documentation templates]]</noinclude>