Modul:Find sources: Perbedaan antara revisi
←Membuat halaman berisi '-- This module implements {{find sources}} and other similar templates, and -- also provides a mechanism to easily create new source-finding templates. -- Define constants local ROOT_PAGE = 'Module:Find sources' local TEMPLATE_ROOT = ROOT_PAGE .. '/templates/' -- for template config modules local LINK_ROOT = ROOT_PAGE .. '/links/' -- for link config modules local CONFIG_PAGE = ROOT_PAGE .. '/config' -- for global config -- Load required modules local checkType...' Tanda: Suntingan perangkat seluler Suntingan peramban seluler |
Tidak ada ringkasan suntingan Tanda: Suntingan perangkat seluler Suntingan peramban seluler |
||
| (1 revisi perantara oleh pengguna yang sama tidak ditampilkan) | |||
| Baris 158: | Baris 158: | ||
-- The main access point from #invoke. | -- The main access point from #invoke. | ||
-- Invocations will look like {{#invoke:Find sources|template name}}, | -- Invocations will look like {{#invoke:Find sources|template name}}, | ||
-- where "template name" is a subpage of [[ | -- where "template name" is a subpage of [[Modul:Find sources/templates]]. | ||
return function(frame) | return function(frame) | ||
local args = require(' | local args = require('Modul:Arguments').getArgs(frame, { | ||
wrappers = mw.site.namespaces[10].name .. ':' .. template | wrappers = mw.site.namespaces[10].name .. ':' .. template | ||
}) | }) | ||
| Baris 167: | Baris 167: | ||
end}) | end}) | ||
return | return p | ||