Jump to content

Module talk:String2

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RexxS (talk | contribs) at 14:21, 13 November 2018 (Testing posnq: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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)[reply]

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