Anonymous user
Module:Hatnote list: Difference between revisions
Moved form of for-see statement into options
(Removed behaviour of terminating list at empty page parameter; inconsistent with behaviour elsewhere) |
(Moved form of for-see statement into options) |
||
Line 48:
options = options or {}
local defaultOptions = {
title = mw.title.getCurrentTitle().text,▼
disambiguator = ' (disambiguation)',
forseeForm = 'For %s, see %s.',
▲ title = mw.title.getCurrentTitle().text,
otherText = 'other uses'
}
Line 102 ⟶ 103:
local useStr = v.use
local seeStr = p.andList(mHatnote.formatPages(unpack(v.see)))
table.insert(strList, string.format(
end
return mw.text.listToText(strList, ' ', ' ')
|