User:Boblers/switchbtn: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(switchbtn sample for clicktoggle)
 
(updating image template and correcting sample preformatted code)
Line 3: Line 3:
|
|
<div style="display:flex;flex-wrap:wrap;text-align:center;align-items:start;justify-content:center;">
<div style="display:flex;flex-wrap:wrap;text-align:center;align-items:start;justify-content:center;">
{{ArtLifeEntry/Image|file={{{filename}}}|hovertext={{{caption}}}|caption='''{{{caption|}}}'''|size=100px}}
{{User:Boblers/switchbtn/image|file={{{filename}}}|caption='''{{{caption|}}}'''|size=100px}}
</div>
</div>
|}</includeonly><noinclude>
|}</includeonly><noinclude>
Line 22: Line 22:


==Examples==
==Examples==
<pre>{{User:Boblers/switchbtn
<pre>{{User:Boblers/switchbtn|filename=0052Meowth.png|caption=Meowth|color1=Normal}}
|filename=0052Meowth.png
{{User:Boblers/switchbtn|filename=0052Meowth-Alola.png|caption=Alolan<br>Meowth|color1=Dark}}
|caption=Meowth
{{User:Boblers/switchbtn|filename=0052Meowth-Galar.png|caption=Galarian<br>Meowth|color1=Steel}}
|color1=Normal
{{User:Boblers/switchbtn|filename=0052Meowth-Gigantamax.png|caption=[[File:Dynamax icon.png|link=]] Gigantamax<br>Meowth|color1=Normal}}</pre>
|color2=
}}
{{User:Boblers/switchbtn
|filename=0052Meowth-Alola.png
|caption=Meowth
|color1=Dark
|color2=
}}
{{User:Boblers/switchbtn
|filename=0052Meowth-Galar.png
|caption=Meowth
|color1=Steel
|color2=
}}
{{User:Boblers/switchbtn
|filename=0052Meowth-Gigantamax.png
|caption=Meowth
|color1=Normal
|color2=
}}</pre>


{{User:Boblers/switchbtn
{{User:Boblers/switchbtn|filename=0052Meowth.png|caption=Meowth|color1=Normal}}
|filename=0052Meowth.png
{{User:Boblers/switchbtn|filename=0052Meowth-Alola.png|caption=Alolan<br>Meowth|color1=Dark}}
|caption=Meowth
{{User:Boblers/switchbtn|filename=0052Meowth-Galar.png|caption=Galarian<br>Meowth|color1=Steel}}
|color1=Normal
{{User:Boblers/switchbtn|filename=0052Meowth-Gigantamax.png|caption=[[File:Dynamax icon.png|link=]] Gigantamax<br>Meowth|color1=Normal}}
}}
{{User:Boblers/switchbtn
|filename=0052Meowth-Alola.png
|caption=Alolan<br>Meowth
|color1=Dark
}}
{{User:Boblers/switchbtn
|filename=0052Meowth-Galar.png
|caption=Galarian<br>Meowth
|color1=Steel
}}
{{User:Boblers/switchbtn
|filename=0052Meowth-Gigantamax.png
|caption=[[File:Dynamax icon.png|link=]] Gigantamax<br>Meowth
|color1=Normal
}}


</noinclude>
</noinclude>

Revision as of 07:52, 23 August 2023


Usage

{{User:Boblers/switchbtn
|filename=
|caption=
|color1=
|color2=
}}

Template fields

  • filename - Name of the file to be used.
  • caption - Caption to display below the file.
  • color1 - Color name to use for the background.
  • color2 (optional) - Color name to use for the border. If not provided, color1's value is used instead.

Examples

{{User:Boblers/switchbtn|filename=0052Meowth.png|caption=Meowth|color1=Normal}}
{{User:Boblers/switchbtn|filename=0052Meowth-Alola.png|caption=Alolan<br>Meowth|color1=Dark}}
{{User:Boblers/switchbtn|filename=0052Meowth-Galar.png|caption=Galarian<br>Meowth|color1=Steel}}
{{User:Boblers/switchbtn|filename=0052Meowth-Gigantamax.png|caption=[[File:Dynamax icon.png|link=]] Gigantamax<br>Meowth|color1=Normal}}
0052Meowth.png
Meowth
0052Meowth-Alola.png
Alolan
Meowth
0052Meowth-Galar.png
Galarian
Meowth
0052Meowth-Gigantamax.png
Dynamax icon.png Gigantamax
Meowth