Modul:Redirect hatnote: Unterschied zwischen den Versionen
(Updated module from sandbox with support for multiple redirect arguments.) |
(Added hack to categorize pages using odd edge-case behaviour) |
||
Zeile 107: | Zeile 107: | ||
pages[1] = pages[1] or redirect .. ' (disambiguation)' | pages[1] = pages[1] or redirect .. ' (disambiguation)' | ||
else | else | ||
pages[1] = pages[1] or useTable.use .. ' (disambiguation)' | --pages[1] = pages[1] or useTable.use .. ' (disambiguation)' | ||
--Terrible but temporary hack switches above line to below if to test prevalence of this behaviour: | |||
if not pages[1] then | |||
pages[1] = useTable.use .. ' (disambiguation)' | |||
use = use .. '[[Category:Hatnote templates using unusual parameters]]' | |||
end | |||
end | end | ||
pages = mHatnote.formatPages(unpack(pages)) | pages = mHatnote.formatPages(unpack(pages)) |