User talk:Werdnae: Difference between revisions

no edit summary
No edit summary
Line 71: Line 71:
Hi Werd. In the [[Template:TrettaInfobox|Tretta Infobox]], there is a switch that defines what category an article will belong to based on a numeric parameter. Due to the number naming conventions, I now need seprate outcomes for "1" and "01". The switch will always output whichever is first since it doesn't take leading zeros into account. Is there a way around this? Thanks. {{unsigned|Nuva-kal}}
Hi Werd. In the [[Template:TrettaInfobox|Tretta Infobox]], there is a switch that defines what category an article will belong to based on a numeric parameter. Due to the number naming conventions, I now need seprate outcomes for "1" and "01". The switch will always output whichever is first since it doesn't take leading zeros into account. Is there a way around this? Thanks. {{unsigned|Nuva-kal}}
:I think I've fixed it. Not an especially ideal solution, but I've made it pad out the right hand side of the outcomes to (at least) two characters long, using "a" as the padding character. (i.e. 1 is now 1a while 01 remains 01). Hopefully that should prevent them being numerically identical, without creating future issues. If you do need to use 1a, etc. in there in future, you can just change the padding character (in both the padright and the relevant outcomes) to something else which doesn't interfere. <span class="sc">[[User:Werdnae|<span style="color:#2D4B98;">Werdnae</span>]]</span> <small>[[User talk:Werdnae|<span style="color:#009000;">(talk)</span>]]</small> 22:08, 4 April 2014 (UTC)
:I think I've fixed it. Not an especially ideal solution, but I've made it pad out the right hand side of the outcomes to (at least) two characters long, using "a" as the padding character. (i.e. 1 is now 1a while 01 remains 01). Hopefully that should prevent them being numerically identical, without creating future issues. If you do need to use 1a, etc. in there in future, you can just change the padding character (in both the padright and the relevant outcomes) to something else which doesn't interfere. <span class="sc">[[User:Werdnae|<span style="color:#2D4B98;">Werdnae</span>]]</span> <small>[[User talk:Werdnae|<span style="color:#009000;">(talk)</span>]]</small> 22:08, 4 April 2014 (UTC)
== Help in creating Template pages ==
Hello Werdnae, sorry to ask this of you, but might it possible for you to help me in creating the page Template:Balltypeh and Template:Balltype? Since I am a new user, it is not possible for me to create a new template myself. I know this request should go somewhere else, but I do not know any of the users here on Bulbapedia so I do not know who is certified to create new articles. Currently I am working on this: http://bmgf.bulbagarden.net/f195/super-training-pokemon-ball-type-page-project-167935/
I just need the template page to be created so I can I fill it in and use it for the Super Training page. Once again, sorry for the bother and pardon my sudden request. Since this was my first time creating a template, I learned it by using the rdex and ndex codes. This doesn't create a plagiarism issue does it? If I only use the other codes as reference and base for the new ones I will create. Thanks in advance! [[User:Samhiuy|Samhiuy]] ([[User talk:Samhiuy|talk]]) 12:12, 5 August 2014 (UTC)
30

edits