Template:ChapterNavigation: Difference between revisions
Appearance
Created page with "<onlyinclude><div class="cn-box"> <table class="cn-row"><tr> {{#if:{{{prevurl|}}}| <td class="cn-prev"> <div class="cn-direction">← Previous</div> <div class="cn-chapter-title">[[{{{prevurl}}}|{{{prevtitle}}}]]</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 cla..." |
No edit summary |
||
| Line 3: | Line 3: | ||
{{#if:{{{prevurl|}}}| | {{#if:{{{prevurl|}}}| | ||
<td class="cn-prev"> | <td class="cn-prev"> | ||
< | <a href="{{{prevurl}}}" class="cn-arrow cn-arrow-prev">←</a> | ||
</td> | </td> | ||
| | | | ||
<td class="cn-prev cn-empty"> | <td class="cn-prev cn-empty"> | ||
</td> | </td> | ||
}} | }} | ||
| Line 19: | Line 16: | ||
{{#if:{{{nexturl|}}}| | {{#if:{{{nexturl|}}}| | ||
<td class="cn-next"> | <td class="cn-next"> | ||
< | <a href="{{{nexturl}}}" class="cn-arrow cn-arrow-next">→</a> | ||
</td> | </td> | ||
| | | | ||
<td class="cn-next cn-empty"> | <td class="cn-next cn-empty"> | ||
</td> | </td> | ||
}} | }} | ||
| Line 32: | Line 26: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Standard chapter (both prev and next): | Standard chapter (both prev and next): | ||
<pre> | <pre> | ||
| Line 39: | Line 32: | ||
| reporturl = IPCC:AR6/WGI | | reporturl = IPCC:AR6/WGI | ||
| reporttitle = Annual Climate Assessment 2023 | | reporttitle = Annual Climate Assessment 2023 | ||
| prevurl = IPCC:AR6/WGI/Chapter2 | | prevurl = IPCC:AR6/WGI/Chapter2 | ||
| nexturl = IPCC:AR6/WGI/Chapter4 | | nexturl = IPCC:AR6/WGI/Chapter4 | ||
}} | }} | ||
</pre> | </pre> | ||
First chapter (omit prevurl): | |||
First chapter (omit prevurl | |||
<pre> | <pre> | ||
{{ChapterNav | {{ChapterNav | ||
| Line 56: | Line 42: | ||
| reporturl = IPCC:AR6/WGI | | reporturl = IPCC:AR6/WGI | ||
| reporttitle = Annual Climate Assessment 2023 | | reporttitle = Annual Climate Assessment 2023 | ||
| nexturl = IPCC:AR6/WGI/Chapter2 | | nexturl = IPCC:AR6/WGI/Chapter2 | ||
}} | }} | ||
</pre> | </pre> | ||
Last chapter (omit nexturl): | |||
Last chapter (omit nexturl | |||
<pre> | <pre> | ||
{{ChapterNav | {{ChapterNav | ||
| Line 69: | Line 51: | ||
| reporturl = IPCC:AR6/WGI | | reporturl = IPCC:AR6/WGI | ||
| reporttitle = Annual Climate Assessment 2023 | | reporttitle = Annual Climate Assessment 2023 | ||
| prevurl = IPCC:AR6/WGI/Chapter3 | | prevurl = IPCC:AR6/WGI/Chapter3 | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 07:55, 22 May 2026
|
[[File:{{{cover}}}|48px|link={{{reporturl}}}]]
Report
[[{{{reporturl}}}|{{{reporttitle}}}]]
|
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
| nexturl = IPCC:AR6/WGI/Chapter4
}}
First chapter (omit prevurl):
{{ChapterNav
| cover = Test-wgI.jpg
| reporturl = IPCC:AR6/WGI
| reporttitle = Annual Climate Assessment 2023
| nexturl = IPCC:AR6/WGI/Chapter2
}}
Last chapter (omit nexturl):
{{ChapterNav
| cover = Test-wgI.jpg
| reporturl = IPCC:AR6/WGI
| reporttitle = Annual Climate Assessment 2023
| prevurl = IPCC:AR6/WGI/Chapter3
}}