Template:T: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:case|title_case|link={{{1|did you know?}}}|split={{{split|space}}}|lower={{{lower|and,of,the}}}|plain={{{plain|true}}}|replace={{{replace|}}}}}<noinclude>
{{#invoke:case|title_case|link={{{1|lean To}}}|split={{{split|space}}}|lower={{{lower|a,an,and,as,but,by,for,from,in,nor,of,or,the,to}}}|plain={{{plain|true}}}|replace={{{replace|}}}|nolink={{{nolink|false}}}}}<noinclude>


{{t|module:case|split=od|replace=од}}
{{t|module:case|split=od|replace=од}}
{{t|Mary Had a Little Lamb, An Efreeti and A Spell Book|nolink=true}}
If you find anything that doesn't match with [https://titlecaseconverter.com titlecaseconverter.com] feel free to add the word to the default list.


==Variables==
==Variables==
*1=link
*1=link
*lower=(list of words to be set to lowercase, separated by a comma) (defaults to 'and,of,the')
*lower=(list of words to be set to lowercase, separated by a comma) (defaults to 'a,an,and,as,but,by,for,from,in,nor,of,or,the,to') (the first and last words of the link are always in title case, regardless of this setting)
*split=(char(s) to split on) (defaults to the space character)
*split=(char(s) to split on) (defaults to the space character)
*plain=(set to false to use [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns ustring patterns])
*plain=(set to false to use [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns ustring patterns])
*replace=(char(s) to replace what you split on instead of just using split itself, necessary if using a ustring pattern)
*replace=(char(s) to replace what you split on instead of just using split itself, necessary if using a ustring pattern)
*nolink=(if set to true, no link will be generated, only the text will be set) (defaults to false)


[[Category: Help templates|{{PAGENAME}}]]</noinclude>
[[Category: Help templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 06:16, 23 May 2021

Lean To

MодUle:case

Mary Had a Little Lamb, an Efreeti and a Spell Book

If you find anything that doesn't match with titlecaseconverter.com feel free to add the word to the default list.

Variables[edit | hide | hide all]

  • 1=link
  • lower=(list of words to be set to lowercase, separated by a comma) (defaults to 'a,an,and,as,but,by,for,from,in,nor,of,or,the,to') (the first and last words of the link are always in title case, regardless of this setting)
  • split=(char(s) to split on) (defaults to the space character)
  • plain=(set to false to use ustring patterns)
  • replace=(char(s) to replace what you split on instead of just using split itself, necessary if using a ustring pattern)
  • nolink=(if set to true, no link will be generated, only the text will be set) (defaults to false)