Module:Sandbox/54nd60x/test
A
B
- Banqiao (BL07)
- Banqiao (Y16)
- Banxin (Y15)
- Beimen (G13)
- Beitou (R22)
C
- Cailiao (O14)
- Chiang Kai-shek Memorial Hall (R08/G10)
D
- Daan (BR09)
- Daan (R05)
- Daan Park (R06)
- Dahu Park (BR20)
- Danfeng (O20)
- Dapinglin (G04)
- Dapinglin (Y07)
- Daqiaotou (O12)
- Dazhi (BR14)
- Dingpu (BL01)
- Dingxi (O04)
- Donghu (BR22)
- Dongmen (R07/O06)
E
F
- Far Eastern Hospital (BL05)
- Fu Jen University (O19)
- Fuxinggang (R23)
- Fuzhong (BL06)
G
- Gangqian (BR17)
- Gongguan (G07)
- Guandu (R25)
- Guting (G09/O05)
H
- Haishan (BL04)
- Hongshulin (R27)
- Houshanpi (BL20)
- Huilong (O21)
- Huzhou (BR21)
I
J
- Jiangzicui (BL09)
- Jiannan Road (BR15)
- Jiantan (R15)
- Jingan (O02)
- Jingan (Y11)
- Jingmei (G05)
- Jingping (Y10)
K
- Kunyang (BL21)
L
- Linguang (BR06)
- Liuzhangli (BR07)
- Longshan Temple (BL10)
- Luzhou (O54)
M
- Mingde (R18)
- Minquan West Road (R13)
- Minquan West Road (O11)
- Muzha (BR02)
N
- Nangang (BL22)
- Nangang Software Park (BR23)
- Nanjing Fuxing (BR11)
- Nanjing Fuxing (G16)
- Nanjing Sanmin (G18)
- Nanshijiao (O01)
- Neihu (BR19)
- New Taipei Industrial Park (Y20)
- NTU Hospital (R09)
O
P
Q
- Qiaohe (Y13)
- Qilian (R20)
- Qiyan (R21)
- Qizhang (G03)
R
S
- Sanchong (O15)
- Sanchong Elementary School (O50)
- Sanhe Junior High School (O51)
- Sanmin Senior High School (O53)
- Shandao Temple (BL13)
- Shilin (R16)
- Shipai (R19)
- Shisizhang (Y08)
- Shuanglian (R12)
- Songjiang Nanjing (G15)
- Songjiang Nanjing (O08)
- Songshan (G19)
- Songshan Airport (BR13)
- St. Ignatius High School (O52)
- Sun Yat-sen Memorial Hall (BL17)
T
- Taipei 101–World Trade Center (R03)
- Taipei Arena (G17)
- Taipei Bridge (O13)
- Taipei City Hall (BL18)
- Taipei Main Station (R10)
- Taipei Main Station (BL12)
- Taipei Nangang Exhibition Center (BR24)
- Taipei Nangang Exhibition Center (BL23)
- Taipei Zoo (BR01)
- Taipower Building (G08)
- Tamsui (R28)
- Technology Building (BR08)
- Touqianzhuang (O17)
- Touqianzhuang (Y18)
- Tucheng (BL03)
U
V
W
- Wanfang Community (BR03)
- Wanfang Hospital (BR04)
- Wanlong (G06)
- Wende (BR18)
X
- Xiangshan (R02)
- Xianse Temple (O16)
- Xiaobitan (G03A)
- Xiaonanmen (G11)
- Xihu (BR16)
- Ximen (G12/BL11)
- Xinbeitou (R22A)
- Xindian (G01)
- Xindian District Office (G02)
- Xingfu (Y19)
- Xingtian Temple (O09)
- Xinhai (BR05)
- Xinpu (BL08)
- Xinpu Minsheng (Y17)
- Xinyi Anhe (R04)
- Xinzhuang (O18)
- Xiulang Bridge (Y09)
Y
- Yongan Market (O03)
- Yongchun (BL19)
- Yongning (BL02)
- Yuanshan (R14)
Z
- Zhishan (R17)
- Zhonghe (Y12)
- Zhongshan (R11)
- Zhongshan (G14)
- Zhongshan Elementary School (O10)
- Zhongshan Junior High School (BR12)
- Zhongxiao Dunhua (BL16)
- Zhongxiao Fuxing (BR10)
- Zhongxiao Fuxing (BL15)
- Zhongxiao Xinsheng (O07)
- Zhongxiao Xinsheng (BL14)
- Zhongyi (R24)
- Zhongyuan (Y14)
- Zhuwei (R26)
local p = {}; --All lua modules on Wikipedia must begin by defining a variable
--that will hold their externally accessible functions.
--Such variables can have whatever name you want and may
--also contain various data as well as functions.
p.hello = function( frame ) --Add a function to "p".
--Such functions are callable in Wikipedia
--via the #invoke command.
--"frame" will contain the data that Wikipedia
--sends this function when it runs.
-- 'Hello' is a name of your choice. The same name needs to be referred to when the module is used.
local str = "Hello World!" --Declare a local variable and set it equal to
--"Hello World!".
return str --This tells us to quit this function and send the information in
--"str" back to Wikipedia.
end -- end of the function "hello"
function p.keyboard(frame) -- Add another function
local name = frame.args[1] -- To access arguments passed to a module, use `frame.args`
-- `frame.args[1]` refers to the first unnamed parameter
-- given to the module
return "https://en.wikipedia.org/w/index.php?title=" .. name .. "&action=edit&editintro=Module:Sandbox/54nd60x/test/doc" -- `..` concatenates strings. This will return a customized
-- greeting depending on the name given, such as "Hello, Fred!"
end
function p.count_fruit(frame)
local num_bananas = frame.args.bananas -- Named arguments ({{#invoke:Example|count_fruit|foo=bar}}) are likewise
local num_apples = frame.args.apples -- accessed by indexing `frame.args` by name (`frame.args["bananas"]`, or)
-- equivalently `frame.args.bananas`.
return 'I have ' .. num_bananas .. ' bananas and ' .. num_apples .. ' apples'
-- Like above, concatenate a bunch of strings together to produce
-- a sentence based on the arguments given.
end
return p --All modules end by returning the variable containing their functions to Wikipedia.
-- Now we can use this module by calling {{#invoke: Example | hello }},
-- {{#invoke: Example | hello_to | foo }}, or {{#invoke:Example|count_fruit|bananas=5|apples=6}}
-- Note that the first part of the invoke is the name of the Module's wikipage,
-- and the second part is the name of one of the functions attached to the
-- variable that you returned.
-- The "print" function is not allowed in Wikipedia. All output is accomplished
-- via strings "returned" to Wikipedia.