Difference between revisions of "User:AvidConanContributor/sandbox"

From Detective Conan Wiki
m
Line 3: Line 3:
 
         <div style="background: #6699CC; color: white; text-align: center; font-size: 130%; padding: 5px;">'''Latest episode'''</div>
 
         <div style="background: #6699CC; color: white; text-align: center; font-size: 130%; padding: 5px;">'''Latest episode'''</div>
 
         <div style="padding: 5px;">
 
         <div style="padding: 5px;">
             <div style="padding-top: 5px; padding-bottom: 8px;"> <!-- Start of Latest Episode -->
+
             {{#ifexpr: {{timeDiff|{{{S2 Episode Date}}}|{{#if:{{{S2 Episode Time|}}}|{{{S2 Episode Time}}}|{{{Regular broadcast time}}} }}|9}}<=0
                {{#ifexist:File:TV Episode {{{Case episode number}}}.jpg|[[File:TV Episode {{{Case episode number}}}.jpg|200px|center|link={{{Latest episode name}}}]]|[[File:Joke 19 V2.jpg|200px|center|link=]]}}
+
             | {{Latest news/Latest ep
             </div>
+
              | Episode Number      = {{#if:{{{S2 Case First-Last Ep|}}}|{{{S2 Case First-Last Ep}}}|{{{S2 Episode Number}}} }}
            <div style="text-align: center; padding-bottom: 5px;">[[{{{Latest episode name}}}|'''Episode {{{Latest episode number}}}''': {{{Latest episode name}}} {{#if: {{{Latest Part|}}} | <font size="1">({{{Latest Part}}})</font>}}]]</div> <!-- End of Latest Episode -->
+
              | Case Name          = {{{S2 Case Name}}}
----
+
              | Case Part Name      = {{{S2 Case Part Name}}}
            <div style="text-align: center; padding-top: 5px;"> <!-- Start of Footnotes/Next Episode -->
+
              }}
{{#if: {{{Anime footnotes|}}} | {{{Anime footnotes}}} | Next: [[{{{Next episode name}}}|'''Episode {{{Next episode number}}}''': {{{Next episode name}}} {{#if: {{{Next Part|}}} | <font size="1">(Part {{{Next Part}}})</font> }}]]<br>{{countdown|{{{Next episode date}}}}} }} <!-- End of Next Episode -->
+
              ----
             </div>
+
              {{Latest news/Next ep
 +
              | Episode Number      = {{{S3 Episode Number}}}
 +
              | Case Name          = {{{S3 Case Name}}}
 +
              | Case Part Name      = {{{S3 Case Part Name}}}
 +
              | Episode Date        = {{{S3 Episode Date}}}
 +
              | Anime footnotes    = {{{Anime footnotes}}}
 +
              }}
 +
            | {{Latest news/Latest ep
 +
              | Episode Number      = {{#if:{{{S1 Case First-Last Ep|}}}|{{{S1 Case First-Last Ep}}}|{{{S1 Episode Number}}} }}
 +
              | Case Name          = {{{S1 Case Name}}}
 +
              | Case Part Name      = {{{S1 Case Part Name}}}
 +
              }}
 +
              ----
 +
              {{Latest news/Next ep
 +
              | Episode Number      = {{{S2 Episode Number}}}
 +
              | Case Name          = {{{S2 Case Name}}}
 +
              | Case Part Name      = {{{S2 Case Part Name}}}
 +
              | Episode Date        = {{{S2 Episode Date}}}
 +
              | Anime footnotes    = {{{Anime footnotes}}}
 +
              }}
 +
             }}
 
         </div>
 
         </div>
 
     </div>
 
     </div>

Revision as of 22:51, 24 January 2025

Latest news

Experimenting to see if I can make the template's episode section semi-automatic while also avoiding the use of Template:LE and Template:NE.

The planned parameter layout:

{{Latest news
<!-- **ANIME** -->
| Regular broadcast time = Use Japan Standard Time (JST). As of January 2025, the regular broadcast time is 6:00 pm.

<!-- The episodes contained in slots 1, 2, and 3 must be in chronological order. For example, Slot 1 contains Ep 1000, Slot 2 contains Ep 1001, and Slot 3 contains Ep 1002. -->
<!-- Slot 1 -->
| S1 Case First-Last Ep  = Optional: If case has multiple parts, insert the number of the first episode of the case and the last episode of the case, separated by a hyphen (e.g., 1000-1001).
| S1 Episode Number      = 
| S1 Case Name           = 
| S1 Case Part Name      = Optional: Only used for cases with multiple parts
| S1 Episode Date        = 
| S1 Episode Time        = Optional: Used to override the "Regular broadcast time" parameter for episodes with an irregular broadcast time
<!-- Slot 2 -->
| S2 Case First-Last Ep  = Optional: If case has multiple parts, insert the number of the first episode of the case and the last episode of the case, separated by a hyphen (e.g., 1000-1001).
| S2 Episode Number      = 
| S2 Case Name           = 
| S2 Case Part Name      = Optional: Only used for cases with multiple parts
| S2 Episode Date        = 
| S2 Episode Time        = Optional: Used to override the "Regular broadcast time" parameter for episodes with an irregular broadcast time
<!-- Slot 3 -->
| S3 Case First-Last Ep  = Optional: If case has multiple parts, insert the number of the first episode of the case and the last episode of the case, separated by a hyphen (e.g., 1000-1001).
| S3 Episode Number      = 
| S3 Case Name           = 
| S3 Case Part Name      = Optional: Only used for cases with multiple parts
| S3 Episode Date        = 
| S3 Episode Time        = Optional: Used to override the "Regular broadcast time" parameter for episodes with an irregular broadcast time

| Anime footnotes        = Optional: custom information on display

<!-- **MANGA** -->
| Latest chapter number  =
| Latest chapter name    =
| Latest chapter date    = Optional: essentially of no purpose

| Next chapter number    =
| Next chapter name      =
| Next chapter date      =

| Manga footnotes        = Optional: custom information on display
}}

Test

[[Image:{{{1}}}.jpg|100px|link={{{1}}}|alt={{{1}}}]]
[[{{{1}}}|{{{1}}}]]