Template:Infobox chapter: Difference between revisions
revamped infobox format
Tag: Rollback |
(revamped infobox format) |
||
Line 1: | Line 1: | ||
<div class="infobox"> | <includeonly><div class="infobox"> | ||
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div> | <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div> | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
<div class="infobox-image">[[{{{image}}}|250px|{{{alt|}}}|alt={{{alt|}}}]]</div>}} | <div class="infobox-image">[[{{{image}}}|250px|{{{alt|}}}|alt={{{alt|}}}]]</div>}} | ||
<table class="infobox-table">{{#if:{{{volume|}}}|<tr> | {{#if:{{{volume|}}}{{{chapter-number|}}}{{{title-jp|}}}{{{title-romaji|}}}{{{pages|}}}{{{release-date|}}}| | ||
<table class="infobox-table mw-collapsible" data-collapsetext="Collapse" data-expandtext="Expand" style="width:100%;"><tr> | |||
<th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Information</th> | |||
</tr>{{#if:{{{volume|}}}|<tr> | |||
<th>Volume</th> | <th>Volume</th> | ||
<td>{{{volume}}}</td> | <td>{{{volume}}}</td> | ||
Line 9: | Line 12: | ||
<th>Chapter</th> | <th>Chapter</th> | ||
<td>{{{chapter-number}}}</td> | <td>{{{chapter-number}}}</td> | ||
</tr>}}{{#if:{{{title-jp|}}}|<tr> | |||
<th>Japanese title</th> | |||
<td>{{{title-jp}}}</td> | |||
</tr>}}{{#if:{{{title-romaji|}}}|<tr> | |||
<th>Romaji title</th> | |||
<td>''{{{title-romaji}}}''</td> | |||
</tr>}}{{#if:{{{pages|}}}|<tr> | </tr>}}{{#if:{{{pages|}}}|<tr> | ||
<th> | <th>Page count</th> | ||
<td>{{{pages}}}</td> | <td>{{{pages}}}</td> | ||
</tr>}}{{#if:{{{release-date|}}}|<tr> | </tr>}}{{#if:{{{release-date|}}}|<tr> | ||
<th>Release date</th> | <th>Release date</th> | ||
<td>{{{release-date}}}</td> | <td>{{{release-date}}}</td> | ||
</tr>}}{{#if:{{{ | </tr>}} | ||
</table>}} | |||
{{#if:{{{previous|}}}{{{next|}}}| | |||
<table class="infobox-table mw-collapsible" data-collapsetext="Collapse" data-expandtext="Expand" style="width:100%;"> | |||
<th> | <tr> | ||
<th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Navigation</th> | |||
</tr> | </tr>{{#if:{{{previous|}}}|<tr> | ||
<th>Previous chapter</th> | <th>Previous chapter</th> | ||
<td>{{{previous}}}</td> | <td>{{{previous}}}</td> | ||
Line 27: | Line 36: | ||
<th>Next chapter</th> | <th>Next chapter</th> | ||
<td>{{{next}}}</td> | <td>{{{next}}}</td> | ||
</tr>}} | </tr>}} | ||
</table>}}</div></includeonly><noinclude>{{Infobox chapter | |||
| title = Genius on Ice | |||
| image = File:Chp1Cover.jpg | |||
| volume = [[Volume 1]] | |||
| chapter-number = 1 | |||
Use the '''source editor''', and paste the following: | | title-jp = 表示ょの天才 | ||
| title-romaji = Hyо̄jо̄ no Tensai | |||
| pages = 70 | |||
| release-date = 2020/06/25 | |||
| next = [[Chapter 2]] | |||
| locations = <nowiki</nowiki> | |||
* [[Nagoya Sports Center]] | |||
}} | |||
This is a template for manga/novel chapters. </br> | |||
Use the '''source editor''', and paste the following: </br> | |||
<pre><nowiki>{{Infobox chapter | <pre><nowiki>{{Infobox chapter | ||
| title = | | title = | ||
Line 41: | Line 58: | ||
| volume = | | volume = | ||
| chapter-number = | | chapter-number = | ||
| title-jp = | |||
| title-romaji = | |||
| pages = | | pages = | ||
| release-date = | | release-date = | ||
| | | locations = | ||
| previous = | | previous = | ||
| next = | | next = | ||
}}</nowiki></pre> | }}</nowiki></pre> | ||
Fill out the relevant information. '''Blank entries will not be rendered''', so if you have no info for a particular field, simply leave it blank.</noinclude> | Fill out the relevant information. '''Blank entries will not be rendered''', so if you have no info for a particular field, simply leave it blank.</noinclude> |