Template:Dochead: Difference between revisions
m add none option to templates |
No edit summary |
||
| Line 11: | Line 11: | ||
{{#switch: {{lc: {{{header|noinvoke}}}}} | {{#switch: {{lc: {{{header|noinvoke}}}}} | ||
| metamodule = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module primarily provides functionality for other Lua modules and cannot be invoked by templates.</span><br /> | | metamodule = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module primarily provides functionality for other Lua modules and cannot be invoked by templates.</span><br /> | ||
| dualuse = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module may be invoked by templates using [[Template:{{{temp|{{ROOTPAGENAME}}}}}]], or used directly from other modules.</span><br /> | | dualuse = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module may be invoked by templates by using its corresponding [[Template:{{{temp|{{ROOTPAGENAME}}}}} | template]], or used directly from other modules.</span><br /> | ||
| noinvoke = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module | | noinvoke = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module should not be invoked directly; use its corresponding [[Template:{{{temp|{{ROOTPAGENAME}}}}} | template]] instead.</span><br /> | ||
| none = | | none = | ||
| #default = {{{header|}}} | | #default = {{{header|}}} | ||
| Line 18: | Line 18: | ||
{{#ifeq: {{#titleparts: {{FULLPAGENAME}}||-1}} | doc | [[Category:Module documentation]] | [[Category:Lua modules]] }} | {{#ifeq: {{#titleparts: {{FULLPAGENAME}}||-1}} | doc | [[Category:Module documentation]] | [[Category:Lua modules]] }} | ||
| #default = | | #default = This template is in the wrong namespace. It should be used within the Template or Module namespace. | ||
}} | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||