"मोड्युल:Hatnote" का संशोधनहरू बिचको अन्तर
Content deleted Content added
Reverted 1 edit by Mr. Stradivarius (talk): Error in module:main while using module:sports table. (TW) |
sorry about that; we need to keep findNamespaceId around for other modules |
||
पङ्क्ति ३५:
-- are trimmed from the start of the link by default. To skip colon
-- trimming, set the removeColon parameter to true.
-- This function is used by other modules, e.g. [[Module:Main]].
checkType('findNamespaceId', 1, link, 'string')
checkType('findNamespaceId', 2, removeColon, 'boolean', true)
Line १३५ ⟶ १३७:
function p._formatLink(link, display)
checkType('_formatLink', 1, link, 'string')
checkType('_formatLink', 2, display, 'string', true)
-- Remove the initial colon for links where it was specified manually.
link = removeInitialColon(link)
▲ -- end
-- Find whether a faux display value has been added with the {{!}} magic
Line १६९ ⟶ १६१:
-- Assemble the link.
if display then
return string.format('[[
else
return string.format('[[
end
end
|