View source for Module:Main article
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- <pre>
local p = {}
function p.main(frame)
local hat = require('Module:Hatnote')
local args = frame:getParent().args
local ret = mw.html.create('')
-- list of all articles
local params = {}
-- total arguments counted counted
local ttl = 0
for _, v in ipairs(args) do
ttl = ttl + 1
table.insert(params,v)
end
-- main return string
ret:wikitext('Main article'..(#params > 1 and 's' or '')..': ')
000
1:0
Template used on this page:
Return to Module:Main article.