Template:TwitchPoké/doc: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
 
No edit summary
 
Line 1: Line 1:
==How to Use==
This template is used 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.
This template is meant exclusively for use on the [[Twitch Plays Pokémon]] article and its sub-pages.


{| width="50%" class="roundy" style="margin:auto; border: 2px solid #{{psychic color dark}}; background: #{{psychic color}};"
==How to use==
! class="roundytl" style="background: #{{psychic color light}}" | Parameter
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="roundytr" style="background: #{{psychic color light}}" | Input
 
|- style="background: #FFF"
===Parameters===
! 1
All parameters are case sensitive.
| Generation number in Arabic numerals.
{| class="wikitable" style="background: #e5f1ec;"
|- style="background: #FFF"
|-
! 2
! style="background: #d1e5d9" | Parameter
| National Pokédex number.
! style="background: #d1e5d9" | Allowed values
|- style="background: #FFF"
! style="background: #d1e5d9" | Notes
! 3
|-
| Pokémon name.
| ''<code>1</code>''
|- style="background: #FFF"
| ''Number''
! 4
| The [[Generation]] number. '''Don't''' use roman numerals. Defaults to <code>3</code>.
| Gender.
|-
|- style="background: #FFF"
| ''<code>2</code>''
! 5
| ''National Pokédex number''
| Level.
| The Pokémon's [[National Pokédex]] number. Defaults to <code>001</code>.
|- style="background: #FFF"
|-
! 6
| ''<code>3</code>''
| Held item.
| ''String''
| 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>
|-
|-
! class="roundybl" style="background: #FFF" | nick
| ''<code>6</code>''
| class="roundyb2" style="background: #FFF" | Nickname, if applicable.
| ''String'' • <code>None</code>
| The Pokémon's [[held item]]. Defaults to <code>None</code>.
|}
|}


===Example===
===Syntax===
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:
{|
{{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>{| class="roundy" style="border: 2px solid #464646; background: #F5F5F5"
<pre>
{| class="roundy" style="border: 2px solid #464646; background: #F5F5F5"
! colspan="4" style="{{roundy|5px}}; background: #B190E9" | {{color2|000|Pokémon Storage System|Bill's PC}}
! 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|396|Starly|nick=STARLY|F|2}}
{{TwitchPoké|3|401|Kricketot|nick=KRICKETOT|M|4|Yellow Shard}}
{{TwitchPoké|3|401|Kricketot|nick=KRICKETOT|M|4|Yellow Shard}}
{{TwitchPoké|3|399|Bidoof|nick=BIDOOF|F|5}}
{{TwitchPoké|3|399|Bidoof|nick=BIDOOF|B|5}}
{{TwitchPoké|3|433|Chingling|nick=CHINGLING|M|14}}
{{TwitchPoké|3|433|Chingling|nick=CHINGLING|?|14}}
|}</pre>
|}
</pre>


{| class="roundy" style="border: 2px solid #464646; background: #F5F5F5"
{| class="roundy" style="border: 2px solid #464646; background: #F5F5F5"
Line 44: Line 69:
{{TwitchPoké|3|396|Starly|nick=STARLY|F|2}}
{{TwitchPoké|3|396|Starly|nick=STARLY|F|2}}
{{TwitchPoké|3|401|Kricketot|nick=KRICKETOT|M|4|Yellow Shard}}
{{TwitchPoké|3|401|Kricketot|nick=KRICKETOT|M|4|Yellow Shard}}
{{TwitchPoké|3|399|Bidoof|nick=BIDOOF|F|5}}
{{TwitchPoké|3|399|Bidoof|nick=BIDOOF|B|5}}
{{TwitchPoké|3|433|Chingling|nick=CHINGLING|M|14}}
{{TwitchPoké|3|433|Chingling|nick=CHINGLING|?|14}}
|}
|}<noinclude>
[[Category:Documentation templates]]</noinclude>

Latest revision as of 12:30, 16 April 2022

This template is used 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

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.

Parameters

All parameters are case sensitive.

Parameter Allowed values Notes
1 Number The Generation number. Don't use roman numerals. Defaults to 3.
2 National Pokédex number The Pokémon's National Pokédex number. Defaults to 001.
3 String The Pokémon's name. Defaults to Bulbasaur.
nick String Optional. The Pokémon's nickname.
4 MFB? The Pokémon's gender. Defaults to ?.
5 Number The Pokémon's level. Defaults to 100
6 StringNone The Pokémon's held item. Defaults to None.

Syntax

The template is written as follows:

{{TwitchPoké|<<1>>|<<2>>|<<3>>|nick=|<<4>>|<<5>>|<<6>>}}

For example, {{TwitchPoké|3|401|Kricketot|nick=KRICKETOT|M|4|Yellow Shard}} creates:

401MS3.png KRICKETOT Lv.4
Held icon III.png Yellow Shard


Example

The template is used together with others within a table to show the contents of a PC.

{| class="roundy" style="border: 2px solid #464646; background: #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|B|5}}
{{TwitchPoké|3|433|Chingling|nick=CHINGLING|?|14}}
|}
Bill's PC
396MS3.png STARLY Lv.2
No item
401MS3.png KRICKETOT Lv.4
Held icon III.png Yellow Shard
399MS3.png BIDOOF/ Lv.5
No item
433MS3.png CHINGLING? Lv.14
No item