User:Tiddlywinks/MultiForms: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
⧼bulbapediamonobook-jumptonavigation⧽⧼bulbapediamonobook-jumptosearch⧽
Created page with "<div class="roundy" style="padding: 5px; background-color: #{{{{{2|Normal}}} color}}; border: 3px solid #{{{{{3|{{{2|Flying}}}}}} color dark}}; width: fit-content; margin: aut..."
 
explicit form count
Line 1: Line 1:
<div class="roundy" style="padding: 5px; background-color: #{{{{{2|Normal}}} color}}; border: 3px solid #{{{{{3|{{{2|Flying}}}}}} color dark}}; width: fit-content; margin: auto;  
<div class="roundy" style="padding: 5px; background-color: #{{{{{3|Normal}}} color}}; border: 3px solid #{{{{{4|{{{3|Flying}}}}}} color dark}}; width: fit-content; margin: auto;  
  display: grid; gap: 10px 5px; grid-template-areas:
  display: grid; gap: 10px 5px; grid-template-areas: {{User:Tiddlywinks/MultiForms/pattern{{{1|6}}}}}; "><!-- evobox grid OPEN -->
  'head head head head head head'
  'method0 method1 method2 method3 method4 method5'
  'stage0 stage1 stage2 stage3 stage4 stage5'; "><!-- evobox grid OPEN -->
<div style="grid-area: head"><!-- head OPEN -->
<div style="grid-area: head"><!-- head OPEN -->
<div style="display: grid; grid-template-columns: auto; text-align: {{{talign|center}}}; justify-content: {{{halign|space-around}}}; align-content: {{{valign|center}}}; border-bottom: 1px solid black"><!-- head grid OPEN -->
<div style="display: grid; grid-template-columns: auto; text-align: {{{talign|center}}}; justify-content: {{{halign|space-around}}}; align-content: {{{valign|center}}}; border-bottom: 1px solid black"><!-- head grid OPEN -->
{{{header|<big><big>{{{1|test}}}</big></big>}}}
{{{header|<big><big>{{{2|test}}}</big></big>}}}
</div><!-- head grid CLOSE -->
</div><!-- head grid CLOSE -->
</div><!-- head CLOSE --><noinclude>
</div><!-- head CLOSE --><noinclude>

Revision as of 13:29, 9 June 2023

test



Template documentation
Note: portions of the template sample may not be visible without values provided.

This template shows how a Pokémon change forms, if: any form can change into any other and it can change among three or more forms. If it only has two forms or if two forms can only change with another and not each other (branching), then User:Tiddlywinks/EvoBox/v2 should be used.

Parameters

Unnamed
  • 1: the number of forms the Pokémon has
  • 2: text to be placed in the header, describing the general method by which the Pokémon changes forms
  • 3: the primary color for this evobox (usually the first type of the Pokémon whose page this is on)
  • 4 (optional): the secondary color for this evobox (usually the second type of the Pokémon whose page this is on, if it has two types)
Named
  • header (optional): a replacement of the entire header, including formatting; this makes it easier to insert any custom code for the header if so desired
  • halign (optional): how elements in the method are horizontally aligned; this sets the "justify-content" property of the grid and has the options "center", "space-evenly", "space-around", "space-between", "start", and "end". Defaults to "space-around".
  • valign (optional): how elements in the method are vertically aligned; this sets the "align-content" property of the grid and has the same options as halign. Defaults to "center".
  • talign (optional): how all text in the method is aligned (may also affect things like images); this sets the "text-align" property of the grid and has the options "center", "left", "right", and "justify". Defaults to "center".

Usage

After {{Tiddlywinks/MultiForms}}, you must add User:Tiddlywinks/EvoMon and User:Tiddlywinks/EvoMethod calls for each form and form change method (their order does not matter). At the end, the original call must be closed with </div>

To show a form, call User:Tiddlywinks/EvoMon and User:Tiddlywinks/EvoMethod with parameters ranging from e=0 to e=5 (depending on the number of forms required).

Six forms is probably the limit for form changes that will be spelled out in this manner. Currently, Pikachu and Rotom reach the maximum of six. Furfrou has ten forms and only shows each form, not explicit methods (and Arceus and Silvally have more).

It is also possible to replace any User:Tiddlywinks/EvoMon or User:Tiddlywinks/EvoMethod with User:Tiddlywinks/EvoFree.