אונטערשייד צווישן ווערסיעס פון "יחידה:תבנית מידע/אישיות"

געב זיך אן עצה אויך ווען קיין פייפ
ק (הגהה)
(געב זיך אן עצה אויך ווען קיין פייפ)
שורה 219: שורה 219:
if #mw.text.split(l, '%s' ) == 1 or enclosed(l) then --most probably just year or yearlink
if #mw.text.split(l, '%s' ) == 1 or enclosed(l) then --most probably just year or yearlink
if #mw.text.split(l, '%s' ) > 1 then
if #mw.text.split(l, '%s' ) > 1 then
l = l:match("%[%[.-|(.*)%]%]")
l = l:match("%[%[.-|(.*)%]%]") or l:match("%[%[(.-)%]%]") -- try after pipe first, fallback and get the whole if there is no pipe
end
end
local birthParts = mw.text.split( l, "'", true )
local birthParts = mw.text.split( l, "'", true )
שורה 238: שורה 238:
if #mw.text.split(p, '%s' ) == 1 or enclosed(p) then --most probably just year or yearlink
if #mw.text.split(p, '%s' ) == 1 or enclosed(p) then --most probably just year or yearlink
if #mw.text.split(p, '%s' ) > 1 then
if #mw.text.split(p, '%s' ) > 1 then
p = p:match("%[%[.-|(.*)%]%]")
p = p:match("%[%[.-|(.*)%]%]") or p:match("%[%[(.-)%]%]") -- try after pipe first, fallback and get the whole if there is no pipe
end
end
local deathParts = mw.text.split( p, "'", true )
local deathParts = mw.text.split( p, "'", true )