Difference between revisions of "Template:SeasonItem"

From Detective Conan Wiki
m
(Sorry, last trial, I vow)
 
(117 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
| style="text-align:center;"|{{{1|}}} || style="text-align:center;"|{{{2|}}} || {{{3|}}} || style="text-align:center;"|{{{4|}}} || style="text-align:center;"|{{{5|}}}  
+
| style="text-align:center; {{#switch: {{{type}}} | remaster = background:#efead7; | rerun = background:#eef3d5; | special = background:#f0eeeb; | background:#f2fde9; }} "|{{{1|}}} || style="text-align:center; {{#switch: {{{type}}} | remaster = background:#efead7; | rerun = background:#eef3d5; | special = background:#f0eeeb; | background:#f2fde9; }}"|{{{2|}}} || style="{{#switch: {{{type}}} | remaster = background:#efead7; | rerun = background:#eef3d5; | special = background:#f0eeeb; | background:#f2fde9; }}"|{{{3|}}} || style="text-align:center; {{#switch: {{{type}}} | remaster = background:#efead7; | rerun = background:#eef3d5; | special = background:#f0eeeb; | background:#f2fde9; }}"|{{{4|}}} || style="text-align:center; {{#switch: {{{type}}} | remaster = background:#efead7; | rerun = background:#eef3d5; | special = background:#f0eeeb; | background:#f2fde9; }}"|{{{5|}}}  
| style="text-align:center;"|{{#if:{{{pnew|}}}|{{Plot New}}}}{{#if:{{{pchar|}}}|{{Plot Char}}}}{{#if:{{{promance|}}}|{{Plot Romance}}}}{{#if:{{{pbo|}}}|{{Plot BO}}}}{{#if:{{{ppast|}}}|{{Plot Past}}}} || style="text-align:center;"|{{{arc|&nbsp;}}}
+
| style="text-align:center; {{#switch: {{{type}}} | remaster = background:#efead7; | rerun = background:#eef3d5; | special = background:#f0eeeb; | background:#f2fde9; }}"|{{#if:{{{pnew|}}}|{{Plot New}}}}{{#if:{{{pchar|}}}|{{Plot Char}}}}{{#if:{{{promance|}}}|{{Plot Romance}}}}{{#if:{{{pbo|}}}|{{Plot BO}}}}{{#if:{{{pmk|}}}|{{Plot MK}}}}{{#if:{{{ppast|}}}|{{Plot Past}}}}{{#if:{{{pfbi|}}}|{{Plot FBI}}}}{{#if:{{{phh|}}}|{{Plot HH}}}}{{#if:{{{pdb|}}}|{{Plot DB}}}} || style="text-align:center; {{#switch: {{{type}}} | remaster = background:#efead7; | rerun = background:#eef3d5; | special = background:#f0eeeb; | background:#f2fde9; }}"|{{#ifeq:{{{manga-source}}}|original|'''TV Original'''|{{{manga-source|&nbsp;}}}}} || style="text-align:center; {{#switch: {{{type}}} | remaster = background:#efead7; | rerun = background:#eef3d5; | special = background:#f0eeeb; | background:#f2fde9; }}"|{{{next-conan-hint|&nbsp;}}}
 
|-
 
|-
{{#ifeq:{{PAGENAME}}|Anime||
+
<!-- This bit of wiki code below is:
{{!}} colspan="7" style="background:#f2fde9;" {{!}} {{#if:{{{summary|}}}|{{{summary}}}|No summary yet}} -> {{#iferror: {{#expr: ({{{pnew|1}}} + {{{pchar|1}}} + {{{promance|1}}} + {{{pbo|1}}} + {{{ppast|1}}}) > 0}}|Some|None}}
+
switch statement: Pass value 1 if magic word Pagename equals "Anime" or "Rerun and Remastered Episodes list", otherwise pass value 0
{{#iferror: {{#expr: ({{{pnew|1}}} + {{{pchar|1}}} + {{{promance|1}}} + {{{pbo|1}}} + {{{ppast|1}}}) > 0}}|
+
ifeq statement: If passed value is 1 then used condensed format, otherwise use expanded format
{{{!}} style="margin: 15px; border: 1px dotted #2f51fe; border-collapse: collapse; background: #ecf3fe"
+
-->
{{#if:{{{pnew|}}}|
+
{{#ifeq:{{#if:{{NAMESPACE}}|1|{{#switch: {{PAGENAME}} | Anime = 1 | Anime 01-20 = 1 | Anime 21-40 = 1 | Rerun and Remastered Episodes list = 1 | 0 }}}}|1||
{{!}} style="border: none" {{!}} {{Plot New}} ''{{{pnew}}}''
+
{{!}} colspan="8" style="padding:5px;" {{!}} {{#if:{{{summary|}}}|{{{summary}}}|No summary yet}}
 +
{{Plot
 +
|background = #edf8e3
 +
|border    = #5BBD53
 +
|pnew    = {{{pnew|0}}}
 +
|pchar    = {{{pchar|0}}}
 +
|promance = {{{promance|0}}}
 +
|phh      = {{{phh|0}}}
 +
|pdb      = {{{pdb|0}}}
 +
|pbo      = {{{pbo|0}}}
 +
|pmk      = {{{pmk|0}}}
 +
|ppast    = {{{ppast|0}}}
 +
|pfbi    = {{{pfbi|0}}}
 +
}}
 +
{{!}}-
 +
{{!}} colspan="8" style="background: #5bbd53; height: 3px; padding:0px;" {{!}}
 
{{!}}-}}
 
{{!}}-}}
{{#if:{{{pchar|}}}|
+
</includeonly><noinclude>
{{!}} style="border: none" {{!}} {{Plot Char}} ''{{{pchar}}}''}}
 
{{!}}-}}
 
{{#if:{{{promance|}}}|
 
{{!}} style="border: none" {{!}} {{Plot Romance}} ''{{{promance}}}''}}
 
{{!}}-}}
 
{{#if:{{{pbo|}}}|
 
{{!}} style="border: none" {{!}} {{Plot BO}} ''{{{pbo}}}''}}
 
{{!}}-}}
 
{{#if:{{{ppast|}}}|
 
{{!}} style="border: none" {{!}} {{Plot Past}} ''{{{ppast}}}''}}
 
{{!}}-}}
 
{{!}}}
 
{{!}}-}}</includeonly><noinclude>
 
 
Displays an item of a season list.
 
Displays an item of a season list.
  
 
== Usage ==
 
== Usage ==
 
 
The following is a list of required or optional parameters for any of the rows:
 
The following is a list of required or optional parameters for any of the rows:
 
<pre>
 
<pre>
 
{{SeasonItem|<japanese episode>|<english episode>|<title>|<original airdate>|<US airdate>
 
{{SeasonItem|<japanese episode>|<english episode>|<title>|<original airdate>|<US airdate>
| pnew               =    (Optional) Short description of which new character was introduced
+
| pnew             =    (Optional) Short description of which new character was introduced
| pchar               =    (Optional) Short description of what new character development occured
+
| pchar             =    (Optional) Short description of what new character development occured
| promance           =   (Optional) Short description of what new development occurred regarding character romance
+
| promance       = (Optional) Short description of what new development occurred regarding character romance
 +
| phh                =    (Optional) Short description of why and how Heiji Hattori was involved in the episode
 +
| pdb                =    (Optional) Short description of why and how Detective Boys were involved in the episode
 
| pbo                =    (Optional) Short description of why and how the Black Organization was involved in the episode
 
| pbo                =    (Optional) Short description of why and how the Black Organization was involved in the episode
| ppast               =    (Optional) Short description of what new information was revealed about a character's past
+
| pmk                =    (Optional) Short description of what happened with Magic Kaito characters
| summary            =    (Optional: Short summary of the episode)
+
| ppast             =    (Optional) Short description of what new information was revealed about a character's past
 +
| pfbi                =    (Optional) Short description of what happened with FBI characters
 +
| manga-source    =    (Optional) What Manga volume and file(s) the episode is based on. Type "original" if it's a TV original episode.
 +
| next-conan-hint    =    (Optional) Next Conan hint
 +
| summary            =    (Optional) Short summary of the episode
 +
| type                =    (Optional) Write (without the quotes) "remaster", "rerun" or "special" if the episode is in one of these categories. Leave it blank otherwise.
 
}}
 
}}
 
</pre>
 
</pre>
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 19:01, 8 March 2024

Displays an item of a season list.

Usage

The following is a list of required or optional parameters for any of the rows:

{{SeasonItem|<japanese episode>|<english episode>|<title>|<original airdate>|<US airdate>
| pnew              =    (Optional) Short description of which new character was introduced
| pchar              =    (Optional) Short description of what new character development occured
| promance        = (Optional) Short description of what new development occurred regarding character romance
| phh                 =    (Optional) Short description of why and how Heiji Hattori was involved in the episode
| pdb                 =    (Optional) Short description of why and how Detective Boys were involved in the episode
| pbo                 =    (Optional) Short description of why and how the Black Organization was involved in the episode
| pmk                =    (Optional) Short description of what happened with Magic Kaito characters
| ppast              =    (Optional) Short description of what new information was revealed about a character's past
| pfbi                =    (Optional) Short description of what happened with FBI characters
| manga-source    =    (Optional) What Manga volume and file(s) the episode is based on. Type "original" if it's a TV original episode.
| next-conan-hint     =    (Optional) Next Conan hint
| summary             =    (Optional) Short summary of the episode
| type                =    (Optional) Write (without the quotes) "remaster", "rerun" or "special" if the episode is in one of these categories. Leave it blank otherwise.
}}