Module:Region Switcher

From SilentBlue.RemyWiki
Revision as of 03:51, 13 June 2022 by (username removed) (Created page with "local p={} function p.regionSwitcher(frame) local nameWithoutSuffix=mw.ustring.gsub(mw.getCurrentTitle().prefixedText,'( \\(Asia\\))|( \\(China\\))','') return [=[{| style="margin: auto; text-align: center" class="toccolours" ! style="background:#cceeff" width="120px"|Region Switcher |- | style="font-size:90%;"| [[]=]..nameWithoutSuffix..[=[|Japan]] - [[]=]..nameWithoutSuffix..[=[ (Asia)|Asia]] - [[]=]..nameWithoutSuffix..[=[ (China)|China]] |}]=] end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

local p={}
function p.regionSwitcher(frame)
	local nameWithoutSuffix=mw.ustring.gsub(mw.getCurrentTitle().prefixedText,'( \\(Asia\\))|( \\(China\\))','')
	return [=[{| style="margin: auto; text-align: center" class="toccolours"
! style="background:#cceeff" width="120px"|Region Switcher
|-
| style="font-size:90%;"| [[]=]..nameWithoutSuffix..[=[|Japan]] - [[]=]..nameWithoutSuffix..[=[ (Asia)|Asia]] - [[]=]..nameWithoutSuffix..[=[ (China)|China]]
|}]=]
	end
return p