Content deleted Content added
No edit summary |
|||
Line 32:
:I like the idea of loading the required parameters from a module data page, rather than using frame args and parent frame args. This option will be much better performance-wise, especially for templates that are called many times on one page. (This is assuming we are loading the data with [[mw:Extension:Scribunto/Lua reference manual#mw.loadData|mw.loadData]].) — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 08:53, 25 March 2014 (UTC)
::Agree. Even more: it allows for unlimited parameter sub-specifications. Each whitelist parameter can have its own check-properties, like "is deprecated", to be used. Also, an "is blacklisted=yes" property can be added for notorious bad parameters). -[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 10:19, 25 March 2014 (UTC)
::: feel free to create a more general version as suggested. this was just a first iteration at solving a specific problem. in response to point 7, I modified it to clobber non-whitelisted characters from the VALUE parameter. the list of valid characters could be expanded, and what the clobbered characters are replaced by, but this seems to work for sorting purposes. again, feel free to fork/pilfer/modify this module to create something better. I won't care if it is replaced by something better and deleted. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 15:33, 25 March 2014 (UTC)
|