Module:Region Switcher: Difference between revisions
no edit summary
(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") |
(username removed) No edit summary |
||
Line 1: | Line 1: | ||
local p={} | local p={} | ||
function p.regionSwitcher(frame) | function p.regionSwitcher(frame) | ||
local nameWithoutSuffix=mw.ustring.gsub(mw.getCurrentTitle().prefixedText,'( \\(Asia\\))|( \\(China\\))','') | local nameWithoutSuffix=mw.ustring.gsub(mw.title.getCurrentTitle().prefixedText,'( \\(Asia\\))|( \\(China\\))','') | ||
return [=[{| style="margin: auto; text-align: center" class="toccolours" | return [=[{| style="margin: auto; text-align: center" class="toccolours" | ||
! style="background:#cceeff" width="120px"|Region Switcher | ! style="background:#cceeff" width="120px"|Region Switcher |
(username removed)