Modul:Protection banner: Unterschied zwischen den Versionen
get rid of unnecessary wrapper functions
(finish making blurb parameter functions) |
(get rid of unnecessary wrapper functions) |
||
Zeile 147: | Zeile 147: | ||
local param | local param | ||
if parameterFuncs[k] then | if parameterFuncs[k] then | ||
param = parameterFuncs[k]() | param = parameterFuncs[k](self) | ||
end | end | ||
param = param or '' | param = param or '' | ||
Zeile 155: | Zeile 155: | ||
}) | }) | ||
parameterFuncs[1] = | parameterFuncs[1] = self._makeIntroParameter | ||
parameterFuncs[2] = self._makeUntilParameter | |||
parameterFuncs[3] = self._makeDisputesParameter | |||
parameterFuncs[4] = self._makePagetypeParameter | |||
parameterFuncs[2] = | parameterFuncs[5] = self._makeProtectionDateParameter | ||
parameterFuncs[6] = self._makeVandalTemplateParameter | |||
parameterFuncs[7] = self._makeProtectionLevelParameter | |||
parameterFuncs[8] = self._makeExpiryParameter | |||
parameterFuncs[3] = | parameterFuncs[9] = self._makeDisputeLinkParameter -- A link to the page history or the move log | ||
parameterFuncs[10] = self._makeProtectionLogParameter | |||
parameterFuncs[11] = self._makeTalkLinkParameter | |||
parameterFuncs[12] = self._makeEditRequestParameter | |||
parameterFuncs[4] = | parameterFuncs[13] = self._makeRequestUnprotectionParameter | ||
parameterFuncs[14] = self._makeSubjectPageLinksParameter -- Adds links to edit requests and the talk page if we are on a subject page | |||
parameterFuncs[15] = self._makeDeletionBlurbParameter | |||
parameterFuncs[16] = self._makeDeletionDiscussionLinkParameter | |||
parameterFuncs[5] = | parameterFuncs[17] = self._makeDeletionLogParameter | ||
parameterFuncs[6] = | |||
parameterFuncs[7] = | |||
parameterFuncs[8] = | |||
parameterFuncs[9] = | |||
parameterFuncs[10] = | |||
parameterFuncs[11] = | |||
parameterFuncs[12] = | |||
parameterFuncs[13] = | |||
parameterFuncs[14] = | |||
parameterFuncs[15] = | |||
parameterFuncs[16] = | |||
parameterFuncs[17] = | |||
self._params = params | self._params = params |