Difference between revisions of "Template:Term"
From Maths
m (Updating error display) |
m (Template links need to be fully qualified (and cannot start with "/")) |
||
Line 1: | Line 1: | ||
− | {{#ifexist:Template data:Term/List/{{/ListingNameTemplate|1={{{1|}}}|t={{{t|}}}|s={{{s|}}}}}<!-- | + | {{#ifexist:Template data:Term/List/{{Term/ListingNameTemplate|1={{{1|}}}|t={{{t|}}}|s={{{s|}}}}}<!-- |
Macro listing exists | Macro listing exists | ||
Line 7: | Line 7: | ||
Here we substitute the macro | Here we substitute the macro | ||
− | -->{{:Template data:Term/List/{{/ListingNameTemplate|1={{{1|}}}|t={{{t|}}}|s={{{s|}}}}}|cap=|plural=|link|=}}<!-- | + | -->{{:Template data:Term/List/{{Term/ListingNameTemplate|1={{{1|}}}|t={{{t|}}}|s={{{s|}}}}}|cap=|plural=|link|=}}<!-- |
-->{{Term/Display/PostSub}}<!-- | -->{{Term/Display/PostSub}}<!-- | ||
Macro listing /DOESN'T/ exist | Macro listing /DOESN'T/ exist | ||
− | -->|{{Warning|1=No such [[Template data:Term/List|terminology definition]] found!}}, request: {{#if:{{/ListingNameTemplate|1={{{1|}}}|t={{{t|}}}|s={{{s|}}}}}|"{{/ListingNameTemplate|1={{{1|}}}|t={{{t|}}}|s={{{s|}}}}}"|''(Empty)''}}<!-- | + | -->|{{Warning|1=No such [[Template data:Term/List|terminology definition]] found!}}, request: {{#if:{{Term/ListingNameTemplate|1={{{1|}}}|t={{{t|}}}|s={{{s|}}}}}|"{{Term/ListingNameTemplate|1={{{1|}}}|t={{{t|}}}|s={{{s|}}}}}"|''(Empty)''}}<!-- |
-->}}<noinclude> | -->}}<noinclude> |
Revision as of 17:48, 3 February 2018
Warning:No such terminology definition found!, request: (Empty)
Contents
Changelog
- Prototype version, the templates and parameters all exist for flags but are not yet implemented. Alec (talk) 17:44, 3 February 2018 (UTC)
Purpose
- see: Template data:Term
To do
Handle flags, as the 2nd argument, eg ls or [ilmath]sl[/ilmath], possibly with some letters capitalised, represents
Test
- {{term|nzdoz|t=number}} -> non-zero divisor of zero
- {{term|nzdoz|s=Number Theory}} -> non-zero divisor of zero
- {{term|nzdoz|s|t=number}} -> non-zero divisors of zero
- {{term|nzdoz|sl|t=number}} -> non-zero divisors of zero
- {{term|Nzdoz|sl|t=number}} -> Non-zero divisors of zero
Tests
- /ListingNameTemplate
- {{/ListingNameTemplate|nzdoz|t=number}} -> nzdoz (Number Theory)
- {{/ListingNameTemplate|nzdoz|s=Number Theory}} -> nzdoz (Number Theory)
- {{/ListingNameTemplate|nzdoz|t=number|s=}} -> nzdoz (Number Theory)
- {{/ListingNameTemplate|nzdoz|t=|s=Number Theory}} -> nzdoz (Number Theory)
- {{/ListingNameTemplate|nzdoz|t=|s=}} -> nzdoz
- Flag stuff
- Link flag
- {{/DoLinkFormTemplate|sl|a|b|c}} -> a
- {{/DoLinkFormTemplate|LS|a|b|c}} -> a
- {{/DoLinkFormTemplate|l|a|b|c}} -> a
- {{/DoLinkFormTemplate||a|b|c}} -> c
- {{/DoLinkFormTemplate|s|a|b|c}} -> b
- Plural stuff
- {{/DoPluralFormTemplate|sl|a|b|c}} -> a
- {{/DoPluralFormTemplate|ls|a|b|c}} -> a
- {{/DoPluralFormTemplate|l|a|b|c}} -> b
- {{/DoPluralFormTemplate|s|a|b|c}} -> a
- {{/DoPluralFormTemplate||a|b|c}} -> c
- Link flag
- Capitalisation
- {{/DoCapsTemplate|xyz|a|b}} -> b
- {{/DoCapsTemplate|Xyz|a|b}} -> a