Template:ReportTOC: Difference between revisions

From ClimateKG
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
<div class="s-spm">
<div class="s-spm">
<div class="rtoc-section-title">SPM</div>
<div class="rtoc-section-title">SPM</div>
{{#if:{{{spm1title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{spm1title}}}</span><a class="rtoc-read" href="{{{spm1url}}}">Read</a></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><a class="rtoc-read" href="{{{spmurl}}}">Read</a></div>}}
{{#if:{{{spm2title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{spm2title}}}</span><a class="rtoc-read" href="{{{spm2url}}}">Read</a></div>}}
{{#if:{{{spm3title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{spm3title}}}</span><a class="rtoc-read" href="{{{spm3url}}}">Read</a></div>}}
</div>
</div>


<div class="s-ts">
<div class="s-ts">
<div class="rtoc-section-title">TS</div>
<div class="rtoc-section-title">TS</div>
{{#if:{{{ts1title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ts1title}}}</span><a class="rtoc-read" href="{{{ts1url}}}">Read</a></div>}}
{{#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><a class="rtoc-read" href="{{{tsurl}}}">Read</a></div>}}
{{#if:{{{ts2title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ts2title}}}</span><a class="rtoc-read" href="{{{ts2url}}}">Read</a></div>}}
{{#if:{{{ts3title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ts3title}}}</span><a class="rtoc-read" href="{{{ts3url}}}">Read</a></div>}}
</div>
</div>


<div class="s-ch">
<div class="s-ch">
<div class="rtoc-section-title">Chapters</div>
<div class="rtoc-section-title">Chapters</div>
{{#if:{{{ch1title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch1title}}}</span><a class="rtoc-read" href="{{{ch1url}}}">Read</a></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><a class="rtoc-read" href="{{{ch1url}}}">Read</a></div>}}
{{#if:{{{ch2title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch2title}}}</span><a class="rtoc-read" href="{{{ch2url}}}">Read</a></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><a class="rtoc-read" href="{{{ch2url}}}">Read</a></div>}}
{{#if:{{{ch3title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch3title}}}</span><a class="rtoc-read" href="{{{ch3url}}}">Read</a></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><a class="rtoc-read" href="{{{ch3url}}}">Read</a></div>}}
{{#if:{{{ch4title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch4title}}}</span><a class="rtoc-read" href="{{{ch4url}}}">Read</a></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><a class="rtoc-read" href="{{{ch4url}}}">Read</a></div>}}
{{#if:{{{ch5title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch5title}}}</span><a class="rtoc-read" href="{{{ch5url}}}">Read</a></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><a class="rtoc-read" href="{{{ch5url}}}">Read</a></div>}}
{{#if:{{{ch6title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch6title}}}</span><a class="rtoc-read" href="{{{ch6url}}}">Read</a></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><a class="rtoc-read" href="{{{ch6url}}}">Read</a></div>}}
{{#if:{{{ch7title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch7title}}}</span><a class="rtoc-read" href="{{{ch7url}}}">Read</a></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><a class="rtoc-read" href="{{{ch7url}}}">Read</a></div>}}
{{#if:{{{ch8title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch8title}}}</span><a class="rtoc-read" href="{{{ch8url}}}">Read</a></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><a class="rtoc-read" href="{{{ch8url}}}">Read</a></div>}}
{{#if:{{{ch9title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch9title}}}</span><a class="rtoc-read" href="{{{ch9url}}}">Read</a></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><a class="rtoc-read" href="{{{ch9url}}}">Read</a></div>}}
{{#if:{{{ch10title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch10title}}}</span><a class="rtoc-read" href="{{{ch10url}}}">Read</a></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><a class="rtoc-read" href="{{{ch10url}}}">Read</a></div>}}
{{#if:{{{ch11title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch11title}}}</span><a class="rtoc-read" href="{{{ch11url}}}">Read</a></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><a class="rtoc-read" href="{{{ch11url}}}">Read</a></div>}}
{{#if:{{{ch12title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch12title}}}</span><a class="rtoc-read" href="{{{ch12url}}}">Read</a></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><a class="rtoc-read" href="{{{ch12url}}}">Read</a></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><a class="rtoc-read" href="{{{ch13url}}}">Read</a></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><a class="rtoc-read" href="{{{ch14url}}}">Read</a></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><a class="rtoc-read" href="{{{ch15url}}}">Read</a></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><a class="rtoc-read" href="{{{ch16url}}}">Read</a></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><a class="rtoc-read" href="{{{ch17url}}}">Read</a></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><a class="rtoc-read" href="{{{ch18url}}}">Read</a></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><a class="rtoc-read" href="{{{ch19url}}}">Read</a></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><a class="rtoc-read" href="{{{ch20url}}}">Read</a></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><a class="rtoc-read" href="{{{ch21url}}}">Read</a></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><a class="rtoc-read" href="{{{ch22url}}}">Read</a></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><a class="rtoc-read" href="{{{ch23url}}}">Read</a></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><a class="rtoc-read" href="{{{ch24url}}}">Read</a></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><a class="rtoc-read" href="{{{ch25url}}}">Read</a></div>}}
</div>
</div>


Line 47: Line 56:
<pre>
<pre>
{{ReportTOC
{{ReportTOC
| spm1title = Summary for Policymakers
| spmtitle    = Summary for Policymakers
| spm1url  = https://wiki.example.org/SPM
| spmsubtitle = Key findings and policy implications
| spmurl      = https://wiki.example.org/SPM


| ts1title  = Technical Summary
| tstitle    = Technical Summary
| ts1url    = https://wiki.example.org/TS
| tssubtitle = Detailed scientific assessment
| tsurl      = https://wiki.example.org/TS


| ch1title = Chapter 1: Framing and Context
| ch1title   = Chapter 1: Framing and Context
| ch1url   = https://wiki.example.org/Chapter_1
| ch1subtitle = Concepts, methods and approaches
| ch2title = Chapter 2: Observed Changes
| ch1url     = https://wiki.example.org/Chapter_1
| ch2url   = https://wiki.example.org/Chapter_2
| ch2title   = Chapter 2: Observed Changes
| ch2subtitle = Surface temperature and sea level
| ch2url     = https://wiki.example.org/Chapter_2
}}
}}
</pre>
</pre>


Chapters supports up to 12 entries. SPM and TS support up to 3 entries each. Front Matter and Annexes display a static out-of-scope message and take no parameters.
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>

Revision as of 04:58, 13 April 2026

Contents
Front Matter
Content in this section is out of scope
SPM
TS
Chapters













Annexes
Content in this section is out of scope

Usage

{{ReportTOC
| spmtitle    = Summary for Policymakers
| spmsubtitle = Key findings and policy implications
| spmurl      = https://wiki.example.org/SPM

| tstitle    = Technical Summary
| tssubtitle = Detailed scientific assessment
| tsurl      = https://wiki.example.org/TS

| ch1title    = Chapter 1: Framing and Context
| ch1subtitle = Concepts, methods and approaches
| ch1url      = https://wiki.example.org/Chapter_1
| ch2title    = Chapter 2: Observed Changes
| ch2subtitle = Surface temperature and sea level
| ch2url      = https://wiki.example.org/Chapter_2
}}

SPM and TS take a single entry each. Chapters supports up to 25 entries. Subtitles are optional for all entries.