Changes

Jump to navigation Jump to search
no edit summary
<noinclude>
Use this template to convert a roman page number into a negative arabic number, where zero iz -10000100000. Thus, the roman number is converted into arabic value, and the result is -10000 100000 + value. For instance, if <code><nowiki>value=x</nowiki></code>, the template will return -999099990. If <code><nowiki>value=iv</nowiki></code>, the template will return -999699996. If an empty string is passed as a value, an empty string is returned. All non roman characters are ignored. This is useful when storing the first page number of a publication for sorting purposes.
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
-->|<!--
--><!-- the value is not arabic: assume its roman and try to convert
-->{{#expr: {{#roman: {{{value|}}}|}} - 10000 100000 }}<!--
--><!--
-->}}<!-- if is number
--></includeonly>

Navigation menu