Template:Dochead/doc: Difference between revisions
update to reflect template changes |
mNo edit summary |
||
| Line 19: | Line 19: | ||
* <code>dualuse</code>: <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module may be invoked by templates by using its corresponding template, or used directly from other modules.</span> | * <code>dualuse</code>: <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module may be invoked by templates by using its corresponding template, or used directly from other modules.</span> | ||
* <code>noinvoke</code> (default): <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module should not be invoked directly; use its corresponding template instead.</span> | * <code>noinvoke</code> (default): <span style{{=}}"margin-bottom: 0.5em;">'''Note:''' This module should not be invoked directly; use its corresponding template instead.</span> | ||
When used on modules, this template will attempt to link to its corresponding template of the same name. If the template and module names differ, it can be passed in using <code>temp=Template name goes here</code>. | |||
In either case, passing in <code>header=none</code> results in no message being displayed. A custom message may also be passed in. | In either case, passing in <code>header=none</code> results in no message being displayed. A custom message may also be passed in. | ||
=== See also === | === See also === | ||
* [[Template: Documentation]] – inserts a documentation section onto a template or module. | * [[Template: Documentation]] – inserts a documentation section onto a template or module. | ||
* [[Template: Doc head Wikipedia]] – similar template, used mainly for templates borrowed from Wikipedia. | * [[Template: Doc head Wikipedia]] – similar template, used mainly for templates borrowed from Wikipedia. | ||