Jump to content

Template:LaNe box/Item: Difference between revisions

From Detective Conan Wiki
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{#if:{{{date|}}}|1|0}} and {{timeDiff|{{{date}}}|{{#if:{{{time|}}}|{{{time}}}|{{Latest news box/Series info|{{{series}}}|time}}}}|9}}<=0
<includeonly><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
| <div style="padding-top: 5px; padding-bottom: 8px;">
| true"><!-- Is upcoming (i.e. yet to be released/yet to happen) -->
    {{#ifexist: File:{{#if:{{{image|}}}|{{{image}}}|{{Latest news box/Series info|{{{series}}}|img-prefix|{{{number}}}}}.jpg}}
    <hr style="margin: 0.2em 0;">
    |[[File:{{#if:{{{image|}}}|{{{image}}}|{{Latest news box/Series info|{{{series}}}|img-prefix|{{{number}}}}}.jpg}}|200px|center|link={{#if:{{{article-link|}}}|{{{article-link}}}|{{{name}}}}}]]
    <div style="text-align: center; padding-top: 5px;"> <!-- Start of Footnotes/Next Episode -->
    |[[File:{{Latest news box/Series info|{{{series}}}|placeholder-img}}|200px|center|link=]]}}
      <p style="margin: 0 0 0.25em 0;">
  </div>
        {{#if: {{{notes|}}} | {{{notes}}}
  <div style="text-align: center; padding-bottom: 5px;">[[{{#if:{{{article-link|}}}|{{{article-link}}}|{{{name}}}}}|{{#iferror: {{#expr: {{{number}}} + 1}}|'''{{{number}}}'''|'''Episode {{{number}}}'''}}: {{{name}}} {{#if: {{{part|}}} | <font size="1">{{{part}}}</font>}}]]
        | {{#if: {{{3|}}}  
  </div>
          | Next: [[{{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}|{{#iferror: {{#expr: {{{2}}} + 1}}|'''{{{2}}}'''|'''Episode {{{2}}}'''}}: {{{3}}} {{#if: {{{part|}}} | <font size="1">{{{part}}}</font> }}]]
| <hr style="margin: 0.2em 0;">
          | Next: '''Episode {{{2}}}'''
  <div style="text-align: center; padding-top: 5px;"> <!-- Start of Footnotes/Next Episode -->
          }}<br>{{#if:{{{4|}}}|{{countdown|{{{4}}}}}}}
    <p style="margin: 0 0 0.25em 0;">
        }}
      {{#if: {{{notes|}}} | {{{notes}}}
      </p>
      | {{#if: {{{name|}}}
| false"><!-- Is not upcoming (i.e. has been released/has already happened) -->
        | Next: [[{{#if:{{{article-link|}}}|{{{article-link}}}|{{{name}}}}}|{{#iferror: {{#expr: {{{number}}} + 1}}|'''{{{number}}}'''|'''Episode {{{number}}}'''}}: {{{name}}} {{#if: {{{part|}}} | <font size="1">{{{part}}}</font> }}]]
    <div style="padding-top: 5px; padding-bottom: 8px;">
        | Next: '''Episode {{{number}}}''' {{#if: {{{part|}}} | <font size="1">{{{part}}}</font> }}
      {{#ifexist: File:{{#if:{{{image|}}}|{{{image}}}|{{LaNe box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}
        }}<br>{{#if:{{{date|}}}|{{countdown|{{{date}}}}}}}
      |[[File:{{#if:{{{image|}}}|{{{image}}}|{{LaNe box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}|200px|center|link={{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}]]
      }}
      |[[File:{{LaNe box/Series info|{{{1}}}|placeholder-img}}|200px|center|link=]]}}
    </p>
    </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>}}]]
}}</includeonly><noinclude>
}}</div></div></includeonly><noinclude>
{{Latest news box/Item
<pre>{{LaNe box/Item|<series>|<number>|<name>|<date>
| type = (Optional)
| image = (Optional)
| part = (Optional)
| time = (Optional)
| article-link = (Optional)}}</pre>
 
== Example ==
<pre>{{LaNe box/Item|Yaiba-Anime|1|Yaiba Appears|April 5, 2025
| type =  
| type =  
| series = Yaiba-Anime
| number = 1
| name = Yaiba Appears
| part =  
| part =  
| date = April 5, 2025
| time = 5:30 pm
| time = 5:30 pm
| article-link = Yaiba Appears (Yaiba: Samurai Legend episode)
| article-link = Yaiba Appears (Yaiba: Samurai Legend episode)
}}
}}</pre>
{{Latest news box/Item
=== Result ===
{{LaNe box/Item|Yaiba-Anime|1|Yaiba Appears|April 5, 2025
| type =  
| type =  
| series = DC-Manga
| number = 1163
| name = The Teacher's Gift
| part =  
| part =  
| date = June 24, 2026
| time = 5:30 pm
| time =  
| article-link = Yaiba Appears (Yaiba: Samurai Legend episode)
| article-link =
}}</noinclude>
}}</noinclude>

Latest revision as of 21:13, 19 August 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