Template:Ps2configrev: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (Sadly the template is not going to work with a simple {{switch}}, is needed to do some math calculations using ranges, i will take a look at it other day, by now this was just a bad idea)
mNo edit summary
Line 21: Line 21:


| #default  = ('''Unknown config revision, please help <strike>adding</strike> breaking the template {{edit|Template:ps2configrev|<nowiki>{{ps2configrev}}</nowiki>}}''')
| #default  = ('''Unknown config revision, please help <strike>adding</strike> breaking the template {{edit|Template:ps2configrev|<nowiki>{{ps2configrev}}</nowiki>}}''')
}}<noinclude>[[Category:Games]]</noinclude>
}}<noinclude>
 
<br>
== Notes ==
It could be handy to do the conversion in this sequence: '''1) hexLE to hexBE, 2) hexBE to dec, 3) Math expression to compare the value in ranges'''<br>
I been trying to do step 2 using this template https://en.wikipedia.org/wiki/Template:Hex2dec Is dependant of the module https://en.wikipedia.org/wiki/Module:BaseConvert Actually we dont need the template because we can call the module BaseConvert directly in a single line this way: <nowiki>{{#invoke:BaseConvert|16to10|FFFF}}</nowiki><br>
We already have a template named https://www.psdevwiki.com/ps3/Template:Hex2dec ... but is not doing the conversion<br>
We already have the module BaseConvert installed in this wiki, listed as working https://www.psdevwiki.com/ps3/Special:Version but doesnt seems to work, it looks we cant "#invoke" it. Im wondering if is because we need to copy also the script into https://www.psdevwiki.com/ps3/Module:BaseConvert<br>
So... by now i dont know how to do '''steps 1 and 2''' of the conversion process
[[Category:Games]]</noinclude>

Revision as of 07:45, 27 September 2021


Notes

It could be handy to do the conversion in this sequence: 1) hexLE to hexBE, 2) hexBE to dec, 3) Math expression to compare the value in ranges
I been trying to do step 2 using this template https://en.wikipedia.org/wiki/Template:Hex2dec Is dependant of the module https://en.wikipedia.org/wiki/Module:BaseConvert Actually we dont need the template because we can call the module BaseConvert directly in a single line this way: {{#invoke:BaseConvert|16to10|FFFF}}
We already have a template named https://www.psdevwiki.com/ps3/Template:Hex2dec ... but is not doing the conversion
We already have the module BaseConvert installed in this wiki, listed as working https://www.psdevwiki.com/ps3/Special:Version but doesnt seems to work, it looks we cant "#invoke" it. Im wondering if is because we need to copy also the script into https://www.psdevwiki.com/ps3/Module:BaseConvert
So... by now i dont know how to do steps 1 and 2 of the conversion process