17,273
edits
(load /Staging subpage for LoZ) |
(allow display names that differ from page names) |
||
Line 6: | Line 6: | ||
:tag( 'ul' ) | :tag( 'ul' ) | ||
for _, section in ipairs( sections ) do | for _, section in ipairs( sections ) do | ||
local mainTemplate = section.summary:match( '%{%{Main|(.-)}}' ) | |||
local link = mainTemplate and mw.text.split( mainTemplate, '|' )[1] | |||
list:tag( 'li' ) | list:tag( 'li' ) | ||
:wikitext( '[[' .. section.name .. ']]' ) | :wikitext( '[[' .. (link or section.name) .. '|' .. section.name .. ']]' ) | ||
end | end | ||
end | end | ||
Line 63: | Line 65: | ||
args = { | args = { | ||
[1] = "The Legend of Zelda", | [1] = "The Legend of Zelda", | ||
[2] = " | [2] = "Characters" | ||
} | } | ||
} end | } end |