Difference between revisions of "Template:Term/Definition1"

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

  • 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 - plural text to display