Template:Term

From Maths
Revision as of 19:27, 3 February 2018 by Alec (Talk | contribs) (Now plurals should work)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Warning:No such terminology definition found!, request: (Empty)

Changelog

  • Prototype version, the templates and parameters all exist for flags but are not yet implemented. Alec (talk) 17:44, 3 February 2018 (UTC)
  • Added {{lcfirst:}} to the page names because first-letter-insensitivity to page names does not apply to sub-pages! Alec (talk) 18:50, 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

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
    1. 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
    2. 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
  • Capitalisation
    • {{/DoCapsTemplate|xyz|a|b}} -> b
    • {{/DoCapsTemplate|Xyz|a|b}} -> a