Template:T: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
==Variables== | ==Variables== | ||
*1=link | *1=link | ||
*lower=(list of words to be set to lowercase, separated by a comma) (defaults to 'a,and,as,but,by,for,from,in,nor,of,or,the,to') (the first and last | *lower=(list of words to be set to lowercase, separated by a comma) (defaults to 'a,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]) |
Revision as of 03:51, 23 May 2021
Now I Can Test a Really Long Title With All of the Words I Want to Test For
Variables
- 1=link
- lower=(list of words to be set to lowercase, separated by a comma) (defaults to 'a,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)