Contenuto cancellato Contenuto aggiunto
→‎TemplateScript: fixed indentation; re: added renderer plugins
Riga 540:
:: TemplateScript is actively maintained, so it's always compatible with the latest software changes. If you have any problems with a TemplateScript tool you wrote, you can ping me and I'll help fix it. That's at least one gadget you don't need to worry about. :) <small>—[[User:Pathoschild|Pathoschild]] ([[User talk:Pathoschild|disc.]]) 16:51, 15 ago 2015 (CEST)</small>
::: I take a look to doc, well: it's very interesting! It's really focused on user's needs. What is impressive is the list of similarities between ideas into TemplateScript and ideas implemented into it.source, by completely different scripts. Just some of these:
:::# the idea of storing any number of regex subst for future use;
:::# the idea of linking a keyboard shortcut;
:::# the idea of avoiding Toolbox.
::: {{ping|Candalua|Pathoschild}} Take a look to [[User:Alex brollo/PersonalButtons]] if you like, any row builds a button calling a function, th parameters being: button name, actions (e=edit, s=submit...), tooltip with keyboard shortcut wrapped inside the text, used both as tooltip text and as script parameter, name of function to be called; in special case of "incapsula" function, pre and post text for encapsulate-like action. Far from your tool... but it seems to run. I'm testing it into mul.source.
::: Apart from script content, there's a difference between TemplateScript and what we are testing: TemplateScript builds links into the ''bottom of sidebar'', while our script builds ''small buttons fixed at the bottom of the screen''. I think I'll test TemplateScript into mul.source, I think that it's impossible any conflict since the "anonymous tool" I'm using there adds optionally (for debugging) one object only to global space, anythng other being wrapped into an anonymous function, without any external dependency. Here the environment is too complex and present troubles are too pervasive.
::: Do you think, it will be possible/useful to add an option to your TemplateScript, to output bottom-page fixed buttons instead of links into sidebar? --[[User:Alex brollo|Alex brollo]] ([[User talk:Alex brollo|disc.]]) 19:34, 15 ago 2015 (CEST)
 
:::: Done! You can now [[m:TemplateScript#Extending TemplateScript|add custom renderer plugins]], which let you build different UIs. The default logic is now a plugin too, so you can look at <code>_renderSidebar</code> in the [https://github.com/Pathoschild/Wikimedia-contrib/blob/master/user-scripts/pathoschild.templatescript.js source code] for a good example. <small>—[[User:Pathoschild|Pathoschild]] ([[User talk:Pathoschild|disc.]]) 01:58, 16 ago 2015 (CEST)</small>