User:Ganaram inukshuk/Template sandbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
Line 14: Line 14:
{| style="width: 100%;"
{| style="width: 100%;"
|-
|-
| style="font-size: 0.75em;" |
| style="width: 50%;" | Infobox Title
| style="width: 50%;" | Infobox Title
| style="font-size: 0.75em;" |
|}
|}
|-
|-
Line 51: Line 49:
Dochead header:
Dochead header:


* invoke-only: This module's functions are not meant to be called by other modules; please use the corresponding template: <template-name>
* invoke-only: This module's functions are not meant to be called by other modules. Editors are advised to use the corresponding template: <template-name>
** Most lua-based templates should use this header.
* module-only: This module is primarily used as a library for other modules. To use these functions, add <sample-code> to your module.
* module-only: This module is primarily used as a library for other modules. To use these functions, add <sample-code> to your module.
** Some modules serve as libraries. Some libraries include #invoke-able functions, but if the majority of the functions are meant to be called by other modules, use this header.
* one-function: This module provides a function that can be used by other modules. To use this function, add <sample-code> to your module.
* one-function: This module provides one function that can be used by other modules. To use this function, add <sample-code> to your module.
* dual-use: This module's functions are available for other modules to use by adding <sample-code>, or for templates to use by using invoke.
** Some modules only provide one function.
* dual-use: This module's functions are available for other modules by adding <sample-code> to your module, or by using invoke.
** Some library modules have two versions of many of its functions: one for modules and one that can be called using #invoke. If this is the case, use this header.
* none: none.
* none: none.
** No header.
{{Infobox|Title={{Numlinks 2-num|Current Num 1=5|Current Num 2=12|Link Format=%sL&nbsp;%ss}}|Header 1='''Scale info'''|Header 2=Step Pattern|Data 2=LssLssLsssLssLsss|Header=<hr>}}
{{Infobox|Title={{Numlinks 2-num|Current Num 1=5|Current Num 2=12|Link Format=%sL&nbsp;%ss}}|Header 1='''Scale info'''|Header 2=Step Pattern|Data 2=LssLssLsssLssLsss|Header=<hr>}}


Line 92: Line 85:
{{Mbox|text=Messagebox of '''style''' type. Typically used for pages whose writing style doesn't fit the wiki's standards.|type=style}}
{{Mbox|text=Messagebox of '''style''' type. Typically used for pages whose writing style doesn't fit the wiki's standards.|type=style}}


{{Mbox|text=Messagebox of '''ready''' type. Used to denote pages with reliable content (like Wikipedia's "good articles") or features that are ready.|type=ready}}
{{Mbox|text=Messagebox of '''ready''' type. Used to denote pages with reliable content (like Wikipedia's "good articles") or features (such as templates) that are ready for use.|type=ready}}


{{Mbox|text=Messagebox of '''notice''' type. Used to denote general notices. Most messageboxes are of this type.|type=notice}}
{{Mbox|text=Messagebox of '''notice''' type. Used to denote general notices. Most messageboxes are of this type.|type=notice}}