Jump to content

Template:LaNe box/Item: Difference between revisions

From Detective Conan Wiki
Added latest and next types
Fixed bug where type=latest may not show the item in the latest structuring
 
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{type}}}}}
<includeonly>{{#switch: {{lc:{{{type}}}}}
| #default = <div class="LnBox-item" data-upcoming="{{#ifexpr: {{#if:{{{4|}}}|1|0}} and {{#switch: {{lc:{{{type}}}}} | latest = 1 | next = 0 | #default = {{timeDiff|{{{4|}}}|{{#if:{{{time|}}}|{{{time}}}|{{LaNe box/Series info|{{{1}}}|time}}}}|9}}<=0 }}
| #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) -->
   | 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;">

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