Difference between revisions of "Template:Luaself/doc"
Jump to navigation
Jump to search
imported>Codehydro (←Created page with '{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> ==...') |
imported>Andrybak (categorization) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 7: | Line 7: | ||
Has one additional parameter: {{para|subpage}}, the value of which would take the place of '/doc' if provided. Use [[Module:Escape|escape]] char '\' to indicate no subpage. | Has one additional parameter: {{para|subpage}}, the value of which would take the place of '/doc' if provided. Use [[Module:Escape|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 <nowiki>{{PAGENAME}}</nowiki>. In other words, if used on [[Module:Buffer/doc]], then the two following are equivalent: |
| + | <pre>{{luaself|:_}} | ||
| + | {{luaself|Buffer|:_}}</pre> | ||
| + | |||
| + | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| − | + | [[Category:Documentation see also templates]] | |
| + | [[Category:Module documentation pages|*]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 10:23, 11 July 2020
| This is a documentation subpage for Template:Luaself. It contains usage information, categories and other content that is not part of the original template page. |
Usage
A wrapper for Template:T 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|:_}}