Template:CaseItem: Difference between revisions
Appearance
Eyacorkett (talk | contribs) Created page with "colspan="{{#ifeq:{{{type|}}}|anime|2|3}}" height="1px" style="padding:0" | {| width="100%" style="height:100%; margin:0; border-collapse:collapse" rules="cols" {{#switch: {{{type|}}} | anime = {{!}} width="15.6%" {{!}} {{{1}}} {{!}} width="47.5%" {{!}} {{{2}}} {{!}} width="36.9%" {{!}} {{{3}}} | #default = {{!}} width="25%" {{!}} {{{3}}} {{!}} width="75%" {{!}} {{{2}}} }}" |
Eyacorkett (talk | contribs) Giving the templates I made proper documentation |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
colspan="{{# | <includeonly>colspan="{{#switch:{{{type|}}} | ||
{| width="100%" style="height:100%; margin:0; border-collapse:collapse" rules="cols" | | anime = {{#if:{{{volume|}}} | 3 | 2 }} | ||
{{#switch: {{{type|}}} | | #default = {{#if:{{{volume|}}} | 4 | 3 }}}}" height="1px" style="padding:0" | | ||
| anime = {{!}} width=" | {| width="100%" style="overflow: hidden; height:100%; margin:0; border-collapse:collapse" rules="cols" | ||
{{!}} width=" | {{#switch:{{{type|}}} | ||
{{!}} width=" | | anime = {{#if: {{{volume|}}} | ||
|{{!}} width="36.75%" rowspan="{{{volume|1}}}" {{#if:{{{style-1|}}}|style="{{{style-1|}}}"}} {{!}} {{{1}}} | |||
{{!}} width="16%" {{#if:{{{row-2|}}}|rowspan="{{{row-2|}}}"}} {{#if:{{{style-2|}}}|style="{{{style-2|}}}"}} {{!}} {{{2}}} | |||
{{!}} width="47.25%" {{#if:{{{row-3|}}}|rowspan="{{{row-3|}}}"}} {{#if:{{{style-3|}}}|style="{{{style-3|}}}"}} {{!}} {{{3}}} | |||
| | |{{!}} width="25%" {{#if:{{{row-1|}}}|rowspan="{{{row-1|}}}"}} {{#if:{{{style-1|}}}|style="{{{style-1|}}}"}} {{!}} {{{1}}} | ||
{{!}} width="75%" {{!}} {{{2}}} | {{!}} width="75%" {{#if:{{{row-2|}}}|rowspan="{{{row-2|}}}"}} {{#if:{{{style-2|}}}|style="{{{style-2|}}}"}} {{!}} {{{2}}} | ||
}} | }} | ||
| #default = {{#if: {{{volume|}}} | |||
|{{!}} width="26.9%" rowspan="{{{volume|1}}}" {{#if:{{{style-1|}}}|style="{{{style-1|}}}"}} {{!}} {{{1}}} | |||
{{!}} width="11.5%" {{#if:{{{row-2|}}}|rowspan="{{{row-2|}}}"}} {{#if:{{{style-2|}}}|style="{{{style-2|}}}"}} {{!}} {{{2}}} | |||
{{!}} width="34.7%" {{#if:{{{row-3|}}}|rowspan="{{{row-3|}}}"}} {{#if:{{{style-3|}}}|style="{{{style-3|}}}"}} {{!}} {{{3}}} | |||
{{!}} width="26.9%" {{#if:{{{row-4|}}}|rowspan="{{{row-4|}}}"}} {{#if:{{{style-4|}}}|style="{{{style-4|}}}"}} {{!}} {{{4}}} | |||
|{{!}} width="15.6%" {{#if:{{{row-1|}}}|rowspan="{{{row-1|}}}"}} {{#if:{{{style-1|}}}|style="{{{style-1|}}}"}} {{!}} {{{1}}} | |||
{{!}} width="47.5%" {{#if:{{{row-2|}}}|rowspan="{{{row-2|}}}"}} {{#if:{{{style-2|}}}|style="{{{style-2|}}}"}} {{!}} {{{2}}} | |||
{{!}} width="36.9%" {{#if:{{{row-3|}}}|rowspan="{{{row-3|}}}"}} {{#if:{{{style-3|}}}|style="{{{style-3|}}}"}} {{!}} {{{3}}} | |||
}} | |||
}}</includeonly><noinclude> | |||
== Documentation == | |||
For use in [[List of manga cases]] and [[List of Magic Kaito manga heists|List of ''Magic Kaito'' manga heists]]. | |||
Intended to be used alongside {{t|BeginTable Case}} to display manga chapters and anime episodes in tables. However, it's only necessary if a story arc has more than 1 chapter or episode; if that's the case, just enter the chapter/episode data normally in the table. | |||
Note that the template is only capable of displaying the first Volume/Chapter/Episode of a given story arc; after that, each Volume/Chapter/Episode must be manually listed in the table this template begins. | |||
The template has 2 optional fields (<code>type</code> & <code>volume</code>), resulting in 4 modes: | |||
*<code>{{CaseItem</code>: For manga story arcs that span only 1 volume. Has 3 fields: | |||
**<code>1</code>: Chapter number | |||
**<code>2</code>: Release date | |||
**<code>2</code>: ''Weekly Shōnen Sunday'' issue | |||
*<code>{{CaseItem|volume=</code>: For manga story arcs that span multiple volumes. Has 5 fields: | |||
**<code>volume</code>: Enter the amount of chapters in the story arc that the first volume covers | |||
**<code>1</code>: Volume information | |||
**<code>2</code>: Chapter number | |||
**<code>3</code>: Release date | |||
**<code>4</code>: ''Weekly Shōnen Sunday'' issue | |||
*<code>{{CaseItem|type=anime</code>: For anime story arcs that span only 1 season. Has 2 fields: | |||
**<code>1</code>: Episode number | |||
**<code>2</code>: Release date | |||
*<code>{{CaseItem|volume=</code>: For anime story arcs that span multiple seasons. Has 4 fields: | |||
**<code>volume</code>: Enter the amount of episodes in the story arc that the first season covers | |||
**<code>1</code>: Season information | |||
**<code>2</code>: Episode number | |||
**<code>3</code>: Release date | |||
[[Category:Templates]]</noinclude> | |||
Latest revision as of 17:49, 24 July 2026
Documentation
For use in List of manga cases and List of Magic Kaito manga heists.
Intended to be used alongside {{BeginTable Case}} to display manga chapters and anime episodes in tables. However, it's only necessary if a story arc has more than 1 chapter or episode; if that's the case, just enter the chapter/episode data normally in the table.
Note that the template is only capable of displaying the first Volume/Chapter/Episode of a given story arc; after that, each Volume/Chapter/Episode must be manually listed in the table this template begins.
The template has 2 optional fields (type & volume), resulting in 4 modes:
{{CaseItem: For manga story arcs that span only 1 volume. Has 3 fields:1: Chapter number2: Release date2: Weekly Shōnen Sunday issue
{{CaseItem|volume=: For manga story arcs that span multiple volumes. Has 5 fields:volume: Enter the amount of chapters in the story arc that the first volume covers1: Volume information2: Chapter number3: Release date4: Weekly Shōnen Sunday issue
{{CaseItem|type=anime: For anime story arcs that span only 1 season. Has 2 fields:1: Episode number2: Release date
{{CaseItem|volume=: For anime story arcs that span multiple seasons. Has 4 fields:volume: Enter the amount of episodes in the story arc that the first season covers1: Season information2: Episode number3: Release date