User:Boblers/switchbtn: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(updating image template and correcting sample preformatted code) |
(putting clicktoggle into the button code) |
||
Line 1: | Line 1: | ||
<includeonly>{| class="roundy" style="display:inline-block; margin:auto; background:#{{{{{color1|}}} color light}}; border: 3px solid #{{{{{color2|{{{color1|}}}}}} color dark}}; border-collapse: separate" | <includeonly>{| class="roundy clicktoggle" style="display:inline-block; margin:auto; background:#{{{{{color1|}}} color light}}; border: 3px solid #{{{{{color2|{{{color1|}}}}}} color dark}}; border-collapse: separate;" data-type="set" data-for="group,target{{{target|1}}}" data-active-style="display:inline-block; margin:auto; background:#FFFFFF; border: 3px solid #{{{{{color2|{{{color1|}}}}}} color dark}}; border-collapse: separate;" | ||
|- | |- | ||
| | | | ||
Line 22: | Line 22: | ||
==Examples== | ==Examples== | ||
<pre>{{User:Boblers/switchbtn|filename=0052Meowth.png|caption=Meowth|color1=Normal}} | <pre>{{User:Boblers/switchbtn|filename=0052Meowth.png|caption=Meowth|color1=Normal|target=1}} | ||
{{User:Boblers/switchbtn|filename=0052Meowth-Alola.png|caption=Alolan<br>Meowth|color1=Dark}} | {{User:Boblers/switchbtn|filename=0052Meowth-Alola.png|caption=Alolan<br>Meowth|color1=Dark|target=2}} | ||
{{User:Boblers/switchbtn|filename=0052Meowth-Galar.png|caption=Galarian<br>Meowth|color1=Steel}} | {{User:Boblers/switchbtn|filename=0052Meowth-Galar.png|caption=Galarian<br>Meowth|color1=Steel|target=3}} | ||
{{User:Boblers/switchbtn|filename=0052Meowth-Gigantamax.png|caption=[[File:Dynamax icon.png|link=]] Gigantamax<br>Meowth|color1=Normal}}</pre> | {{User:Boblers/switchbtn|filename=0052Meowth-Gigantamax.png|caption=[[File:Dynamax icon.png|link=]] Gigantamax<br>Meowth|color1=Normal|target=4}}</pre> | ||
{{User:Boblers/switchbtn|filename=0052Meowth.png|caption=Meowth|color1=Normal}} | {{User:Boblers/switchbtn|filename=0052Meowth.png|caption=Meowth|color1=Normal|target=1}} | ||
{{User:Boblers/switchbtn|filename=0052Meowth-Alola.png|caption=Alolan<br>Meowth|color1=Dark}} | {{User:Boblers/switchbtn|filename=0052Meowth-Alola.png|caption=Alolan<br>Meowth|color1=Dark|target=2}} | ||
{{User:Boblers/switchbtn|filename=0052Meowth-Galar.png|caption=Galarian<br>Meowth|color1=Steel}} | {{User:Boblers/switchbtn|filename=0052Meowth-Galar.png|caption=Galarian<br>Meowth|color1=Steel|target=3}} | ||
{{User:Boblers/switchbtn|filename=0052Meowth-Gigantamax.png|caption=[[File:Dynamax icon.png|link=]] Gigantamax<br>Meowth|color1=Normal}} | {{User:Boblers/switchbtn|filename=0052Meowth-Gigantamax.png|caption=[[File:Dynamax icon.png|link=]] Gigantamax<br>Meowth|color1=Normal|target=4}} | ||
</noinclude> | </noinclude> |
Revision as of 12:48, 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|target=1}} {{User:Boblers/switchbtn|filename=0052Meowth-Alola.png|caption=Alolan<br>Meowth|color1=Dark|target=2}} {{User:Boblers/switchbtn|filename=0052Meowth-Galar.png|caption=Galarian<br>Meowth|color1=Steel|target=3}} {{User:Boblers/switchbtn|filename=0052Meowth-Gigantamax.png|caption=[[File:Dynamax icon.png|link=]] Gigantamax<br>Meowth|color1=Normal|target=4}}
Meowth |
Alolan Meowth |
Galarian Meowth |
Gigantamax Meowth |