Difference between revisions of "Template:Appear ep"

From Detective Conan Wiki
(part=)
(attempt to use just one parameter for part number and part name)
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)
+
 
 +
{{appear ep|1|Roller Coaster Murder Case|part=1 dog}}
  
 
== Example ==
 
== Example ==
Line 16: Line 17:
 
<pre>{{appear ep|759|The Romance Novel with the Unexpected Conclusion|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 Romance Novel with the Unexpected Conclusion{{#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>

Revision as of 12:42, 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)

Episode 1: Roller Coaster Murder Case (1 dog)

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)