Templates download/BookTOC: Difference between revisions

No edit summary
Tag: 2017 source edit
No edit summary
Line 3: Line 3:


[[File:HW-ButtonLink.png|350x350px]]
[[File:HW-ButtonLink.png|350x350px]]
</div>This template creates a link that is styled as a button. It can be inserted into a  wiki page via the VisualEditor ''Insert > Template'' menu.
</div>This template allows to embed the Table of Contents of a book on any wiki page. It can be inserted into a  wiki page via the VisualEditor ''Insert > Template'' menu.
==Importing the template==
==Importing the template==
The import file is included in the archive file ''HW-Bookchapters.zip''. Unpack the zip file first.
The import file is included in the archive file ''HW-Bookchapters.zip''. Unpack the zip file first.
Line 22: Line 22:


==Using the template==
==Using the template==
# '''Insert''' the template from the Visual Editor.
# '''Enter''' the title of the book.
# '''Click''' ''Apply changes''.
The table of contents is now displayed on the page.





Revision as of 12:44, 4 August 2023

This template allows to embed the Table of Contents of a book on any wiki page. It can be inserted into a wiki page via the VisualEditor Insert > Template menu.

Importing the template

The import file is included in the archive file HW-Bookchapters.zip. Unpack the zip file first.

On the page Special:Import follow these steps:

  1. Select file and choose hwBookchapters.xml.
  2. Enter an Interwiki prefix. Since this field is required, simply add hw (for hallowelt).
  3. Keep the selection Import to default locations.
  4. Click Upload file... .

The template is now available in your wiki.

Pages included in the import

The xml import creates the following files in your wiki:

  • Template:Bookchapters
  • Template:Bookchapters/styles.css

Using the template

  1. Insert the template from the Visual Editor.
  2. Enter the title of the book.
  3. Click Apply changes.


The table of contents is now displayed on the page.








To submit feedback about this documentation, visit our community forum.