Template:ChapterNav: Difference between revisions

From ClimateKG
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 8: Line 8:
</div>
</div>
<table class="cn-nav"><tr>
<table class="cn-nav"><tr>
{{#if:{{{prevurl|}}}|
<td class="cn-prev">
<td class="cn-prev">
<div class="cn-direction">← Previous</div>
<div class="cn-direction">← Previous</div>
Line 13: Line 14:
<div class="cn-chapter-desc">{{{prevdesc}}}</div>
<div class="cn-chapter-desc">{{{prevdesc}}}</div>
</td>
</td>
|
<td class="cn-prev cn-empty">
<div class="cn-empty-label">First chapter</div>
</td>
}}
{{#if:{{{nexturl|}}}|
<td class="cn-next">
<td class="cn-next">
<div class="cn-direction">Next →</div>
<div class="cn-direction">Next →</div>
Line 18: Line 25:
<div class="cn-chapter-desc">{{{nextdesc}}}</div>
<div class="cn-chapter-desc">{{{nextdesc}}}</div>
</td>
</td>
|
<td class="cn-next cn-empty">
<div class="cn-empty-label">Last chapter</div>
</td>
}}
</tr></table>
</tr></table>
</div></onlyinclude>
</div></onlyinclude>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Standard chapter (both prev and next):
<pre>
<pre>
{{ChapterNav
{{ChapterNav
Line 35: Line 49:
| nexttitle    = Chapter 4: Risk Assessment
| nexttitle    = Chapter 4: Risk Assessment
| nextdesc    = Regional vulnerability and exposure under future scenarios
| nextdesc    = Regional vulnerability and exposure under future scenarios
}}
</pre>
First chapter (omit prevurl, prevtitle, prevdesc):
<pre>
{{ChapterNav
| cover        = Test-wgI.jpg
| reporturl    = IPCC:AR6/WGI
| reporttitle  = Annual Climate Assessment 2023
| nexturl      = IPCC:AR6/WGI/Chapter2
| nexttitle    = Chapter 2: Observed Changes
| nextdesc    = Surface temperature, sea level, and ice sheet dynamics
}}
</pre>
Last chapter (omit nexturl, nexttitle, nextdesc):
<pre>
{{ChapterNav
| cover        = Test-wgI.jpg
| reporturl    = IPCC:AR6/WGI
| reporttitle  = Annual Climate Assessment 2023
| prevurl      = IPCC:AR6/WGI/Chapter3
| prevtitle    = Chapter 3: Future Projections
| prevdesc    = Regional vulnerability and exposure under future scenarios
}}
}}
</pre>
</pre>

Revision as of 08:03, 10 April 2026

[[File:{{{cover}}}|48px|link={{{reporturl}}}]]
Report
[[{{{reporturl}}}|{{{reporttitle}}}]]
First chapter
Last chapter

Usage

Standard chapter (both prev and next):

{{ChapterNav
| cover        = Test-wgI.jpg
| reporturl    = IPCC:AR6/WGI
| reporttitle  = Annual Climate Assessment 2023

| prevurl      = IPCC:AR6/WGI/Chapter2
| prevtitle    = Chapter 2: Observed Changes
| prevdesc     = Surface temperature, sea level, and ice sheet dynamics

| nexturl      = IPCC:AR6/WGI/Chapter4
| nexttitle    = Chapter 4: Risk Assessment
| nextdesc     = Regional vulnerability and exposure under future scenarios
}}

First chapter (omit prevurl, prevtitle, prevdesc):

{{ChapterNav
| cover        = Test-wgI.jpg
| reporturl    = IPCC:AR6/WGI
| reporttitle  = Annual Climate Assessment 2023

| nexturl      = IPCC:AR6/WGI/Chapter2
| nexttitle    = Chapter 2: Observed Changes
| nextdesc     = Surface temperature, sea level, and ice sheet dynamics
}}

Last chapter (omit nexturl, nexttitle, nextdesc):

{{ChapterNav
| cover        = Test-wgI.jpg
| reporturl    = IPCC:AR6/WGI
| reporttitle  = Annual Climate Assessment 2023

| prevurl      = IPCC:AR6/WGI/Chapter3
| prevtitle    = Chapter 3: Future Projections
| prevdesc     = Regional vulnerability and exposure under future scenarios
}}