Jump to content

Template:LaNe box/Item: Difference between revisions

From Detective Conan Wiki
Added series info format to contextually change between "Episode", "File", "Movie", etc.
Fixed various syntax errors; previous edit included addition of countdown type
Line 5: Line 5:
   |[[File:{{#if:{{{image|}}}|{{{image}}}|{{LaNe box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}|200x150px|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}}|200x150px|center|link=]]}}
   |[[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;">[[Fallen Angel of the Highway|'''Movie 29''': Fallen Angel of the Highway]] premieres in...<br>{{countdown|April 10, 2026}}</p>
</div><hr style="margin: 0.2em 0;"><p style="margin: 0 0 0.25em 0;">{{#if: {{{3|}}}
  </div></div>
  | 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: '''{{LaNe box/Series info|{{{1}}}|format}} {{{2}}}'''
  }} premieres in...<br>{{countdown|April 10, 2026}}</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>
| 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>
| <div class="LnBox-item" data-upcoming="{{#ifexpr: {{#if:{{{4|}}}|1|0}} and {{timeDiff|{{{4}}}|{{#if:{{{time|}}}|{{{time}}}|{{LaNe box/Series info|{{{1}}}|time}}}}|9}}<=0
| #default = <div class="LnBox-item" data-upcoming="{{#ifexpr: {{#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;">
       {{#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}}
Line 20: Line 23:
       }}
       }}
     </div>
     </div>
| true"><!-- Is upcoming (i.e. yet to be released/yet to happen) -->
  | 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;">
     <div style="text-align: center; padding-top: 5px;">

Revision as of 01:18, 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