Template:Luaself: Difference between revisions
Template page
More actions
Created page with "<onlyinclude>{{Scribunto|pre={{{pre|}}}|self={{#if:{{{2|{{{3|}}}}}}|{{{1}}}{{{subpage|/doc}}}|<includeonly>{{PAGENAME}}</includeonly>}}|{{{2|{{#if:{{{3|}}}||{{{1|}}}}}}}}|{{{3|}}}|args={{{args|}}}|args2={{{args2|}}}|args3={{{args3|}}}|plain={{{plain|{{{4|}}}}}}}}</onlyinclude> {{documentation}}" |
(No difference)
|
Latest revision as of 02:04, 17 February 2025
Usage
A wrapper for {{scribunto}} that appends '/doc' to the first parameter and passes it as |self=. Params 2 and 3 are respectively passed as params 1 and 2.
Has one additional parameter: |subpage=, the value of which would take the place of '/doc' if provided. Use escape char '\' to indicate no subpage.
If both 2 and 3 are omitted, then the value of the first param is moved to the second position and the first position is replaced by {{PAGENAME}}. In other words, if used on Module:Buffer/doc, then the two following are equivalent:
{{luaself|:_}}
{{luaself|Buffer|:_}}