This is an archive copy of wikilivres.ca as of 18 February 2017 (from the WikiTeam dump). The original site is closed.
Help:Preloaded templates
With the gadget extension and some Javascript, headers can be preloaded when we open a page. This saves a lot of work. It already works fine for English texts. For other languages, we have to find a solution. A possibility is to add a "lang" tag to the "title" template. This is easy, but not completely satisfactory, and I could not find better for now. Another possibility would be to modify the script so that it can deal with templates in other languages. It might be complicated. Does someone want to try? Any other idea?
It only works with the Firefox and Seamonkey navigators.
How does it work?
1. In your preferences, click on Gadgets tab, and then on the "Preload useful templates such as header and textinfo" option.
2. Fill in the {{title}} template with title, author, translator, language if not English, notes.
3. Create a table of contents like this:
* [[/Chapter 1|Chapter 1]] * [[/Chapter 2|Chapter 2]] * [[/Chapter 3|Chapter 3]] ...
4. Click on a red link in the table of contents: you have a page with a preloaded {{header}} template!
If you modify the table of contents, you have to empty the cache of your navigator, and to reload the page.