Extension talk:BoilerplateSelection

How the keywords work?
So I take it that the array says that if the article has that keyword in it, anywhere, then it will then load up the named boiler plate? So, if the key word is "Sand", then a page with the title "Sandbox", "Red Sand" etc will load up that boiler plate? --Dr DBW 03:44, 23 August 2007 (UTC)


 * I have just updated the process with a small change. I have added a flag during forEach loop which will cause the process to ignore multiple hits.  I have put an example in the usage section.  But basically if the first elements of your array contains 'this', 'that' and 'this other' then the process will first look for 'this' in the title.  If it finds it then it will use the associated template.  Let's say your title is This Doc about That.  Before I added the change it would look for 'this' and find it.  But then it would look for 'that' and find it also.  It would use the second instance.  Now, with the flag, it will look for 'this' find it and use its template ignoring any other hit.  Does this clear it up?  Remember that if it doesn't find any hit it will attempt to find a template called 'Boilerplate' and use it.  --Dtsig 14:00, 23 August 2007 (UTC)


 * Certainly does and I think should do what I want it to. Want it to use a particular template on talk pages, and none on normal article pages. --Dr DBW 03:24, 27 August 2007 (UTC)

Possible to extend to use a particular plate for a talk page based on what category the article is in?
Your extension should do what I want it to, as noted above. :-) However, just trying to push things further ;-) and make things neater. Any idea how difficult it would be to extend it to so that when people edit a talk page, they are provided with a particular plate based on the category that article page is part of? That make sense? --Dr DBW 03:28, 27 August 2007 (UTC)

Hmm, Not Working
Just installed this and it doesn't appear to be working. I have a page titled Boilerplate and have the following in LocalSettings.php. When I go to the page titled Sand get the normal warning that contains nothing, search for title or edit. When you edit, it then actually has the text for the message, not a blank box as you normally get, and definitely not the Boilerplate document. Any ideas? --Dr DBW 02:39, 30 August 2007 (UTC)

This thing doesnt work
Same problem as above.