Template:Dochead: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
leap of faith (again)
Tag: Replaced
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{lc: {{NAMESPACE}}}}
<includeonly>{{#invoke: Dochead | dochead}}</includeonly><noinclude>
| template =
  {{#switch: {{lc: {{{header|}}}}}
  | metatemplate = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This template is used to build other templates and should not be used standalone except for testing and simple usage.</span><br />
  | none        =
  | #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 and cannot be invoked by templates.</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 should not be invoked directly; use its corresponding [[Template:{{{temp|{{ROOTPAGENAME}}}}} | template]] instead.</span><br />
  | none      =
  | #default  = {{{header|}}}
  }}
  {{#ifeq: {{#titleparts: {{FULLPAGENAME}}||-1}} | doc | [[Category:Module documentation]] | [[Category:Lua modules]] }}
 
| #default = This template is in the wrong namespace. It should be used within the Template or Module namespace.
}}
</includeonly><noinclude>
{{documentation}}
{{documentation}}


[[Category:Documentation templates]]
[[Category:Documentation templates]]
</noinclude>
</noinclude>