Difference between revisions of "Templates download/TOClimit"
(Created page with "<div class="downloadarea"> <span class="getButton">Download</span> 450x450px</div> This template can be int...") (Tag: 2017 source edit) |
(Tag: 2017 source edit) |
This template can be integrated into a page using the Visual Editor Insert>Template link. It makes it possible to limit the heading levels that are shown in the Table of Contents of a wiki page.
Importing the template[edit | edit source]
The import file is included in the archive file HW-TOClimit.zip. Unpack the zip file first.
On the page Special:Import follow these steps:
- Select file and choose HW-TOClimit.xml.
- Enter an Interwiki prefix. Since this field is required, simply add hw (for hallowelt).
- Keep the selection Import to default locations.
- Click Sie Upload file... .
The template is now available in your wiki.
Usage[edit | edit source]
- Insert the template TOClimit with VisualEditor.
- Enter the number of heading levels you want to show on the page (1-4): 1=only main headings, .... , 4= main headings and 3 levels of subheadings
Pages included in the import[edit | edit source]
The xml import creates the following files in your wiki:
- Template:TOClimit
- Template:TOClimit/styles.css
<div class="downloadarea"> <span class="getButton">[[MediumMedia:HW-TOClimit.zip|Download]]</span> [[File:template-download-TOClimit.png|450x450px]]</div> This template can be integrated into a page using the Visual Editor ''Insert>Template'' link. It makes it possible to limit the heading levels that are shown in the Table of Contents of a wiki page. ==Importing the template== The import file is included in the archive file ''HW-TOClimit.zip''. Unpack the zip file first. On the page ''Special:Import'' follow these steps: #'''Select file''' and choose ''HW-TOClimit.xml''. #'''Enter''' an Interwiki prefix. Since this field is required, simply add ''hw'' (for hallowelt). #'''Keep''' the selection ''Import to default locations''. #'''Click''' Sie ''Upload file...'' . The template is now available in your wiki. ==Usage== #Insert the template ''TOClimit'' with VisualEditor. #Enter the number of heading levels you want to show on the page (1-4): 1=only main headings, .... , 4= main headings and 3 levels of subheadings ==Pages included in the import== The xml import creates the following files in your wiki: *Template:TOClimit *Template:TOClimit/styles.css __NOTOC__
Line 1: | Line 1: | ||
<div class="downloadarea"> | <div class="downloadarea"> | ||
− | <span class="getButton">[[ | + | <span class="getButton">[[Media:HW-TOClimit.zip|Download]]</span> |
[[File:template-download-TOClimit.png|450x450px]]</div> | [[File:template-download-TOClimit.png|450x450px]]</div> |