User talk:Pokemaster97: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (→‎Template wikicode question: Make Pt more legible against that background color of yours)
Line 324: Line 324:
{{alldex|1|084|j=204|oj=199|h=095|oh=092|s=---|u2dex=---|kdex=094|kr=Central|adex=---|Doduo|2|Normal|Flying}}
{{alldex|1|084|j=204|oj=199|h=095|oh=092|s=---|u2dex=---|kdex=094|kr=Central|adex=---|Doduo|2|Normal|Flying}}
|}
|}
This is because of the following numeric comparison statement being executed by the template to determine whether or not to append {{sup/4|Pt}} to the Sdex number:
This is because of the following numeric comparison statement being executed by the template to determine whether or not to append <span style="background:white">{{sup/4|Pt}}</span> to the Sdex number:
<pre>{{#ifexpr: {{{s|001}}} > 151|{{Sup/4|Pt}}}}</pre>
<pre>{{#ifexpr: {{{s|001}}} > 151|{{Sup/4|Pt}}}}</pre>
The comparison <code><nowiki>{{{s|001}}} > 151</nowiki></code> crashes whenever <code>s=</code> is non-numeric. So, I want to modify my sandboxed copy of {{tl|alldex}} to not execute the numeric comparison above unless the input is purely numeric.
The comparison <code><nowiki>{{{s|001}}} > 151</nowiki></code> crashes whenever <code>s=</code> is non-numeric. So, I want to modify my sandboxed copy of {{tl|alldex}} to not execute the numeric comparison above unless the input is purely numeric.

Revision as of 22:49, 2 March 2019

Archive 1 Archive 2 Archive 3 Archive 4


015