PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

Module:Universe

From PC Gaming Shelter
Revision as of 09:12, 31 July 2026 by WikiVisor (talk | contribs) (Created page with "local utils = require( 'Module:Utils' ) local p = {} local function getCurrentGame() local title = mw.title.getCurrentTitle() local game = title.rootText -- return tostring(game) return 'Star Trek: Voyager - Elite Force' end function p.Mods() local query = { '|Maps||Skins||UtilitiesRelated game::' .. getCurrentGame() .. '' } return mw.smw.ask(query) end function p.Players() local query = { 'Category:Players[[Plays game::' .. g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Universe/doc

local utils = require( 'Module:Utils' )

local p = {}

local function getCurrentGame()
	local title = mw.title.getCurrentTitle()
	local game  = title.rootText
	-- return tostring(game)
	return 'Star Trek: Voyager - Elite Force'
end

function p.Mods()
	local query = {
		'[[Category:Mods||Maps||Skins||Utilities]][[Related game::' .. getCurrentGame() .. ']]'		
	}
	return mw.smw.ask(query)
end

function p.Players()
	local query = {
		'[[Category:Players]][[Plays game::' .. getCurrentGame() .. ']]'		
	}
	return mw.smw.ask(query)
end

function p.Clans()
	local query = {
		'[[Category:Communities]][[Related game::' .. getCurrentGame() .. ']]'		
	}
	return mw.smw.ask(query)
end

return p