742
edits
S1tHSL4y3r (talk | contribs) (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.) |
S1tHSL4y3r (talk | contribs) 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. | ||
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{trainerheader}}</nowiki>}} | |||
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. | ||
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{trainerentry|RSE_Youngster.png|Youngster|Bob|312|5|</nowiki>}} | |||
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> | ||
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>265|Wurmple|♂|6||</nowiki>}} | |||
< | |||
Simply repeat the same step again for any additional Pokémon; only up to five more of course. | 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>. | ||
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>273|Seedot|♂|12|Miracle Seed|</nowiki><b><nowiki>}}</nowiki></b>}} | |||
< | |||
Before starting the next trainer, we insert a short separator line. | Before starting the next trainer, we insert a short separator line. | ||
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{trainerdiv}}</nowiki>}} | |||
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> | ||
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{trainerfooter|land|3}}</nowiki>}} | |||
</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. | ||
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki> | |||
{{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 | {{trainerdiv}} | ||
</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 | 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> | |||
edits