Module talk:String2
Appearance
New function "label" added
I added new function "label" which capitalize only first letter for fetched wikidata labels (diff). Because Wikidata English labels generally begin with a lowercase letter (d:Help:Label#Capitalization). New function is almost same as "sentence" function except that "label" doesn't lowering the rest of text. If there are any questions or problems, feel free to report here. Thanks! --Was a bee (talk) 03:03, 17 September 2017 (UTC)
- Some objection. A "label" has multiple options. Especially: it is "free" (as in: irrelevant, not defining). If this option wants to imply "page title as a wikilink label", then change the option (parameter) name. -DePiep (talk)
Testing posnq
{{#invoke:String2 |posnq |This is a piece of text to be searched |ext}}
→ Script error: The function "posnq" does not exist.{{#invoke:String2 |posnq |This is a piece of text to be searched |ent}}
→ Script error: The function "posnq" does not exist.{{#invoke:String2 |posnq |This is a piece of text to be searched |"ext"}}
→ Script error: The function "posnq" does not exist.{{#invoke:String2 |posnq |This is a piece of text to be searched |"ent"}}
→ Script error: The function "posnq" does not exist.{{Posnq |This is a piece of text to be searched |piece of }}
→ Template:Posnq{{Posnq |This is a piece oftext to be searched |piece of }}
→ Template:Posnq{{Posnq |This is a piece of text to be searched |"piece of "}}
→ Template:Posnq{{Posnq |This is a piece oftext to be searched |"piece of "}}
→ Template:Posnq{{Posnq | {{start date|2018|November|30}} | bday dtstart published updated }}
→ Template:Posnq{{Posnq | 30 November 2018 | bday dtstart published updated }}
→ Template:Posnq