User:S1tHSL4y3r/Bandsox: Difference between revisions

no edit summary
(WOMG NEW PAGGGEEE *shock* : Bandsox, a bit like a Sandbox but not. →‎Trainer template: Tutorial to using it; →‎The Bottom: Well, it's only logical.)
 
No edit summary
Line 6: Line 6:




==Trainer template==
==Home-made templates==
Some templates I've made, mostly for my convenience.
 
====Codediv====
A styled div to display coding. Can change to any border color.
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{User:S1tHSL4y3r/Template:Codediv|blue|code code code}}</nowiki>}}
 
{{User:S1tHSL4y3r/Template:Codediv|orange|<nowiki>{{User:S1tHSL4y3r/Template:Codediv|orange|code code code}}</nowiki>}}
 
{{User:S1tHSL4y3r/Template:Codediv|#53FC00|<nowiki>{{User:S1tHSL4y3r/Template:Codediv|#53FC00|code code code}}</nowiki>}}
 
 
==Trainer template tutorial==
Here's a run through on how to use the Trainer template to display a table of trainers and their Pokémon.
Here's a run through on how to use the Trainer template to display a table of trainers and their Pokémon.


Line 15: Line 27:
First off, we start with the <b>header</b>. This contains all the column headings.
First off, we start with the <b>header</b>. This contains all the column headings.


<div style="border: dashed blue; border-width: 1px 0px; padding: 10px; margin: 16px 0px;">
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{trainerheader}}</nowiki>}}
<code><nowiki>{{trainerheader}}</nowiki></code>
</div>


Next, we'll add the first trainer, which happens to be Youngster Bob.
Next, we'll add the first trainer, which happens to be Youngster Bob.


<div style="border: dashed blue; border-width: 1px 0px; padding: 10px; margin: 16px 0px;">
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{trainerentry|RSE_Youngster.png|Youngster|Bob|312|5|</nowiki>}}
<code><nowiki>{{trainerentry|RSE_Youngster.png|Youngster|Bob|312|5|</nowiki></code>
</div>


Notice how each property is separated by a <code>|</code>. There are 5 compulsory properties, in order they go:
Notice how each property is separated by a <code>|</code>. There are 5 compulsory properties, in order they go:
<center><b>image|class|name|winnings|no. of Pokémon|</b></center>
<center><b>image|class|name|winnings|no. of Pokémon|</b></center>


Then you add the Pokémon properties, continuing straight after that last <code>|</code>:
Then you add the next 5 Pokémon properties, continuing straight after that last <code>|</code>:
<center><b>[[Ndex]] no.|name|</b>♀ <b>or</b> ♂<b>|lv.|item|</b></center>
<center><b>[[Ndex]] no.|name|</b>♀ <b>or</b> ♂<b>|lv.|item|</b></center>


<div style="border: dashed blue; border-width: 1px 0px; padding: 10px; margin: 16px 0px;">
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>265|Wurmple|♂|6||</nowiki>}}
<code>265|Wurmple|♂|6||</code>
</div>


Simply repeat the same step again for any additional Pokémon; only up to five more of course. {{color|FF0000|Ensure the number of Pokémon you add is the same number you put for the fifth property, <b>no. of Pokémon</b>!!!}} Then, to close, add <code>}}</code> after the last <code>|</code>.
Simply repeat the same step again for any additional Pokémon; only up to five more of course. <span style="color:red">Ensure the number of Pokémon you add is the same number you put for the fifth property, <b>no. of Pokémon</b>!!!</span> Then, to close, add <code>}}</code> after the last <code>|</code>.


<div style="border: dashed blue; border-width: 1px 0px; padding: 10px; margin: 16px 0px;">
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>273|Seedot|♂|12|Miracle Seed|</nowiki><b><nowiki>}}</nowiki></b>}}
<code>273|Seedot|♂|12|Miracle Seed|<b>}}</b></code>
</div>


Before starting the next trainer, we insert a short separator line.
Before starting the next trainer, we insert a short separator line.


<div style="border: dashed blue; border-width: 1px 0px; padding: 10px; margin: 16px 0px;">
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{trainerdiv}}</nowiki>}}
<code><nowiki>{{trainerdiv}}</nowiki></code>
</div>


Then it's just a matter of doing the same thing again for every trainer. After the last one, no separator line is needed, instead, we complete the whole table by adding a <b>footer</b>. There are two properties here, one for background, the other for the game generation:
Then it's just a matter of doing the same thing again for every trainer. After the last one, no separator line is needed, instead, we complete the whole table by adding a <b>footer</b>. There are two properties here, one for background, the other for the game generation:
<center><b>land/water/cave/road/snow|gen</b></center>
<center><b>land/water/cave/road/snow|gen</b></center>


<div style="border: dashed blue; border-width: 1px 0px; padding: 10px; margin: 16px 0px;">
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{trainerfooter|land|3}}</nowiki>}}
<code><nowiki>{{trainerfooter|land|3}}</nowiki></code>
</div>
</div>
</div>


Line 78: Line 78:
Now, let's take a look at all the code together if we were just doing the first two trainers, Youngster Bob and Battle Girl Kiesha.
Now, let's take a look at all the code together if we were just doing the first two trainers, Youngster Bob and Battle Girl Kiesha.


<div style="border: dashed blue; border-width: 1px 0px; padding: 10px; margin: 16px 0px;">
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>
<code><nowiki>{{trainerheader}}</nowiki><br>
{{trainerheader}}
<nowiki>{{trainerentry|RSE_Youngster.png|Youngster|Bob|312|5|265|Wurmple|♂|6||261|Poochyena|♂|7|Pecha Berry|270|Lotad|♂|9||263|Zigzagoon|♀|10|Oran Berry|273|Seedot|♂|12|Miracle Seed|}}</nowiki><br>
</nowiki><br><nowiki>
<nowiki>{{trainerdiv}}</nowiki><br>
{{trainerentry|RSE_Youngster.png|Youngster|Bob|312|5|265|Wurmple|♂|6||261|Poochyena|♂|7|Pecha Berry|270|Lotad|♂|9||263|Zigzagoon|♀|10|Oran Berry|273|Seedot|♂|12|Miracle Seed|}}
<nowiki>{{trainerentry|RSE_BattleGirl.png|Battle Girl|Kiesha|820|2|335|Zangoose|♀|28||336|Seviper|♀|28||}}</nowiki><br>
</nowiki><br><nowiki>
<nowiki>{{trainerfooter|land|3}}</nowiki></code>
{{trainerdiv}}
</div>
</nowiki><br><nowiki>
{{trainerentry|RSE_BattleGirl.png|Battle Girl|Kiesha|820|2|335|Zangoose|♀|28||336|Seviper|♀|28||}}
</nowiki><br><nowiki>
{{trainerfooter|land|3}}</nowiki>
}}


And always make sure you preview your changes first before saving them, there's always that annoying chance that you've forgotten to add something somewhere.
And always make sure you preview your changes first before saving them, there's always that annoying chance that you've forgotten to add something somewhere.


In the future, a column for the amount of <b>EXP.</b> gained from defeating each Pokémon may be added, so if you want, record the EXP. in comment tags <code><nowiki><!-- comment --></nowiki></code> underneath the table. Also, perhaps one for displaying Types will be coming as well.
In the future, a column for the amount of <b>EXP.</b> gained from defeating each Pokémon will be added, and perhaps one for displaying Types as well.
 
 
==Testing room==
<p style="text-align:center; color:red;"><b><big>DANGER:</big> Various subjects under testing! Keep out!</b></p>
 
 
 
 
 




742

edits