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 |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
{{#if:{{{prevurl|}}}| | {{#if:{{{prevurl|}}}| | ||
<td class="cn-prev"> | <td class="cn-prev"> | ||
<div class="cn- | <div class="cn-arrow-label">Previous chapter</div> | ||
< | <span class="cn-arrow cn-arrow-prev">[[{{{prevurl}}}|←]]</span> | ||
</td> | </td> | ||
| | | | ||
<td class="cn-prev cn-empty"> | <td class="cn-prev cn-empty"> | ||
<div class="cn-empty-label"> | <div class="cn-empty-label">No previous chapter</div> | ||
</td> | </td> | ||
}} | }} | ||
<td class="cn-center"> | <td class="cn-center"> | ||
<div class="cn-center- | <div class="cn-center-header"> | ||
<div class="cn-center-label">Report</div> | <div class="cn-center-label">Report</div> | ||
<div class="cn-center-title">[[{{{reporturl}}}|{{{reporttitle}}}]]</div> | <div class="cn-center-title">[[{{{reporturl}}}|{{{reporttitle}}}]]</div> | ||
</div> | |||
<div class="cn-center-img">[[File:{{{cover}}}|96px|link={{{reporturl}}}]]</div> | |||
</td> | </td> | ||
{{#if:{{{nexturl|}}}| | {{#if:{{{nexturl|}}}| | ||
<td class="cn-next"> | <td class="cn-next"> | ||
<div class="cn- | <div class="cn-arrow-label">Next chapter</div> | ||
< | <span class="cn-arrow cn-arrow-next">[[{{{nexturl}}}|→]]</span> | ||
</td> | </td> | ||
| | | | ||
<td class="cn-next cn-empty"> | <td class="cn-next cn-empty"> | ||
<div class="cn-empty-label"> | <div class="cn-empty-label">No next chapter</div> | ||
</td> | </td> | ||
}} | }} | ||
| Line 32: | Line 32: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Standard chapter (both prev and next): | Standard chapter (both prev and next): | ||
<pre> | <pre> | ||
| Line 39: | Line 38: | ||
| 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 48: | ||
| 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 57: | ||
| 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> | ||
Latest revision as of 08:21, 22 May 2026
|
No previous chapter
|
Report
[[{{{reporturl}}}|{{{reporttitle}}}]]
[[File:{{{cover}}}|96px|link={{{reporturl}}}]]
|
No next chapter
|
Usage
[edit source]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
}}