Jump to content

Template:CaseItem: Difference between revisions

From Detective Conan Wiki
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="{{#ifeq:{{{type|}}}|anime|2|3}}" height="1px" style="padding:0" |
<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="15.6%" {{!}} {{{1}}}
{| width="100%" style="overflow: hidden; height:100%; margin:0; border-collapse:collapse" rules="cols"
{{!}} width="47.5%" {{!}} {{{2}}}
{{#switch:{{{type|}}}
{{!}} width="36.9%" {{!}} {{{3}}}
| 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}}}


| #default = {{!}} width="25%" {{!}} {{{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 number
    • 2: Release date
    • 2: 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 covers
    • 1: Volume information
    • 2: Chapter number
    • 3: Release date
    • 4: Weekly Shōnen Sunday issue


  • {{CaseItem|type=anime: For anime story arcs that span only 1 season. Has 2 fields:
    • 1: Episode number
    • 2: 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 covers
    • 1: Season information
    • 2: Episode number
    • 3: Release date