Editing Module:Set page header
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.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.
Latest revision | Your text | ||
Line 40: | Line 40: | ||
medium = {}, | medium = {}, | ||
edition = nil, | edition = nil, | ||
− | releaseDate = nil | + | releaseDate = nil |
− | |||
} | } | ||
Line 121: | Line 120: | ||
end | end | ||
− | + | if ( ns == 'Set Card Lists' and not releaseData.releaseDate ) then | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | if ( ns == 'Set Card Lists' and not releaseData.releaseDate | ||
table.insert( categories, '[[Category:Set Card Lists with no release date]]' ) | table.insert( categories, '[[Category:Set Card Lists with no release date]]' ) | ||
end | end | ||
Line 156: | Line 149: | ||
-- Bit sloppy, but we need to fallback to this if "Worldwide English release date" is empty | -- Bit sloppy, but we need to fallback to this if "Worldwide English release date" is empty | ||
'?English release date = englishReleaseDate', | '?English release date = englishReleaseDate', | ||
− | |||
mainlabel = '-' | mainlabel = '-' | ||
} | } | ||
Line 198: | Line 190: | ||
releaseData.name = queriedData.name | releaseData.name = queriedData.name | ||
releaseData.localName = args.name or queriedData.localName | releaseData.localName = args.name or queriedData.localName | ||
− | |||
-- For now, only do the release date for list pages | -- For now, only do the release date for list pages | ||
− | + | if ( ns == 'Set Card Lists' ) then | |
− | |||
− | if ( ns == 'Set Card Lists' | ||
releaseData.releaseDate = args.releaseDate or queriedData.releaseDate | releaseData.releaseDate = args.releaseDate or queriedData.releaseDate | ||