Module talk:S

Page contents not supported in other languages.
From Wikipedia

Tests about SPAN & COLOR in Module:S[edit]

Functions styleColor, styleWhole, spanColor, tagStyle, col3, sty
  • function col3, replace 1 text : - red -- green text -- blue - - from :
{{#invoke:S|col3|- green text -}}
  • function styleColor, color option from the color value : background-color:#8888FF; - from :
{{#invoke:S|styleColor|#8888FF}}
  • function styleWhole, whole style from the color option : style="background-color:#8888FF;" - from :
{{#invoke:S|styleWhole|background-color:#8888FF;}}
  • function spanColor, build a span with style color : text to color - from :
{{#invoke:S|spanColor|text to color|#88FF88;}}
  • function tagStyle, build a span with style color : Lua error in Module:S at line 177: attempt to concatenate local 'styles' (a nil value). - from :
{{#invoke:S|tagStyle|text to color|background-color:#8888FF;fontsize:22;}}

Tests about FULLPAGENAME in Module:S[edit]

Functions tpl2doc, doc2tpl, namespace
  • function tpl2doc, generate /documentation for template, from :
{{#invoke:s|tpl2doc|Template:Test1}}
Lua error in Module:S at line 199: attempt to index global 'frame' (a nil value).
  • function doc2tpl, to delete end page, from :
{{#invoke:s|doc2tpl|Template:Test1/documentation}}
Lua error in Module:S at line 209: bad argument #1 to 'find' (string expected, got table).
  • function namespace, to delete end page, from :
{{#invoke:s|namespace|Template:TestLib/documentation}}
Lua error in Module:S at line 217: bad argument #1 to 'find' (string expected, got table).
  • function namespace, to extract NAMESPACE, from :
{{#invoke:s|namespace|{{FULLPAGENAME}}}}
Lua error in Module:S at line 217: bad argument #1 to 'find' (string expected, got table).

Tests about MediaWiki Lua API in Module:S[edit]

Function wikiState
  • function wikiState, generate /documentation for template, from :
{{#invoke:s|wikiState}}
1 Lua error in Module:S at line 47: attempt to index field 'time' (a nil value).
2 Lua error in Module:S at line 48: attempt to index field 'page' (a nil value).
3 Lua error in Module:S at line 49: attempt to call field 'getSiteName' (a nil value).
4 Lua error in Module:S at line 50: attempt to call field 'getVersion' (a nil value).
5 Lua error in Module:S at line 51: attempt to call field 'getNamespaces' (a nil value).
6 Lua error in Module:S at line 52: attempt to index field 'lang' (a nil value).
7 Lua error in Module:S at line 53: attempt to index field 'lang' (a nil value).

Tests about LISTLINES in Module:S[edit]

Function listLines, BUG on May 28th 2012.
  • The function listLines, put 3 texts in lines begining with *. This detect a bug :
Only the first line begins OK, others begin with a tab without the list point.
{{#invoke:S|listLines|First line<br/>|Second line<br/>|Theard line<br/>}}

Lua error in Module:S at line 72: attempt to concatenate local 'line1' (a table value).