User:Rical/Tests

Modules in dev.Edit

User:Rical/Tests, Module:MathRoman, valeurDeRomain.js, LocalSettings.php, vector.js, commons.js, monobook.js, common.js,

Test lua Module:MathRomanEdit

adapted from http://scribunto.wmflabs.org/index.php/Module_talk:MathRoman.lua

Script error: No such module "S".Edit

  • Example of invoke : {{ #invoke: module_name|function_name|arg1|arg2 |name1 = value1}}
  • integer2roman : 2012 = Script error: No such module "MathRoman".
from : {{#invoke:MathRoman|integer2roman| 2012 }}
  • i2r shortcut : 2012 = Script error: No such module "MathRoman".
from : {{#invoke:MathRoman|i2r| 2012 }}
  • roman2integer : MMXIJ = Script error: No such module "MathRoman".
from : {{#invoke:MathRoman|roman2integer| MMXIJ }}
  • r2i shortcut : MMXIJ = Script error: No such module "MathRoman".
from : {{#invoke:MathRoman|r2i| MMXIJ }}
  • testRomans with normal errors in roman numbers
from : {{#invoke:MathRoman|testRomans|%s<br/>}}

Script error: No such module "MathRoman".

Lua scripting test by tagEdit

<lua who="{{PAGENAME}}">
  function hello(s)
    return string.format(" Lua scripting is OK here : %s!", s)
  end
  return hello(who)
</lua>

<lua who="Rical/Tests">

 function hello(s)
   return string.format(" Lua scripting is OK here : %s!", s)
 end
 return hello(who)

</lua>

// 20120429 19:09 Pour importer le script, ajouter dans votre page vector.js le code suivant :
document.write('<script type="text/javascript" src="'
+ 'http://www.mediawiki.org/w/index.php?title=User:Rical/valeurDeRomain.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');