Difference between revisions of "Template:Term/Definition1"
From Maths
(Adding plural support) |
(Documenting plural, if outcomes were wrong way round, fixing those) |
||
Line 2: | Line 2: | ||
do link | do link | ||
− | -->|[[{{{link|}}}|{{#if:{{{2|}}}|{{ucfirst:{{#if:{{{3|}}}|{{{ | + | -->|[[{{{link|}}}|{{#if:{{{2|}}}|{{ucfirst:{{#if:{{{3|}}}|{{{text|}}}|{{{plural|}}}}}}}|{{#if:{{{3|}}}|{{{text|}}}|{{{plural|}}}}}}}]]<!-- |
don't do link | don't do link | ||
− | -->|{{#if:{{{2|}}}|{{ucfirst:{{#if:{{{3|}}}|{{{ | + | -->|{{#if:{{{2|}}}|{{ucfirst:{{#if:{{{3|}}}|{{{text|}}}|{{{plural|}}}}}}}|{{#if:{{{3|}}}|{{{text|}}}|{{{plural|}}}}}}}<!-- |
For the text I use: | For the text I use: | ||
− | COMMENT: {{#if:{{{3|}}}|{{{ | + | COMMENT: {{#if:{{{3|}}}|{{{text|}}}|{{{plural|}}}}}<--THIS IS NOT CODE |
-->}}<noinclude> | -->}}<noinclude> | ||
Line 22: | Line 22: | ||
* '''link''' - link text | * '''link''' - link text | ||
* '''text''' - the text to display. | * '''text''' - the text to display. | ||
+ | * '''plural''' - plural text to display | ||
</noinclude> | </noinclude> |
Revision as of 19:35, 3 February 2018
Name
The 1 indicates "first version" - so I can change it without trashing pages if needed.
Changelog
Parameters
- "link" - something for link, nothing for not to link
- "capitalise" - something to enforce capitlisation, nothing to leave unchanged - which may be capitalised already
- "plural" - something means yes, else no
Named:
- link - link text
- text - the text to display.
- plural - plural text to display