Template:T: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
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|a warm and familiar place}}}|split={{{split|space}}}|lower={{{lower|a,and,by,of,the}}}|plain={{{plain|true}}}|replace={{{replace|}}}}}<noinclude>


{{t|module:case|split=od|replace=од}}
{{t|module:case|split=od|replace=од}}
Line 5: Line 5:
==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,and,by,of,the') (the first character of the link is always uppercase, 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])

Revision as of 03:20, 23 May 2021

A Warm and Familiar Place

MодUle:case

Variables

  • 1=link
  • lower=(list of words to be set to lowercase, separated by a comma) (defaults to 'a,and,by,of,the') (the first character of the link is always uppercase, 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)