Template:Lua: Difference between revisions

45 bytes added ,  10 years ago
allow overriding the category
(use {{PAGENAME}} to sort the category)
(allow overriding the category)
Line 7:
| {{#switch: {{SUBPAGENAME}}
| doc | sandbox | sandbox2 | testcases =
| #default = [[Category:{{#if: {{{category|}}} | {{{category}}} | Lua-based templates }}|{{PAGENAME}}]]
}}
}}
Anonymous user