On Nov 22, 2007 1:27 PM, Alexis Moinet alexis.moinet@fpms.ac.be wrote:
indeed if I create the hide template, I still have the button (NB : I don't have any <nowiki> tag in my code) but the template content is directly inserted instead of " {{hide|\n "
however, if I use the opening and closing tags, it does the trick. In my MediaWiki:Common.js, I only have this :
if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "test.png", "speedTip": "see also", "tagOpen": ":*see also: {{", "tagClose": "}}", "sampleText": "hide|\n" + "::*link 1\n" + "::*link 2" }; }
and it worked (don't forget to force-refresh your browser)
It worked! I never would have thought of using the open and close tags in that way - very clever! Thanks so much for your help! Best, Derrick