Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:WindBOT/CoreSource: Difference between revisions

From the Portal Wiki
mNo edit summary
Support non-link/template returning in links and template filters. Necessary for link -> template conversion.
Line 729: Line 729:
f, params = f
f, params = f
for i in range(len(linklist)):
for i in range(len(linklist)):
if linklist[i] is not None:
if linklist[i] is not None and isinstance(linklist[i], link):
oldLink = u(linklist[i])
oldLink = u(linklist[i])
linklist[i] = f(linklist[i], **kwargs)
linklist[i] = f(linklist[i], **kwargs)
Line 745: Line 745:
f, params = f
f, params = f
for i in range(len(templatelist)):
for i in range(len(templatelist)):
if templatelist[i] is not None:
if templatelist[i] is not None and isinstance(linklist[i], template):
oldTemplate = u(templatelist[i])
oldTemplate = u(templatelist[i])
templatelist[i] = f(templatelist[i], **kwargs)
templatelist[i] = f(templatelist[i], **kwargs)