Template:ChapterNav: Difference between revisions
Jump to navigation
Jump to search
Created page with "<div class="chapter-nav"> <div class="chapter-nav-report">[[{{{report}}}|{{{reporttitle}}}]]</div> <div class="chapter-nav-buttons"> <span class="chapter-nav-prev">[[{{{prev}}}|← Previous chapter]]</span> <span class="chapter-nav-next">[[{{{next}}}|Next chapter →]]</span> </div> </div>" |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div class=" | <onlyinclude><div class="cn-box"> | ||
<div class="chapter- | <table class="cn-row"><tr> | ||
<div class="chapter- | {{#if:{{{prevurl|}}}| | ||
< | <td class="cn-prev"> | ||
< | <div class="cn-direction">← Previous</div> | ||
</div> | <div class="cn-chapter-title">[[{{{prevurl}}}|{{{prevtitle}}}]]</div> | ||
</div> | <div class="cn-chapter-desc">{{{prevdesc}}}</div> | ||
</td> | |||
| | |||
<td class="cn-prev cn-empty"> | |||
<div class="cn-empty-label">First chapter</div> | |||
</td> | |||
}} | |||
<td class="cn-center"> | |||
<div class="cn-center-img">[[File:{{{cover}}}|48px|link={{{reporturl}}}]]</div> | |||
<div class="cn-center-label">Report</div> | |||
<div class="cn-center-title">[[{{{reporturl}}}|{{{reporttitle}}}]]</div> | |||
</td> | |||
{{#if:{{{nexturl|}}}| | |||
<td class="cn-next"> | |||
<div class="cn-direction">Next →</div> | |||
<div class="cn-chapter-title">[[{{{nexturl}}}|{{{nexttitle}}}]]</div> | |||
<div class="cn-chapter-desc">{{{nextdesc}}}</div> | |||
</td> | |||
| | |||
<td class="cn-next cn-empty"> | |||
<div class="cn-empty-label">Last chapter</div> | |||
</td> | |||
}} | |||
</tr></table> | |||
</div></onlyinclude> | |||
<noinclude> | |||
== Usage == | |||
Standard chapter (both prev and next): | |||
<pre> | |||
{{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 and sea level dynamics | |||
| nexturl = IPCC:AR6/WGI/Chapter4 | |||
| nexttitle = Chapter 4: Risk Assessment | |||
| nextdesc = Regional vulnerability 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 and sea level 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 under future scenarios | |||
}} | |||
</pre> | |||
[[Category:Templates]] | |||
</noinclude> | |||
Latest revision as of 02:53, 16 April 2026
|
First chapter
|
[[File:{{{cover}}}|48px|link={{{reporturl}}}]]
Report
[[{{{reporturl}}}|{{{reporttitle}}}]]
|
Last chapter
|
Usage
[edit]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 and sea level dynamics
| nexturl = IPCC:AR6/WGI/Chapter4
| nexttitle = Chapter 4: Risk Assessment
| nextdesc = Regional vulnerability 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 and sea level 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 under future scenarios
}}