Template:CTOC-title
|
[[{{{1}}}|{{{2}}}]]
|
|---|
The "CTOC" templates are an attempt to create a custom, collapsable table of contents. Use of the "title" and "content" templates together allow a collapsable table of contents with a depth of one (ex. Title, Chapter). The templates may be nested to create TOCs with more depth (ex. Title, Chapter, Section). See the example below.
Contents |
Templates [edit]
The templates include:
- {{CTOC-title}}
- {{CTOC-title-nl}}
- {{CTOC-content}}
- {{CTOC-content-nl}}
- {{end}}
Usage [edit]
CTOC-title [edit]
{{CTOC-title}} is a table of contents title which is shown when the table is collapsed. Creates a link to an anchor (chapter, heading, etc) in the work.
| Paramater | Mandatory | Definition | Notes |
|---|---|---|---|
| 1 | yes | The anchor. | |
| 2 | yes | The table of contents title. | |
| 3 | no | indent level. | Tabs over 2em for each level (if 2 is entered, text is tabbed 2 x 2em = 4 em). Is "0" if not defined. |
CTOC-title-nl [edit]
{{CTOC-title-nl}} is a table of contents title which is shown when the table is collapsed. No link (-nl).
| Paramater | Mandatory | Definition | Notes |
|---|---|---|---|
| 1 | yes | The table of contents title. | |
| 2 | no | indent level. | Tabs over 2em for each level (if 2 is entered, text is tabbed 2 x 2em = 4 em). Is "0" if not defined. |
CTOC-content [edit]
{{CTOC-content}} is a table of contents title which is shown when the table is expanded. Creates a link to an anchor (chapter, heading, etc) in the work.
| Paramater | Mandatory | Definition | Notes |
|---|---|---|---|
| 1 | yes | The anchor. | |
| 2 | yes | The table of contents title. | |
| 3 | no | indent level. | Tabs over 2em for each level (if 2 is entered, text is tabbed 2 x 2em = 4 em). Is "0" if not defined. |
CTOC-content-nl [edit]
{{CTOC-content-nl}} is a table of contents title which is shown when the table is expanded. No link (-nl).
| Paramater | Mandatory | Definition | Notes |
|---|---|---|---|
| 1 | yes | The anchor. | |
| 2 | yes | The table of contents title. | |
| 3 | no | indent level. | Tabs over 2em for each level (if 2 is entered, text is tabbed 2 x 2em = 4 em). Is "0" if not defined. |
End [edit]
{{end}} is entered after the last line of content. No parameters.
Example [edit]
{{CTOC-title|Constitution Act, 1867#act|<u>'''Constitution Act, 1867'''</u>}}
{{CTOC-content-nl|
{{CTOC-title|Constitution Act, 1867#Part I|'''Part I. Preliminary'''|1}}
{{CTOC-content|Constitution Act, 1867#1.|'''1.''' Short title.|4}}
{{CTOC-content|Constitution Act, 1867#2.|'''2.''' [Repealed]|4}}
{{end}}
}}
{{CTOC-content-nl|
{{CTOC-title|Constitution Act, 1867#Part II|'''Part II. Union'''|1}}
{{CTOC-content|Constitution Act, 1867#3.|'''3.''' Declaration of Union.|4}}
{{CTOC-content|Constitution Act, 1867#4.|'''4.''' Construction of subsequent Provisions of Act.|4}}
{{CTOC-content|Constitution Act, 1867#5.|'''5.''' Four Provinces.|4}}
{{CTOC-content|Constitution Act, 1867#6.|'''6.''' Provinces of Ontario and Quebec;|4}}
{{CTOC-content|Constitution Act, 1867#7.|'''7.''' Provinces of Nova Scotia and New Brunswick.|4}}
{{CTOC-content|Constitution Act, 1867#8.|'''8.''' Decennial Census.|4}}
{{end}}
}}
{{CTOC-content-nl|
{{CTOC-title|Constitution Act, 1867#Part III|'''Part III. Executive Power'''|1}}
{{CTOC-content|Constitution Act, 1867#9.|'''9.''' Declaration of Executive Power in the Queen.|4}}
{{CTOC-content|Constitution Act, 1867#10.|'''10.''' Application of Provisions referring to Governor General.|4}}
{{CTOC-content|Constitution Act, 1867#11.|'''11.''' Constitution of Privy Council for Canada.|4}}
{{CTOC-content|Constitution Act, 1867#12.|'''12.''' All Powers under Acts to be exercised by Governor General with Advice of Privy Council, or alone.|4}}
{{CTOC-content|Constitution Act, 1867#13.|'''13.''' Application of Provisions referring to Governor General in Council.|4}}
{{CTOC-content|Constitution Act, 1867#14.|'''14.''' Power to Her Majesty to authorize Governor General to appoint Deputies.|4}}
{{CTOC-content|Constitution Act, 1867#15.|'''15.''' Command of Armed Forces to continue to be vested in the Queen.|4}}
{{CTOC-content|Constitution Act, 1867#16.|'''16.''' Seat of Government of Canada.|4}}
{{end}}
}}
{{end}}
|
|
| The above documentation is transcluded from Template:CTOC-title/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |