Jump to content

Template:Infobox chapter: Difference between revisions

revamped infobox format
m (Reverted edit by F99shi (talk) to last revision by Zhiktang)
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>Pages</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:{{{title-jp|}}}|<tr>
</tr>}}
    <th>Japanese title</th>
</table>}}
    <td>{{{title-jp}}}</td>
{{#if:{{{previous|}}}{{{next|}}}|
</tr>}}{{#if:{{{title-romaji|}}}|<tr>
<table class="infobox-table mw-collapsible" data-collapsetext="Collapse" data-expandtext="Expand" style="width:100%;">
     <th>Romaji title</th>
<tr>
    <td>{{{title-romaji}}}</td>
     <th colspan="2" style="width:100%; text-align:center; background-color: #f0f5f7;">Navigation</th>
</tr>}}{{#if:{{{previous|}}}|<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>}}{{#if:{{{locations|}}}|<tr>
</tr>}}
    <th>Featured locations</th>
</table>}}</div></includeonly><noinclude>{{Infobox chapter
    <td>{{{locations}}}</td>
| title = Genius on Ice
</tr>}}</table>
| image = File:Chp1Cover.jpg
</div><noinclude>This is a template for manga/novel chapters. </br>
| 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 =  
| title-jp =
| locations =  
| title-romaji =  
| previous =  
| previous =  
| next =  
| next =  
| locations =
}}</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>