Difference between revisions of "Template:Infobox event series"

From mtgpq wiki
Jump to: navigation, search
Line 5: Line 5:
  
 
* Name: The name of the event series.
 
* Name: The name of the event series.
 +
* Part: A word describing the event parts, such as "Part" or "Chapter".
 +
* Label1: An additional label for the 1st event in the series.
 +
* Label2: An additional label for the 2nd event in the series.
 +
* Label3: An additional label for the 3rd event in the series.
 +
* Label4: An additional label for the 4th event in the series.
 +
* Label5: An additional label for the 5th event in the series.
  
* Part: A word describing the event parts, such as "Part" or "Chapter".
 
  
 
All other parameters are the names of each part of the event series, in order.
 
All other parameters are the names of each part of the event series, in order.
Line 14: Line 19:
 
<pre>
 
<pre>
 
{{Infobox event series
 
{{Infobox event series
|Name=A Journey Through History
+
|Name=Ravnica at War
|Part=Chapter
+
|Part=Part
|A Nightmare of War
+
|Label1={{G}}
|The Long Cold Darkness
+
|Label2={{W}}
|The Phyrexian Compleation
+
|Label3={{R}}
|The Space-Time Catastrophe
+
|Label4={{U}}
 +
|Label5={{B}}
 +
|Ravnica at War: Devastation
 +
|Ravnica at War: Glory
 +
|Ravnica at War: Promise
 +
|Ravnica at War: Revelation
 +
|Ravnica at War: Eternity
 
}}
 
}}
 
</pre>
 
</pre>
Line 25: Line 36:
 
Produces:
 
Produces:
 
{{Infobox event series
 
{{Infobox event series
|Name=A Journey Through History
+
|Name=Ravnica at War
|Part=Chapter
+
|Part=Part
|A Nightmare of War
+
|Label1={{G}}
|The Long Cold Darkness
+
|Label2={{W}}
|The Phyrexian Compleation
+
|Label3={{R}}
|The Space-Time Catastrophe
+
|Label4={{U}}
 +
|Label5={{B}}
 +
|Ravnica at War: Devastation
 +
|Ravnica at War: Glory
 +
|Ravnica at War: Promise
 +
|Ravnica at War: Revelation
 +
|Ravnica at War: Eternity
 
}}
 
}}
  
Line 41: Line 58:
 
| above  = Event Series
 
| above  = Event Series
 
| data1  = '''[[{{{Name}}}]]'''
 
| data1  = '''[[{{{Name}}}]]'''
| label2  = {{#if:{{{1|}}}|{{{Part}}} 1}}
+
| label2  = {{#if:{{{1|}}}|{{{Part}}} 1{{#if:{{{Label1|}}}|&nbsp;({{{Label1}}})}}}}
 
| data2  = {{#if:{{{1|}}}|[[{{Trim|{{{1}}}}}]]}}
 
| data2  = {{#if:{{{1|}}}|[[{{Trim|{{{1}}}}}]]}}
| label3  = {{#if:{{{2|}}}|{{{Part}}} 2}}
+
| label3  = {{#if:{{{2|}}}|{{{Part}}} 2{{#if:{{{Label2|}}}|&nbsp;({{{Label2}}})}}}}
 
| data3  = {{#if:{{{2|}}}|[[{{Trim|{{{2}}}}}]]}}
 
| data3  = {{#if:{{{2|}}}|[[{{Trim|{{{2}}}}}]]}}
| label4  = {{#if:{{{3|}}}|{{{Part}}} 3}}
+
| label4  = {{#if:{{{3|}}}|{{{Part}}} 3{{#if:{{{Label3|}}}|&nbsp;({{{Label3}}})}}}}
 
| data4  = {{#if:{{{3|}}}|[[{{Trim|{{{3}}}}}]]}}
 
| data4  = {{#if:{{{3|}}}|[[{{Trim|{{{3}}}}}]]}}
| label5  = {{#if:{{{4|}}}|{{{Part}}} 4}}
+
| label5  = {{#if:{{{4|}}}|{{{Part}}} 4{{#if:{{{Label4|}}}|&nbsp;({{{Label4}}})}}}}
 
| data5  = {{#if:{{{4|}}}|[[{{Trim|{{{4}}}}}]]}}
 
| data5  = {{#if:{{{4|}}}|[[{{Trim|{{{4}}}}}]]}}
| label6  = {{#if:{{{5|}}}|{{{Part}}} 5}}
+
| label6  = {{#if:{{{5|}}}|{{{Part}}} 5{{#if:{{{Label5|}}}|&nbsp;({{{Label5}}})}}}}
 
| data6  = {{#if:{{{5|}}}|[[{{Trim|{{{5}}}}}]]}}
 
| data6  = {{#if:{{{5|}}}|[[{{Trim|{{{5}}}}}]]}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 10:52, 26 July 2019

Template usage

An infobox listing each part of a multi-part event series, for quick navigation.

  • Name: The name of the event series.
  • Part: A word describing the event parts, such as "Part" or "Chapter".
  • Label1: An additional label for the 1st event in the series.
  • Label2: An additional label for the 2nd event in the series.
  • Label3: An additional label for the 3rd event in the series.
  • Label4: An additional label for the 4th event in the series.
  • Label5: An additional label for the 5th event in the series.


All other parameters are the names of each part of the event series, in order.

Example

This shorthand:

{{Infobox event series
|Name=Ravnica at War
|Part=Part
|Label1={{G}}
|Label2={{W}}
|Label3={{R}}
|Label4={{U}}
|Label5={{B}}
|Ravnica at War: Devastation
|Ravnica at War: Glory
|Ravnica at War: Promise
|Ravnica at War: Revelation
|Ravnica at War: Eternity
}}

Produces:

Event Series
Ravnica at War
Part 1 (Green) Ravnica at War: Devastation
Part 2 (White) Ravnica at War: Glory
Part 3 (Red) Ravnica at War: Promise
Part 4 (Blue) Ravnica at War: Revelation
Part 5 (Black) Ravnica at War: Eternity