Template:Dochead: Difference between revisions

Ganaram inukshuk (talk | contribs)
m wording
Ganaram inukshuk (talk | contribs)
leap of faith (again)
Tag: Replaced
 
(15 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:''' {{#ifeq: {{SUBPAGENAME}} | doc | This template | '''{{ARTICLEROOTPAGENAME}}''' }} is intended as a metatemplate — a template used to build other templates — and typically should not be used standalone except for testing or simple use-cases.</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:''' {{#ifeq: {{SUBPAGENAME}} | doc | This module | '''{{ARTICLEROOTPAGENAME}}''' }} primarily provides functionality for other Lua modules and cannot be used by templates by using <code><nowiki>#invoke</nowiki></code>.</span><br />
  | dualuse    = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' {{#ifeq: {{SUBPAGENAME}} | doc | This module | '''{{ARTICLEROOTPAGENAME}}''' }} may be used by templates by using <code>#invoke</code> or directly from other modules.</span><br />
  | noinvoke  = <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' {{#ifeq: {{SUBPAGENAME}} | doc | This module | '''{{ARTICLEROOTPAGENAME}}''' }} provides functionality to a template and should not be invoked directly; use the corresponding template instead: [[Template:{{{temp|{{ROOTPAGENAME}}}}}]].</span><br />
  | none      =
  | #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>