Module:Redirect hatnote: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Updated module from sandbox with support for multiple redirect arguments.) |
(Added hack to categorize pages using odd edge-case behaviour) |
||
Line 107: | Line 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)) |