Difference between revisions of "Template:Term/DoLinkFormTemplate"

From Maths
Jump to: navigation, search
(Created page with "{{#if:{{{1|}}}|{{#switch:{{uc|{{{1|}}}}} |LS |SL |L |l={{{2|yes}}} |{{{3|}}}}}|{{{4|}}}}}<noinclude> ==Changelog== * Initial attempt ~~~~ ==Parameters== # flag string # "yes"...")
 
 
Line 1: Line 1:
{{#if:{{{1|}}}|{{#switch:{{uc|{{{1|}}}}}
+
{{#if:{{{1|}}}|{{#switch:{{uc:{{{1|}}}}}
 
|LS
 
|LS
 
|SL
 
|SL
|L
+
|L={{{2|yes}}}
|l={{{2|yes}}}
+
 
|{{{3|}}}}}|{{{4|}}}}}<noinclude>
 
|{{{3|}}}}}|{{{4|}}}}}<noinclude>
 
==Changelog==
 
==Changelog==
 
* Initial attempt [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 13:16, 3 February 2018 (UTC)
 
* Initial attempt [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 13:16, 3 February 2018 (UTC)
 +
** Correcting use of the {{C|uc}} string function, it's not a template so requires a {{C|:}} instead
 
==Parameters==
 
==Parameters==
 
# flag string
 
# flag string

Latest revision as of 13:20, 3 February 2018

Changelog

  • Initial attempt Alec (talk) 13:16, 3 February 2018 (UTC)
    • Correcting use of the uc string function, it's not a template so requires a : instead

Parameters

  1. flag string
  2. "yes" should do do link string - Defaults to "yes"
  3. "no" should not do link string
  4. "default" (no flag string given)