Jump to content

Template:ChapterNavigation: Difference between revisions

From ClimateKG
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-direction">Previous</div>
<div class="cn-arrow-label">Previous chapter</div>
<div class="cn-chapter-title">[[{{{prevurl}}}|{{{prevtitle}}}]]</div>
<span class="cn-arrow cn-arrow-prev">[[{{{prevurl}}}|]]</span>
<div class="cn-chapter-desc">{{{prevdesc}}}</div>
</td>
</td>
|
|
<td class="cn-prev cn-empty">
<td class="cn-prev cn-empty">
<div class="cn-empty-label">First chapter</div>
<div class="cn-empty-label">No previous chapter</div>
</td>
</td>
}}
}}
<td class="cn-center">
<td class="cn-center">
<div class="cn-center-img">[[File:{{{cover}}}|48px|link={{{reporturl}}}]]</div>
<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-direction">Next </div>
<div class="cn-arrow-label">Next chapter</div>
<div class="cn-chapter-title">[[{{{nexturl}}}|{{{nexttitle}}}]]</div>
<span class="cn-arrow cn-arrow-next">[[{{{nexturl}}}|]]</span>
<div class="cn-chapter-desc">{{{nextdesc}}}</div>
</td>
</td>
|
|
<td class="cn-next cn-empty">
<td class="cn-next cn-empty">
<div class="cn-empty-label">Last chapter</div>
<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
| prevtitle    = Chapter 2: Observed Changes
| prevdesc    = Surface temperature and sea level dynamics
| nexturl      = IPCC:AR6/WGI/Chapter4
| nexturl      = IPCC:AR6/WGI/Chapter4
| nexttitle    = Chapter 4: Risk Assessment
| nextdesc    = Regional vulnerability under future scenarios
}}
}}
</pre>
</pre>
 
First chapter (omit prevurl):
First chapter (omit prevurl, prevtitle, prevdesc):
<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
| nexttitle    = Chapter 2: Observed Changes
| nextdesc    = Surface temperature and sea level dynamics
}}
}}
</pre>
</pre>
 
Last chapter (omit nexturl):
Last chapter (omit nexturl, nexttitle, nextdesc):
<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
| prevtitle    = Chapter 3: Future Projections
| prevdesc    = Regional vulnerability under future scenarios
}}
}}
</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

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
}}