Modul:Failsafe: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
(simplified)
Zeile 12: Zeile 12:
failsafeUsed      = '[[Category:Modulversion mit failsave bestimmt]]',
failsafeUsed      = '[[Category:Modulversion mit failsave bestimmt]]',
versionText      = 'Versionsbezeichnung auf Wikidata:',
versionText      = 'Versionsbezeichnung auf Wikidata:',
noVersion        = 'keine Version verfügbar',
noVersion        = 'keine Version verfügbar'
noWikidataVersion = '(keine Version auf Wikidata verfügbar)'
}
}


Zeile 92: Zeile 91:


local title = mw.ustring.gsub( mw.title.getCurrentTitle().text, '/' .. strings.docPage, '' )
local title = mw.ustring.gsub( mw.title.getCurrentTitle().text, '/' .. strings.docPage, '' )
if title == 'Failsafe' then
if title == 'Failsafe' then -- the module itself
success = true
success = true
m = fs
m = fs
Zeile 111: Zeile 110:
.. ( fromWikidata or fromModule ) .. '</code>'
.. ( fromWikidata or fromModule ) .. '</code>'
if fromWikidata and fromModule then
if fromWikidata and fromModule then
if fromWikidata == fromModule then
result = result .. ' ' ..
result = result .. ' ' .. strings.ok
( fromWikidata == fromModule and strings.ok or strings.notOk )
else
result = result .. ' ' .. strings.notOk
end
elseif not fromWikidata then
result = result .. ' ' .. noWikidataVersion
end
end
if failsafeUsed then
if failsafeUsed then