Modul:Transcluder: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Sophivorus (bicara | kontrib) Update from master using Synchronizer #synchronizer |
Sophivorus (bicara | kontrib) Update from master using Synchronizer #synchronizer |
||
Baris 1:
-- Module:Transcluder is a general-purpose transclusion engine
--
--
-- License: CC-BY-SA-3.0▼
▲-- License CC-BY-SA-3.0
local p = {}
Baris 270 ⟶ 269:
if params then
count = 0
-- Temporarily replace pipes in subtemplates
for subtemplate in string.gmatch(params, '{%b{}}') do
params = string.gsub(params, escapeString(subtemplate), string.gsub(subtemplate, ".", {["%"]="%%", ["|"]="@@:@@", ["="]="@@_@@"}) )
end
Baris 617 ⟶ 616:
if page == '' then return throwError('no-page') end
local page, hash, section = string.match(page, '([^#]+)(#?)(.*)')
local text,
if not
page = temp
if not text then return throwError('page-not-found', page) end
local full = text -- save the full text for fixReferences below
|