Steve Bennett wrote:
On 03/05/06, Pete Bartlett pcb21@yahoo.com wrote:
The JS version of transclusion appears to be:
document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
I think it would be a brilliant idea to modularise and bring together all scripts in a consistent fashion under a WikiProject umbrella, so the editor just has to include a selection of subpages.
Can such a thing be achieved through javascript? I'm imagining something like this:
- User makes a single modification to their monobook.js to include
the module tool. 2. The module tool provides an interface such that they can select the modules that interest them 3. Modules currently selected are saved somewhere like user:Stevage/modules 4. When the user confirms, the tool retrieves the originals and writes them to something like user:Stevage/modulecode 5. Either the user, or the tool automatically adds a line which includes everything in user:Stevage/modulecode as you described above.
Theoretically, yes. I thought about having a similar system, only the entire code would be written back to the monobook.js, because it's protected from other users. However, I'm not sure that it would be /practical/ to implement it without something like XUL to get the UI setup - ie. it would be a Mozilla extension.