Template:ReportTOC: Difference between revisions

From ClimateKG
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
<div class="s-fm">
<div class="s-fm">
<div class="rtoc-section-title">Front Matter</div>
<div class="rtoc-section-title">Front Matter</div>
{{#if:{{{fm1title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{fm1title}}}</span><a class="rtoc-read" href="{{{fm1url}}}">Read</a></div>}}
<div class="rtoc-oos">Content in this section is out of scope</div>
{{#if:{{{fm2title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{fm2title}}}</span><a class="rtoc-read" href="{{{fm2url}}}">Read</a></div>}}
{{#if:{{{fm3title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{fm3title}}}</span><a class="rtoc-read" href="{{{fm3url}}}">Read</a></div>}}
{{#if:{{{fm4title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{fm4title}}}</span><a class="rtoc-read" href="{{{fm4url}}}">Read</a></div>}}
</div>
</div>


Line 36: Line 33:
{{#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"><span class="rtoc-entry-title">{{{ch9title}}}</span><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"><span class="rtoc-entry-title">{{{ch10title}}}</span><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:{{{ch12title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{ch12title}}}</span><a class="rtoc-read" href="{{{ch12url}}}">Read</a></div>}}
</div>
</div>


<div class="s-an">
<div class="s-an">
<div class="rtoc-section-title">Annexes</div>
<div class="rtoc-section-title">Annexes</div>
{{#if:{{{an1title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{an1title}}}</span><a class="rtoc-read" href="{{{an1url}}}">Read</a></div>}}
<div class="rtoc-oos">Content in this section is out of scope</div>
{{#if:{{{an2title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{an2title}}}</span><a class="rtoc-read" href="{{{an2url}}}">Read</a></div>}}
{{#if:{{{an3title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{an3title}}}</span><a class="rtoc-read" href="{{{an3url}}}">Read</a></div>}}
{{#if:{{{an4title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{an4title}}}</span><a class="rtoc-read" href="{{{an4url}}}">Read</a></div>}}
{{#if:{{{an5title|}}}|<div class="rtoc-entry"><span class="rtoc-entry-title">{{{an5title}}}</span><a class="rtoc-read" href="{{{an5url}}}">Read</a></div>}}
</div>
</div>


Line 52: Line 47:
<pre>
<pre>
{{ReportTOC
{{ReportTOC
| fm1title  = Foreword
| fm1url    = https://wiki.example.org/Foreword
| fm2title  = Preface
| fm2url    = https://wiki.example.org/Preface
| spm1title = Summary for Policymakers
| spm1title = Summary for Policymakers
| spm1url  = https://wiki.example.org/SPM
| spm1url  = https://wiki.example.org/SPM
Line 67: Line 57:
| ch2title  = Chapter 2: Observed Changes
| ch2title  = Chapter 2: Observed Changes
| ch2url    = https://wiki.example.org/Chapter_2
| ch2url    = https://wiki.example.org/Chapter_2
| an1title  = Annex I: Glossary
| an1url    = https://wiki.example.org/Annex_I
}}
}}
</pre>
</pre>


All parameters are optional except where a section is used — if a section has no entries it will still render its header. Chapters supports up to 10 entries; all other sections support up to 4–5. Increment the number suffix to add more entries within each section.
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.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 04:49, 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
| spm1title = Summary for Policymakers
| spm1url   = https://wiki.example.org/SPM

| ts1title  = Technical Summary
| ts1url    = https://wiki.example.org/TS

| ch1title  = Chapter 1: Framing and Context
| ch1url    = https://wiki.example.org/Chapter_1
| ch2title  = Chapter 2: Observed Changes
| ch2url    = https://wiki.example.org/Chapter_2
}}

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.