Content deleted Content added
deal with piped wikilinks |
may be multiple links so don't anchor end of string |
||
Line 13:
p.sentence = function (frame )
local s = mw.text.trim( frame.args[1] or "" )
if string.find(s, "^%[%[[^|]+|[^%]]+%]%]
-- this is a piped wikilink, so we capitalise the text, not the pipe
local b, c = string.find(s, "|%A*%a") -- find the first letter after the pipe
|