Difference between revisions of "Template:Term/Definition1"

From Maths
Jump to: navigation, search
(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|}}}|{{{text|}}}|{{{plural|}}}}}}}|{{#if:{{{3|}}}|{{{text|}}}|{{{plural|}}}}}}}]]<!--
+
     -->|[[{{{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|}}}|{{{text|}}}|{{{plural|}}}}}}}|{{#if:{{{3|}}}|{{{text|}}}|{{{plural|}}}}}}}<!--
+
     -->|{{#if:{{{2|}}}|{{ucfirst:{{#if:{{{3|}}}|{{{plural|}}}|{{{text|}}}}}}}|{{#if:{{{3|}}}|{{{plural|}}}|{{{text|}}}}}}}<!--
  
 
For the text I use:
 
For the text I use:
COMMENT: {{#if:{{{3|}}}|{{{text|}}}|{{{plural|}}}}}<--THIS IS NOT CODE  
+
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

  • Initial version saved Alec (talk) 19:06, 3 February 2018 (UTC)

Parameters

  1. "link" - something for link, nothing for not to link
  2. "capitalise" - something to enforce capitlisation, nothing to leave unchanged - which may be capitalised already
  3. "plural" - something means yes, else no

Named:

  • link - link text
  • text - the text to display.
  • plural - the plural text to display