Modul:Transcluder: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Update from master using Synchronizer #synchronizer
Update from master using Synchronizer #synchronizer
Baris 1:
-- Module:Transcluder is a general-purpose transclusion engine
-- Central versionDocumentation and documentationmaster atversion: https://en.wiki-indonesia.club/wiki/Module:Transcluder
-- ByAuthors: User:Sophivorus, User:Certes & others
-- License: CC-BY-SA-3.0
-- Version 1.4.1
-- License CC-BY-SA-3.0
 
local p = {}
Baris 270 ⟶ 269:
if params then
count = 0
-- Temporarily replace pipes in subtemplates, tables and links to avoid chaos
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, pagetemp = getText(page, options.noFollow)
if not pagetemp then return throwError('noinvalid-pagetitle', page) end
page = temp
if not text then return throwError('page-not-found', page) end
local full = text -- save the full text for fixReferences below