Module talk:String: Difference between revisions

Content deleted Content added
Darklama (talk | contribs)
Line 66:
 
:Besides <nowiki>{{PAGESIZE:page name}}</nowiki>, the [[mw:API:Properties#info / in|MediaWiki API]] can be queried through JavaScript to find out page sizes. JavaScript is probably going to be the only way you will be able to include the current size for every page. --<span style="font: bold 10pt 'courier new', comic, sans, ms;">[[User:Darklama|<font color="midnightblue">dark</font>]][[User_talk:Darklama|<font color="green">lama</font>]]</span> 10:53, 30 April 2013 (UTC)
 
== Replication on other wikis ==
 
Hi, I have just discovered this new "Lua programming" functionality in wikimedia (I am an Italian user). I want to make a question (I don't know if other users have already talked about this). I have noticed that all wikis are replicating this base library (String), changing only the error messages (localization). Does not exists a feature for using only 1 shared String library among wikis, instead of replicating it for each wiki? "String" is a very base library and if someone discover a bug here, the fix should to be propagated in each wiki (or vice versa).
 
If a shared library is not possible, at least it would be better to set the localization error strings as variables at the beginning of the source code, so that in other wikis we can cut&paste all the remaining part of the code without changing a line.
 
If somewhere you have already talked about these problems I would be happy to read about it. Thanks!