630
edits
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
var numInput = new OO.ui.NumberInputWidget({id: 'numeral'}); | var numInput = new OO.ui.NumberInputWidget({id: 'numeral'}); | ||
$('#ir-roman-numeral-converter').append('<div class=\"mw-inputbox-centered\"> ', numInput.$element, ' \ | $('#ir-roman-numeral-converter').append('<div class=\"mw-inputbox-centered\"> ', numInput.$element, ' \ | ||
<input type=\"submit\" onclick=\"submit()\" class=\"mw-ui-button mw-ui-progressive webfonts-changed\" value=\"Convert | <input type=\"submit\" onclick=\"submit()\" class=\"mw-ui-button mw-ui-progressive webfonts-changed\" value=\"Convert Number\"> \ | ||
<div id=\"result\"></div> \ | <div id=\"result\"></div> \ | ||
<script> \ | <script> \ | ||
Line 44: | Line 44: | ||
action: \'expandtemplates\', \ | action: \'expandtemplates\', \ | ||
prop: \'wikitext\', \ | prop: \'wikitext\', \ | ||
text:\'{{#invoke:Roman Numeral| main | | text:\'{{#invoke:Roman Numeral| main |\' + numeral + \' | explanation=yes }}\' \ | ||
}).done( function ( data ) { \ | }).done( function ( data ) { \ | ||
resultDiv.innerHTML = data.expandtemplates.wikitext; \ | resultDiv.innerHTML = data.expandtemplates.wikitext; \ |