|
|
| (One intermediate revision by the same user not shown) |
| Line 1: |
Line 1: |
| <onlyinclude><div class="rtoc-box"> | | <noinclude> |
| <div class="rtoc-header">Contents</div>
| | == ReportTOC Template == |
| | | This template creates a styled table of contents for reports with sections for SPM, Technical Summary, Chapters, and Annexes. |
| <div class="s-fm">
| |
| <div class="rtoc-section-title">Front Matter</div>
| |
| <div class="rtoc-oos">Content in this section is out of scope</div>
| |
| </div>
| |
| | |
| <div class="s-spm">
| |
| <div class="rtoc-section-title">SPM</div>
| |
| {{#if:{{{spmtitle|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{spmtitle}}}</span>{{#if:{{{spmsubtitle|}}}|<span class="rtoc-entry-subtitle">{{{spmsubtitle}}}</span>}}</div><span class="rtoc-read">[[{{{spmurl}}}|Read]]</span></div>}}
| |
| </div>
| |
|
| |
|
| <div class="s-ts">
| | The template uses [[Module:ReportTOC]] to render chapters dynamically. |
| <div class="rtoc-section-title">TS</div>
| | </noinclude>{{#invoke:ReportTOC|main|spmtitle={{{spmtitle|}}}|spmsubtitle={{{spmsubtitle|}}}|spmurl={{{spmurl|}}}|tstitle={{{tstitle|}}}|tssubtitle={{{tssubtitle|}}}|tsurl={{{tsurl|}}}|ch1title={{{ch1title|}}}|ch1subtitle={{{ch1subtitle|}}}|ch1url={{{ch1url|}}}|ch2title={{{ch2title|}}}|ch2subtitle={{{ch2subtitle|}}}|ch2url={{{ch2url|}}}|ch3title={{{ch3title|}}}|ch3subtitle={{{ch3subtitle|}}}|ch3url={{{ch3url|}}}|ch4title={{{ch4title|}}}|ch4subtitle={{{ch4subtitle|}}}|ch4url={{{ch4url|}}}|ch5title={{{ch5title|}}}|ch5subtitle={{{ch5subtitle|}}}|ch5url={{{ch5url|}}}|ch6title={{{ch6title|}}}|ch6subtitle={{{ch6subtitle|}}}|ch6url={{{ch6url|}}}|ch7title={{{ch7title|}}}|ch7subtitle={{{ch7subtitle|}}}|ch7url={{{ch7url|}}}|ch8title={{{ch8title|}}}|ch8subtitle={{{ch8subtitle|}}}|ch8url={{{ch8url|}}}|ch9title={{{ch9title|}}}|ch9subtitle={{{ch9subtitle|}}}|ch9url={{{ch9url|}}}|ch10title={{{ch10title|}}}|ch10subtitle={{{ch10subtitle|}}}|ch10url={{{ch10url|}}}|ch11title={{{ch11title|}}}|ch11subtitle={{{ch11subtitle|}}}|ch11url={{{ch11url|}}}|ch12title={{{ch12title|}}}|ch12subtitle={{{ch12subtitle|}}}|ch12url={{{ch12url|}}}|ch13title={{{ch13title|}}}|ch13subtitle={{{ch13subtitle|}}}|ch13url={{{ch13url|}}}|ch14title={{{ch14title|}}}|ch14subtitle={{{ch14subtitle|}}}|ch14url={{{ch14url|}}}|ch15title={{{ch15title|}}}|ch15subtitle={{{ch15subtitle|}}}|ch15url={{{ch15url|}}}|ch16title={{{ch16title|}}}|ch16subtitle={{{ch16subtitle|}}}|ch16url={{{ch16url|}}}|ch17title={{{ch17title|}}}|ch17subtitle={{{ch17subtitle|}}}|ch17url={{{ch17url|}}}|ch18title={{{ch18title|}}}|ch18subtitle={{{ch18subtitle|}}}|ch18url={{{ch18url|}}}|ch19title={{{ch19title|}}}|ch19subtitle={{{ch19subtitle|}}}|ch19url={{{ch19url|}}}|ch20title={{{ch20title|}}}|ch20subtitle={{{ch20subtitle|}}}|ch20url={{{ch20url|}}}|ch21title={{{ch21title|}}}|ch21subtitle={{{ch21subtitle|}}}|ch21url={{{ch21url|}}}|ch22title={{{ch22title|}}}|ch22subtitle={{{ch22subtitle|}}}|ch22url={{{ch22url|}}}|ch23title={{{ch23title|}}}|ch23subtitle={{{ch23subtitle|}}}|ch23url={{{ch23url|}}}|ch24title={{{ch24title|}}}|ch24subtitle={{{ch24subtitle|}}}|ch24url={{{ch24url|}}}|ch25title={{{ch25title|}}}|ch25subtitle={{{ch25subtitle|}}}|ch25url={{{ch25url|}}} |
| {{#if:{{{tstitle|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{tstitle}}}</span>{{#if:{{{tssubtitle|}}}|<span class="rtoc-entry-subtitle">{{{tssubtitle}}}</span>}}</div><span class="rtoc-read">[[{{{tsurl}}}|Read]]</span></div>}} | | }}<noinclude> |
| </div> | |
|
| |
|
| <div class="s-ch">
| |
| <div class="rtoc-section-title">Chapters</div>
| |
| {{#if:{{{ch1title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch1title}}}</span>{{#if:{{{ch1subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch1subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch1url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch2title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch2title}}}</span>{{#if:{{{ch2subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch2subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch2url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch3title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch3title}}}</span>{{#if:{{{ch3subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch3subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch3url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch4title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch4title}}}</span>{{#if:{{{ch4subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch4subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch4url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch5title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch5title}}}</span>{{#if:{{{ch5subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch5subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch5url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch6title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch6title}}}</span>{{#if:{{{ch6subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch6subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch6url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch7title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch7title}}}</span>{{#if:{{{ch7subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch7subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch7url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch8title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch8title}}}</span>{{#if:{{{ch8subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch8subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch8url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch9title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch9title}}}</span>{{#if:{{{ch9subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch9subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch9url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch10title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch10title}}}</span>{{#if:{{{ch10subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch10subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch10url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch11title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch11title}}}</span>{{#if:{{{ch11subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch11subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch11url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch12title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch12title}}}</span>{{#if:{{{ch12subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch12subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch12url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch13title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch13title}}}</span>{{#if:{{{ch13subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch13subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch13url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch14title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch14title}}}</span>{{#if:{{{ch14subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch14subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch14url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch15title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch15title}}}</span>{{#if:{{{ch15subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch15subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch15url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch16title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch16title}}}</span>{{#if:{{{ch16subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch16subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch16url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch17title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch17title}}}</span>{{#if:{{{ch17subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch17subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch17url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch18title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch18title}}}</span>{{#if:{{{ch18subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch18subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch18url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch19title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch19title}}}</span>{{#if:{{{ch19subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch19subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch19url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch20title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch20title}}}</span>{{#if:{{{ch20subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch20subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch20url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch21title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch21title}}}</span>{{#if:{{{ch21subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch21subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch21url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch22title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch22title}}}</span>{{#if:{{{ch22subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch22subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch22url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch23title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch23title}}}</span>{{#if:{{{ch23subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch23subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch23url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch24title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch24title}}}</span>{{#if:{{{ch24subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch24subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch24url}}}|Read]]</span></div>}}
| |
| {{#if:{{{ch25title|}}}|<div class="rtoc-entry"><div class="rtoc-entry-text"><span class="rtoc-entry-title">{{{ch25title}}}</span>{{#if:{{{ch25subtitle|}}}|<span class="rtoc-entry-subtitle">{{{ch25subtitle}}}</span>}}</div><span class="rtoc-read">[[{{{ch25url}}}|Read]]</span></div>}}
| |
| </div>
| |
|
| |
| <div class="s-an">
| |
| <div class="rtoc-section-title">Annexes</div>
| |
| <div class="rtoc-oos">Content in this section is out of scope</div>
| |
| </div>
| |
|
| |
| </div></onlyinclude>
| |
| <noinclude>
| |
| == Usage == | | == Usage == |
| <pre> | | <pre> |
| Line 67: |
Line 21: |
| | ch1subtitle = Concepts, methods and approaches | | | ch1subtitle = Concepts, methods and approaches |
| | ch1url = IPCC:AR6/SYR/Chapter-1 | | | ch1url = IPCC:AR6/SYR/Chapter-1 |
| | ch2title = Chapter 2: Observed Changes
| |
| | ch2subtitle = Surface temperature and sea level
| |
| | ch2url = IPCC:AR6/SYR/Chapter-2
| |
| }} | | }} |
| </pre> | | </pre> |
|
| |
| SPM and TS take a single entry each. Chapters supports up to 25 entries. Subtitles are optional for all entries.
| |
|
| |
|
| [[Category:Templates]] | | [[Category:Templates]] |
| </noinclude> | | </noinclude> |
This template creates a styled table of contents for reports with sections for SPM, Technical Summary, Chapters, and Annexes.
The template uses Module:ReportTOC to render chapters dynamically.
Front Matter
Content in this section is out of scope
Annexes
Content in this section is out of scope
{{ReportTOC
| spmtitle = Summary for Policymakers
| spmsubtitle = Key findings and policy implications
| spmurl = IPCC:AR6/SYR/SPM
| tstitle = Technical Summary
| tssubtitle = Detailed scientific assessment
| tsurl = IPCC:AR6/SYR/TS
| ch1title = Chapter 1: Framing and Context
| ch1subtitle = Concepts, methods and approaches
| ch1url = IPCC:AR6/SYR/Chapter-1
}}