Template:Dochead: Difference between revisions

Ganaram inukshuk (talk | contribs)
m add none option to templates
Ganaram inukshuk (talk | contribs)
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 provides functionality to a template and should not be invoked directly; use the corresponding template instead: [[Template:{{{temp|{{ROOTPAGENAME}}}}}]].</span><br />
   | 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.
  <!-- Documentation template invoked outside Template/Module namespace -->
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>