Difference between revisions of "Template:Term/Definition1"
From Maths
(Documenting plural, if outcomes were wrong way round, fixing those) |
(Copy/paste previous version's definition - leaving in the new documentation, I shouldn't have swapped the arguments around, I thought it was odd I got it wrong) |
||
Line 2: | Line 2: | ||
do link | do link | ||
− | -->|[[{{{link|}}}|{{#if:{{{2|}}}|{{ucfirst:{{#if:{{{3|}}}|{{{ | + | -->|[[{{{link|}}}|{{#if:{{{2|}}}|{{ucfirst:{{#if:{{{3|}}}|{{{plural|}}}|{{{text|}}}}}}}|{{#if:{{{3|}}}|{{{plural|}}}|{{{text|}}}}}}}]]<!-- |
don't do link | don't do link | ||
− | -->|{{#if:{{{2|}}}|{{ucfirst:{{#if:{{{3|}}}|{{{ | + | -->|{{#if:{{{2|}}}|{{ucfirst:{{#if:{{{3|}}}|{{{plural|}}}|{{{text|}}}}}}}|{{#if:{{{3|}}}|{{{plural|}}}|{{{text|}}}}}}}<!-- |
For the text I use: | For the text I use: | ||
− | COMMENT: {{#if:{{{3|}}}|{{{ | + | COMMENT: {{#if:{{{3|}}}|{{{plural|}}}|{{{text|}}}}}<--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 | + | * '''plural''' - the ''plural'' text to display |
</noinclude> | </noinclude> |
Latest revision as of 19:40, 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 - the plural text to display