Difference between revisions of "Template:Appear ep"

From Detective Conan Wiki
(part=)
m (^^;)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[{{{link|{{{2|}}}}}}|'''Episode {{{1|}}}''': {{{2}}}{{#if:{{{part|}}}|<nowiki> </nowiki>(Part {{{part}}})}}{{#if:{{{inside-bracket|}}}|<nowiki> </nowiki>({{{inside-bracket}}})}}{{#if:{{{note|}}}|<nowiki> </nowiki><font size=1; color=black>('''Note:''' {{{note}}})</font>}}]]</includeonly><noinclude>
+
<includeonly>[[{{{link|{{{2|}}}}}}|'''Episode {{{1|}}}''': {{{2}}}{{#if:{{{part|}}}|{{#iferror:{{#expr:{{{part|}}}}}|<nowiki> </nowiki>({{{part}}})|<nowiki> </nowiki>(Part {{{part}}})}}}}{{#if:{{{note|}}}|<nowiki> </nowiki><font size=1; color=black>('''Note:''' {{{note}}})</font>}}]]</includeonly><noinclude>
 
== Parameters ==
 
== Parameters ==
 
# Episode number
 
# Episode number
 
# Episode title
 
# Episode title
 
# link = Linked article (defaults to episode title)
 
# link = Linked article (defaults to episode title)
# part = Part number (optional)
+
# part = Part number or Part name (optional)
 
# note = Note text (optional)
 
# note = Note text (optional)
# inside-bracket = (optional)
 
  
 
== Example ==
 
== Example ==
Line 14: Line 13:
  
 
=== part= ===
 
=== part= ===
<pre>{{appear ep|759|The Unexpected Result of a Romance Novel|part=1}}</pre>
+
<pre>{{appear ep|759|The Romance Novel with the Unexpected Conclusion|part=1}}</pre>
[[The Romance Novel with the Unexpected Conclusion|'''Episode 759''': The Unexpected Result of a Romance Novel{{#if:1|<nowiki> </nowiki>(Part 1)}}{{#if:|<nowiki> </nowiki><font size=1; color=black>('''Note:''' {{{note}}})</font>}}]]
+
[[The Romance Novel with the Unexpected Conclusion|'''Episode 759''': The Romance Novel with the Unexpected Conclusion{{#if:1|<nowiki> </nowiki>(Part 1)}}{{#if:|<nowiki> </nowiki><font size=1; color=black>('''Note:''' {{{note}}})</font>}}]]
 +
<pre>{{appear ep|701|The Jet-Black Mystery Train|part=Departure}}</pre>
 +
[[The Jet-Black Mystery Train|'''Episode 701''': The Jet-Black Mystery Train (Departure)]]
  
 
=== link= and note= ===
 
=== link= and note= ===
 
<pre>{{appear ep|783|The Scarlet Truth|link=The Scarlet Return|note=Flashback}}</pre>
 
<pre>{{appear ep|783|The Scarlet Truth|link=The Scarlet Return|note=Flashback}}</pre>
 
[[The Scarlet Return|'''Episode 783''': The Scarlet Truth{{#if:|<nowiki> </nowiki>(Part {{{part}}})}}{{#if:Flashback|<nowiki> </nowiki><font size=1; color=black>('''Note:''' Flashback)</font>}}]]
 
[[The Scarlet Return|'''Episode 783''': The Scarlet Truth{{#if:|<nowiki> </nowiki>(Part {{{part}}})}}{{#if:Flashback|<nowiki> </nowiki><font size=1; color=black>('''Note:''' Flashback)</font>}}]]
 
=== inside-bracket= ===
 
<pre>{{appear ep|701|The Jet-Black Mystery Train|inside-bracket=Departure}}</pre>
 
[[The Jet-Black Mystery Train|'''Episode 701''': The Jet-Black Mystery Train (Departure)]]
 
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 12:44, 11 June 2020

Parameters

  1. Episode number
  2. Episode title
  3. link = Linked article (defaults to episode title)
  4. part = Part number or Part name (optional)
  5. note = Note text (optional)

Example

Normal

{{appear ep|1|Roller Coaster Murder Case}}

Episode 1: Roller Coaster Murder Case

part=

{{appear ep|759|The Romance Novel with the Unexpected Conclusion|part=1}}

Episode 759: The Romance Novel with the Unexpected Conclusion (Part 1)

{{appear ep|701|The Jet-Black Mystery Train|part=Departure}}

Episode 701: The Jet-Black Mystery Train (Departure)

link= and note=

{{appear ep|783|The Scarlet Truth|link=The Scarlet Return|note=Flashback}}

Episode 783: The Scarlet Truth (Note: Flashback)