Module:BaseConvert/doc: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

16 December 2022

  • curprev 13:5413:54, 16 December 2022Perneric talk contribs 2,137 bytes +2,137 Created page with "Converts numbers to a specified base between 2 and 36, for use in templates such as {{tl|binary}}, {{tl|octal}}, {{tl|hexadecimal}}, etc. ==Usage== <syntaxhighlight lang="lua"> local BaseConvert = require('Module:BaseConvert') BaseConvert.convert({n = 14600926, base = 16}) -- returns 'DECADE' </syntaxhighlight> Arguments: *'''n''' - (required) the number to be converted, as a string. It may be a number instead, if the input base is 10. *'''base''' - (required) the base..."