Difference between revisions of "Template:IsANumber"
From Space Engineers Wiki
Vox Serico (talk | contribs) (This is a hacky way of testing whether a string is an whole number or text.) |
Vox Serico (talk | contribs) m (Grammar fixes) |
||
Line 11: | Line 11: | ||
-->{{#var:IsANumber}}</onlyinclude> | -->{{#var:IsANumber}}</onlyinclude> | ||
− | This is a hacky way of testing whether a string is | + | This is a hacky way of testing whether a string is a whole number or text. |
− | + | Its intended use is to differentiate [https://forum.keenswh.com/threads/7404133 deprecated forum URL:s] and the [https://support.keenswh.com/spaceengineers/pc/announcement/update-1-197-planet-pertam-new-features-blocks-wasteland-pack new announcement URL:s] for [[Change Log|game update]] links in the [[Template:Forum|Forum]] template. | |
This assumes that the number is 7 digits or less, as the last update forum url had this length, and because [[Special:Version|loops are unavailable at this time in this wiki]]. | This assumes that the number is 7 digits or less, as the last update forum url had this length, and because [[Special:Version|loops are unavailable at this time in this wiki]]. |
Latest revision as of 20:19, 18 February 2021
false
This is a hacky way of testing whether a string is a whole number or text.
Its intended use is to differentiate deprecated forum URL:s and the new announcement URL:s for game update links in the Forum template.
This assumes that the number is 7 digits or less, as the last update forum url had this length, and because loops are unavailable at this time in this wiki.