Jump to content

Template:LaNe box/Item: Difference between revisions

From Detective Conan Wiki
No edit summary
Convert common named parameters to anonymous parameters; added test box
Line 1: Line 1:
<includeonly><div class="LnBox-item" data-pasttoday="{{#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-pasttoday="{{#ifexpr: {{#if:{{{4|}}}|1|0}} and {{timeDiff|{{{4}}}|{{#if:{{{time|}}}|{{{time}}}|{{Latest news box/Series info|{{{1}}}|time}}}}|9}}<=0
| true">
| true">
     <div style="padding-top: 5px; padding-bottom: 8px;">
     <div style="padding-top: 5px; padding-bottom: 8px;">
       {{#ifexist: File:{{#if:{{{image|}}}|{{{image}}}|{{Latest news box/Series info|{{{series}}}|img-prefix|{{{number}}}}}.jpg}}
       {{#ifexist: File:{{#if:{{{image|}}}|{{{image}}}|{{Latest news box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}
       |[[File:{{#if:{{{image|}}}|{{{image}}}|{{Latest news box/Series info|{{{series}}}|img-prefix|{{{number}}}}}.jpg}}|200px|center|link={{#if:{{{article-link|}}}|{{{article-link}}}|{{{name}}}}}]]
       |[[File:{{#if:{{{image|}}}|{{{image}}}|{{Latest news box/Series info|{{{1}}}|img-prefix|{{{2}}}}}.jpg}}|200px|center|link={{#if:{{{article-link|}}}|{{{article-link}}}|{{{3}}}}}]]
       |[[File:{{Latest news box/Series info|{{{series}}}|placeholder-img}}|200px|center|link=]]}}
       |[[File:{{Latest news box/Series info|{{{1}}}|placeholder-img}}|200px|center|link=]]}}
     </div>
     </div>
     <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>}}]]
     <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>}}]]
| false">
| false">
     <hr style="margin: 0.2em 0;">
     <hr style="margin: 0.2em 0;">
Line 12: Line 12:
       <p style="margin: 0 0 0.25em 0;">
       <p style="margin: 0 0 0.25em 0;">
         {{#if: {{{notes|}}} | {{{notes}}}
         {{#if: {{{notes|}}} | {{{notes}}}
         | {{#if: {{{name|}}}  
         | {{#if: {{{3|}}}  
           | Next: [[{{#if:{{{article-link|}}}|{{{article-link}}}|{{{name}}}}}|{{#iferror: {{#expr: {{{number}}} + 1}}|'''{{{number}}}'''|'''Episode {{{number}}}'''}}: {{{name}}} {{#if: {{{part|}}} | <font size="1">{{{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: '''Episode {{{number}}}''' {{#if: {{{part|}}} | <font size="1">{{{part}}}</font> }}
           | Next: '''Episode {{{2}}}''' {{#if: {{{part|}}} | <font size="1">{{{part}}}</font> }}
           }}<br>{{#if:{{{date|}}}|{{countdown|{{{date}}}}}}}
           }}<br>{{#if:{{{4|}}}|{{countdown|{{{4}}}}}}}
         }}
         }}
       </p>
       </p>
Line 24: Line 24:
| part = (Optional)
| part = (Optional)
| time = (Optional)
| time = (Optional)
| article-link = (Optional)}}</pre></noinclude>
| article-link = (Optional)}}</pre>
 
{{Latest news box/Item|Yaiba-Anime|1|Yaiba Appears|April 5, 2025
| type =
| part =
| time = 5:30 pm
| article-link = Yaiba Appears (Yaiba: Samurai Legend episode)
}}</noinclude>

Revision as of 17:16, 19 August 2026

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

Template:Latest news box/Item