Jump to content

Template:LaNe box/Item: Difference between revisions

From Detective Conan Wiki
For an upcoming episode, don't display part if name is not provided
Fixed bug where type=latest may not show the item in the latest structuring
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="LnBox-item" data-pasttoday="{{#ifexpr: {{#if:{{{4|}}}|1|0}} and {{timeDiff|{{{4}}}|{{#if:{{{time|}}}|{{{time}}}|{{LaNe box/Series info|{{{1}}}|time}}}}|9}}<=0
<includeonly>{{#switch: {{lc:{{{type}}}}}
| true">
| #default = <div class="LnBox-item" data-upcoming="{{#ifexpr: {{#switch: {{lc:{{{type}}}}} | latest = 1 | next = 0 | #default = {{#if:{{{4|}}}|1|0}} and {{timeDiff|{{{4|}}}|{{#if:{{{time|}}}|{{{time}}}|{{LaNe box/Series info|{{{1}}}|time}}}}|9}}<=0 }}
  | false"><!-- Is not upcoming (i.e. has been released/has already happened) -->
     <div style="padding-top: 5px; padding-bottom: 8px;">
     <div style="padding-top: 5px; padding-bottom: 8px;">
       {{#ifexist: File:{{#if:{{{image|}}}|{{{image}}}|{{LaNe box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}
       {{#ifexist: File:{{#if:{{{image|}}}|{{{image}}}|{{LaNe box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}
       |[[File:{{#if:{{{image|}}}|{{{image}}}|{{LaNe box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}|200px|center|link={{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}]]
       |[[File:{{#if:{{{image|}}}|{{{image}}}|{{LaNe box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}|200x150px|center|link={{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}]]
       |[[File:{{LaNe box/Series info|{{{1}}}|placeholder-img}}|200px|center|link=]]}}
       |[[File:{{LaNe box/Series info|{{{1}}}|placeholder-img}}|200x150px|center|link=]]}}
     </div>
     </div>
     <div style="text-align: center; padding-bottom: 5px;">[[{{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}|{{#iferror: {{#expr: {{{2}}} + 1}}|'''{{{2}}}'''|'''Episode {{{2}}}'''}}: {{{3}}} {{#if: {{{part|}}} | <font size="1">{{{part}}}</font>}}]]
     <div style="text-align: center; padding-bottom: 5px;">{{#if: {{{3|}}}
| false">
      | [[{{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}|{{#iferror: {{#expr: {{{2}}}}}|'''{{{2}}}'''|'''{{LaNe box/Series info|{{{1}}}|format}} {{{2}}}'''}}: {{{3}}} {{#if: {{{part|}}} | <font size="1">{{#iferror: {{#expr: {{{part}}}}}|{{{part}}}|(Part&nbsp;{{{part}}})}}</font> }}]]
      | '''[[{{LaNe box/Series info|{{{1}}}|format}} {{{2}}}]]'''
      }}
    </div>
  | true"><!-- Is upcoming (i.e. yet to be released/yet to happen) -->
     <hr style="margin: 0.2em 0;">
     <hr style="margin: 0.2em 0;">
     <div style="text-align: center; padding-top: 5px;"> <!-- Start of Footnotes/Next Episode -->
     <div style="text-align: center; padding-top: 5px;">
       <p style="margin: 0 0 0.25em 0;">
       <p style="margin: 0 0 0.25em 0;">
         {{#if: {{{notes|}}} | {{{notes}}}
         {{#if: {{{3|}}}  
         | {{#if: {{{3|}}}
         | Next: [[{{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}|{{#iferror: {{#expr: {{{2}}}}}|'''{{{2}}}'''|'''{{LaNe box/Series info|{{{1}}}|format}} {{{2}}}'''}}: {{{3}}} {{#if: {{{part|}}} | <font size="1">{{#iferror: {{#expr: {{{part}}}}}|{{{part}}}|(Part&nbsp;{{{part}}})}}</font> }}]]
          | Next: [[{{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}|{{#iferror: {{#expr: {{{2}}} + 1}}|'''{{{2}}}'''|'''Episode {{{2}}}'''}}: {{{3}}} {{#if: {{{part|}}} | <font size="1">{{{part}}}</font> }}]]
        | Next: '''{{LaNe box/Series info|{{{1}}}|format}} {{{2}}}'''
          | Next: '''Episode {{{2}}}'''}}
        }}<br>{{#if:{{{4|}}}|{{countdown|{{{4}}}}}}}
          }}<br>{{#if:{{{4|}}}|{{countdown|{{{4}}}}}}}
        }}
       </p>
       </p>
}}</div></div></includeonly><noinclude>
    </div>
}}</div>
| countdown =
<div class="LnBox-item-show" style="text-align: center;"><div style="padding: 5px 0 3px">
  {{#ifexist: File:{{#if:{{{image|}}}|{{{image}}}|{{LaNe box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}
  |[[File:{{#if:{{{image|}}}|{{{image}}}|{{LaNe box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}|200x150px|center|link={{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}]]
  |[[File:{{LaNe box/Series info|{{{1}}}|placeholder-img}}|200x150px|center|link=]]}}
</div><hr style="margin: 0.2em 0;"><p style="margin: 0 0 0.25em 0;">{{#if: {{{3|}}}
  | [[{{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}|{{#iferror: {{#expr: {{{2}}}}}|'''{{{2}}}'''|'''{{LaNe box/Series info|{{{1}}}|format}} {{{2}}}'''}}: {{{3}}} {{#if: {{{part|}}} | <font size="1">{{#iferror: {{#expr: {{{part}}}}}|{{{part}}}|(Part&nbsp;{{{part}}})}}</font> }}]]
  | '''{{LaNe box/Series info|{{{1}}}|format}} {{{2}}}'''
  }} premieres in...<br>{{countdown|{{{4}}}}}</p>
</div>
| footnote = <div class="LnBox-item-show"><hr style="margin: 0.2em 0;"><div style="text-align: center; padding-top: 5px;"><p style="margin: 0 0 0.25em 0;">{{{1}}}</p></div></div>}}</includeonly><noinclude>
<pre>{{LaNe box/Item|<series>|<number>|<name>|<date>
<pre>{{LaNe box/Item|<series>|<number>|<name>|<date>
| type = (Optional)
| type = (Optional)
Line 36: Line 51:
{{LaNe box/Item|Yaiba-Anime|1|Yaiba Appears|April 5, 2025
{{LaNe box/Item|Yaiba-Anime|1|Yaiba Appears|April 5, 2025
| type =  
| type =  
| part =  
| part = 1
| time = 5:30 pm
| time =
| article-link = Yaiba Appears (Yaiba: Samurai Legend episode)
| article-link = Yaiba Appears (Yaiba: Samurai Legend episode)
}}</noinclude>
}}
 
[[Category:Templates]]
</noinclude>

Latest revision as of 06:05, 12 September 2026

{{LaNe box/Item|<series>|<number>|<name>|<date>
| type = (Optional)
| image = (Optional)
| part = (Optional)
| time = (Optional)
| article-link = (Optional)}}

Example

{{LaNe box/Item|Yaiba-Anime|1|Yaiba Appears|April 5, 2025
| type = 
| part = 
| time = 5:30 pm
| article-link = Yaiba Appears (Yaiba: Samurai Legend episode)
}}

Result