Cèṭa'an:Scribunto
Robâ
Usage
[beccè' sombher]This helps with the creation of doc pages for Lua metamodules that reference the Cèṭa'an:Scribunto/helper or specific function within it.
{{scribunto
|<!--anchor-->
|<!--link text-->
}}
If an anchor is provided, the link will be wrapped in <code>...</code>. For example:{{scribunto|mw.html.create}}
{{scribunto|HTML_library|mw.html}}
Advanced
[beccè' sombher]|self= and |args=
[beccè' sombher]|self={{PAGENAME}} to reference your own functions and |args= to specify args, like so:{{scribunto|self=Buffer/doc|:_all|args=...}}
If the first char Cèṭa'an:Scribunto/helper the pattern ^[:%.] then title specified by |self= will be inserted in front, minus any subpages, unless Cèṭa'an:Scribunto/helperd with the \ char:
{{scribunto|self=Example\/testcases/doc|.test1|args=string}}
no 'main'
[beccè' sombher]\ as the first char in the function name to make a self-reference:{{scribunto|self=Buffer/doc|\|args=...}}
***, then the first param will be substituted (or the self-reference, as applicable): {{scribunto|self=Buffer|\|require('Module:***')|args=...}}
|args2= and |args3=
[beccè' sombher]{{scribunto|table.insert|args=table, value|args2=table, pos, value}}
Cèṭa'an:Scribunto/helper
|plain=
[beccè' sombher]If set to anything, the result will no longer be wrapped in <code>...</code>.
See also
[beccè' sombher]- {{Scribunto/helper}} and {{Scribunto/helper2}}, two helper templates. These should not be called directly.
- {{Luaself}}, a wrapper template that makes Lua self-references easier.
- Module:Buffer/doc, an example of a doc that uses this
- {{Lua}}
- Category:Lua metamodules