Module:TNTTools/doc: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Template for discussion/dated|action=|page=TNTTools/doc|link=Wikipedia:Templates for discussion/Log/2019 October 25#Module:TNTTools|type=module|bigbox=yes}} |
{{Template for discussion/dated|action=|page=TNTTools/doc|link=Wikipedia:Templates for discussion/Log/2019 October 25#Module:TNTTools|type=module|bigbox=yes}} |
||
Contains functions linked to [[Module:TNT]], which at the same time make calls to multilingual tables, located in Commons. |
Contains functions linked to [[Module:TNT]], which at the same time make calls to multilingual tables, located in Commons, for the creation of [[mw:Multilingual_Templates_and_Modules|modules and multilingual templates]]. The '''[[Module:SimpleArgs]]''' uses these tables for error messages. |
||
TNTTools has: |
|||
* '''Question functions''': with boolean or numerical indexed return. To be called from other modules or from templates. With: |
* '''Question functions''': with boolean or numerical indexed return. To be called from other modules or from templates. With: |
||
** Case sensitive option. |
** Case sensitive option. |
||
** Possibility of '''more than one translated text value''' (where each value is separated by "|"). |
** Possibility of '''more than one translated text value''' (where each value is separated by "|"). |
||
* To put aside write, adding "I18n/" as a prefix and ".tab" extension as a suffix for the table names. |
* To put aside write, adding "I18n/" as a prefix and ".tab" extension as a suffix for the table names. |
||
* You can find '''examples''' of direct use from templates in: |
|||
**{{tl|TNTTools/Tests/GetStr}} |
|||
**{{tl|TNTTools/Tests/WordFound}} |
|||
**{{tl|TNTTools/Tests/WordIdx}} |
|||
**{{tl|TNTTools/Tests/WordIdxE}} |
|||
⚫ | |||
For example, with a parameter that has two or more meanings (or in English and localized language): |
For example, with a parameter that has two or more meanings (or in English and localized language): |
||
Line 32: | Line 25: | ||
return p |
return p |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
⚫ | |||
<includeonly> |
<includeonly> |