Cyrillic Wikia
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
Wiki Content
Recently Changed Pages
Rushgai
Macedonian alphabet
Abkhaz-letters
Cyrillic Wikia
Yery
Slavic
Flie-Cyrillic-letter-A
Wp/krl
Wp/krl/3. талвикуўта
Wp/krl/Тäмä пäивä
Wp/krl/4. талвикуўта
Wp/krl/Пиäшиву
Wp/krl/Википедия
Wp/krl/lang-ru
Wp/krl/lang-fi
Wp/mo
Wp/mo/Паӂна прьнчпалэ
Wp/mo/Лимба молдовеняскэ
Wp/mo/Густав Махлер
Wp/mo/Република Молдова
Wp/mo/Басарабяска
Wp/mo/Кишинэу
Wp/mo/Григориопол
Community
Help
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Cyrillic Wikia
756
pages
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
Wiki Content
Recently Changed Pages
Rushgai
Macedonian alphabet
Abkhaz-letters
Cyrillic Wikia
Yery
Slavic
Flie-Cyrillic-letter-A
Wp/krl
Wp/krl/3. талвикуўта
Wp/krl/Тäмä пäивä
Wp/krl/4. талвикуўта
Wp/krl/Пиäшиву
Wp/krl/Википедия
Wp/krl/lang-ru
Wp/krl/lang-fi
Wp/mo
Wp/mo/Паӂна прьнчпалэ
Wp/mo/Лимба молдовеняскэ
Wp/mo/Густав Махлер
Wp/mo/Република Молдова
Wp/mo/Басарабяска
Wp/mo/Кишинэу
Wp/mo/Григориопол
Community
Help
Editing
Module:If empty
Back to page
Edit source
View history
Talk (0)
Edit Page
Module:If empty
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) -- For backwards compatibility reasons, the first 8 parameters can be unset instead of being blank, -- even though there's really no legitimate use case for this. At some point, this will be removed. local lowestNil = math.huge for i = 8,1,-1 do if args[i] == nil then args[i] = '' lowestNil = i end end for k,v in ipairs(args) do if v ~= '' then if lowestNil < k then -- If any uses of this template depend on the behavior above, add them to a tracking category. -- This is a rather fragile, convoluted, hacky way to do it, but it ensures that this module's output won't be modified -- by it. frame:extensionTag('ref', '[[Category:Instances of Template:If_empty missing arguments]]', {group = 'TrackingCategory'}) frame:extensionTag('references', '', {group = 'TrackingCategory'}) end return v end end end return p
Summary:
Please note that all contributions to the Cyrillic Wikia are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab