Template:Dochead: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
revamp dochead so it categorizes templates and modules |
||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{#titleparts: {{FULLPAGENAME}}||-1}}|doc|[[Category: | <includeonly>{{#switch: {{lc: {{NAMESPACE}}}} | ||
| template = | |||
{{#switch: {{lc: {{{header|}}}}} | |||
| metatemplate = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This template is intended as a metatemplate and should not be used standalone except for simple use-cases or testing.</span><br /> | |||
| #default = {{{header|}}} | |||
}} | |||
{{#ifeq: {{#titleparts: {{FULLPAGENAME}}||-1}} | doc | [[Category:Template documentation]] | [[Category:Templates]] }} | |||
| module = | |||
{{#switch: {{lc: {{{header|noinvoke}}}}} | |||
| metamodule = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module primarily provides functionality for other Lua modules. To use this, add the following code to your module: {{{samplecode}}}</span><br /> | |||
| dualuse = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module may be used by templates by using <code>#invoke</code> or by adding the following code to your module: {{{samplecode}}}.</span><br /> | |||
| noinvoke = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module provides functionality to a template and should not be invoked directly; use the corresponding template instead: [[Template:{{{temp|{{ROOTPAGENAME}}}}}]].</span><br /> | |||
| #default = {{{header|}}} | |||
}} | |||
{{#ifeq: {{#titleparts: {{FULLPAGENAME}}||-1}} | doc | [[Category:Module documentation]] | [[Category:Lua templates]] }} | |||
| #default = | |||
<!-- Documentation template invoked outside Template/Module namespace --> | |||
}} | |||
</includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
[[Category:Documentation templates]] | [[Category:Documentation templates]] | ||
</noinclude> | </noinclude> | ||