Difference between revisions of "Module:Data/endpoints"

From Yugipedia
Jump to: navigation, search
m (Becasita moved page Module:Data/enpoints to Module:Data/endpoints without leaving a redirect: Typo...)
(Add video games namespace endpoint.)
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
return {
 
return {
 
-- Static data:
 
-- Static data:
getRegion = 'static/region',
+
getRegion   = 'static/region',
 
getLanguage = 'static/language',
 
getLanguage = 'static/language',
getMedium = 'static/medium', -- TODO: Rename. "medium" could be CG, anime, manga, VG, etc..
+
getMedium   = 'static/medium', -- TODO: Rename. "medium" could be CG, anime, manga, VG, etc..
 
+
getRarity   = 'static/rarity',
getRarity = 'static/rarity',
+
getEdition = 'static/edition',
 
+
getRelease  = 'static/release',
getEdition = 'static/edition',
 
  
 
-- SMW data:
 
-- SMW data:
 +
getName        = 'smw/name',
 +
getReleaseDate  = 'smw/releaseDate',
 
getFullCardType = 'smw/cardType', -- TODO: move module?
 
getFullCardType = 'smw/cardType', -- TODO: move module?
getName = 'smw/name',
+
getReleaseDate = 'smw/releaseDate',
+
-- Sub-Namespaces:
 +
anime      = 'namespaces/anime',
 +
manga      = 'namespaces/manga',
 +
videoGames = 'namespaces/videoGames',
 
}
 
}
 
-- </pre>
 
-- </pre>

Revision as of 23:21, 1 January 2020

-- <pre>
return {
	-- Static data:
	getRegion   = 'static/region',
	getLanguage = 'static/language',
	getMedium   = 'static/medium', -- TODO: Rename. "medium" could be CG, anime, manga, VG, etc..
	getRarity   = 'static/rarity',
	getEdition  = 'static/edition',
	getRelease  = 'static/release',

	-- SMW data:
	getName         = 'smw/name',
	getReleaseDate  = 'smw/releaseDate',
	getFullCardType = 'smw/cardType', -- TODO: move module?
	
	-- Sub-Namespaces:
	anime      = 'namespaces/anime',
	manga      = 'namespaces/manga',
	videoGames = 'namespaces/videoGames',
}
-- </pre>