Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/Szqecs/Kaohsiung/functions
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.
Anti-spam check. Do
not
fill this in!
function r_count_func(...) if arg[n] then return (arg[n] - 1) / 3 else return 1 end end function interpret(_, x, y, z) line = x position = z if x == 'r' then if type(tonumber(y)) == 'number' then local y = tonumber(y) if y < 5 then index = y - 2 elseif y > 22 then index = y else index = y - 1 end elseif y == '4a' then index = 3 elseif y == '22a' then index = 22 end elseif x == 'o' then if type(tonumber(y)) == 'number' then local y = tonumber(y) if y < 4 then index = y else index = y - 1 end elseif y == 't1' then index = 14 end end end function s_link(x) if x then hsr = { ['Zuoying'] = '', } stn = { ['Kaohsiung Main'] = '', ['Ciaotou'] = 'Qiaotou' } if not stn[x] and not hsr[x] then return '\[\[' .. x .. ' MRT station|' .. x .. '\]\]' elseif stn[x] then if stn[x] == '' then return '\[\[' .. x .. ' station|' .. x .. '\]\]' else return '\[\[' .. stn[x] .. ' station|' .. x .. '\]\]' end elseif hsr[x] then if hsr[x] == '' then return '\[\[' .. x .. ' HSR station|' .. x .. '\]\]' else return '\[\[' .. hsr[x] .. ' station|' .. x .. '\]\]' end end end end
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Sandbox/Szqecs/Kaohsiung/functions/doc
(
edit
)