Difference between revisions of "Template:Infobox event series"

From mtgpq wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
* Label4: An additional label for the 4th 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.
 
* Label5: An additional label for the 5th event in the series.
 
+
* Text1: Optional text to use for the 5th event in the series.  If not supplied, uses the full event name.
 +
* Text2: Optional text to use for the 5th event in the series.  If not supplied, uses the full event name.
 +
* Text3: Optional text to use for the 5th event in the series.  If not supplied, uses the full event name.
 +
* Text4: Optional text to use for the 5th event in the series.  If not supplied, uses the full event name.
 +
* Text5: Optional text to use for the 5th event in the series.  If not supplied, uses the full event name.
  
 
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 19: Line 23:
 
<pre>
 
<pre>
 
{{Infobox event series
 
{{Infobox event series
|Name=Ravnica at War
+
|Name=Challenge of the Courts
 
|Part=Part
 
|Part=Part
 
|Label1={{G}}
 
|Label1={{G}}
Line 26: Line 30:
 
|Label4={{U}}
 
|Label4={{U}}
 
|Label5={{B}}
 
|Label5={{B}}
|Ravnica at War: Devastation
+
|Text1=CotC - Garenbrig
|Ravnica at War: Glory
+
|Text2=CotC - Ardenvale
|Ravnica at War: Promise
+
|Text3=CotC - Embereth
|Ravnica at War: Revelation
+
|Text4=CotC - Vantress
|Ravnica at War: Eternity
+
|Text5=CotC - Locthwain
 +
|Challenge of the Courts - Garenbrig
 +
|Challenge of the Courts - Ardenvale
 +
|Challenge of the Courts - Embereth
 +
|Challenge of the Courts - Vantress
 +
|Challenge of the Courts - Locthwain
 
}}
 
}}
 
</pre>
 
</pre>
Line 36: Line 45:
 
Produces:
 
Produces:
 
{{Infobox event series
 
{{Infobox event series
|Name=Ravnica at War
+
|Name=Challenge of the Courts
 
|Part=Part
 
|Part=Part
 
|Label1={{G}}
 
|Label1={{G}}
Line 43: Line 52:
 
|Label4={{U}}
 
|Label4={{U}}
 
|Label5={{B}}
 
|Label5={{B}}
|Ravnica at War: Devastation
+
|Text1=CotC - Garenbrig
|Ravnica at War: Glory
+
|Text2=CotC - Ardenvale
|Ravnica at War: Promise
+
|Text3=CotC - Embereth
|Ravnica at War: Revelation
+
|Text4=CotC - Vantress
|Ravnica at War: Eternity
+
|Text5=CotC - Locthwain
 +
|Challenge of the Courts - Garenbrig
 +
|Challenge of the Courts - Ardenvale
 +
|Challenge of the Courts - Embereth
 +
|Challenge of the Courts - Vantress
 +
|Challenge of the Courts - Locthwain
 
}}
 
}}
  
Line 59: Line 73:
 
| data1  = '''[[{{{Name}}}]]'''
 
| data1  = '''[[{{{Name}}}]]'''
 
| label2  = {{#if:{{{1|}}}|{{{Part}}} 1{{#if:{{{Label1|}}}|&nbsp;({{{Label1}}})}}}}
 
| label2  = {{#if:{{{1|}}}|{{{Part}}} 1{{#if:{{{Label1|}}}|&nbsp;({{{Label1}}})}}}}
| data2  = {{#if:{{{1|}}}|[[{{Trim|{{{1}}}}}]]}}
+
| data2  = {{#if:{{{1|}}}|[[{{Trim|{{{1}}}}}{{#if:{{{Text1|}}}|{{!}}{{{Text1}}}}}]]}}
 
| label3  = {{#if:{{{2|}}}|{{{Part}}} 2{{#if:{{{Label2|}}}|&nbsp;({{{Label2}}})}}}}
 
| label3  = {{#if:{{{2|}}}|{{{Part}}} 2{{#if:{{{Label2|}}}|&nbsp;({{{Label2}}})}}}}
| data3  = {{#if:{{{2|}}}|[[{{Trim|{{{2}}}}}]]}}
+
| data3  = {{#if:{{{2|}}}|[[{{Trim|{{{2}}}}}{{#if:{{{Text2|}}}|{{!}}{{{Text2}}}}}]]}}
 
| label4  = {{#if:{{{3|}}}|{{{Part}}} 3{{#if:{{{Label3|}}}|&nbsp;({{{Label3}}})}}}}
 
| label4  = {{#if:{{{3|}}}|{{{Part}}} 3{{#if:{{{Label3|}}}|&nbsp;({{{Label3}}})}}}}
| data4  = {{#if:{{{3|}}}|[[{{Trim|{{{3}}}}}]]}}
+
| data4  = {{#if:{{{3|}}}|[[{{Trim|{{{3}}}}}{{#if:{{{Text3|}}}|{{!}}{{{Text3}}}}}]]}}
 
| label5  = {{#if:{{{4|}}}|{{{Part}}} 4{{#if:{{{Label4|}}}|&nbsp;({{{Label4}}})}}}}
 
| label5  = {{#if:{{{4|}}}|{{{Part}}} 4{{#if:{{{Label4|}}}|&nbsp;({{{Label4}}})}}}}
| data5  = {{#if:{{{4|}}}|[[{{Trim|{{{4}}}}}]]}}
+
| data5  = {{#if:{{{4|}}}|[[{{Trim|{{{4}}}}}{{#if:{{{Text4|}}}|{{!}}{{{Text4}}}}}]]}}
 
| label6  = {{#if:{{{5|}}}|{{{Part}}} 5{{#if:{{{Label5|}}}|&nbsp;({{{Label5}}})}}}}
 
| label6  = {{#if:{{{5|}}}|{{{Part}}} 5{{#if:{{{Label5|}}}|&nbsp;({{{Label5}}})}}}}
| data6  = {{#if:{{{5|}}}|[[{{Trim|{{{5}}}}}]]}}
+
| data6  = {{#if:{{{5|}}}|[[{{Trim|{{{5}}}}}{{#if:{{{Text5|}}}|{{!}}{{{Text5}}}}}]]}}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 02:14, 14 December 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.
  • Text1: Optional text to use for the 5th event in the series. If not supplied, uses the full event name.
  • Text2: Optional text to use for the 5th event in the series. If not supplied, uses the full event name.
  • Text3: Optional text to use for the 5th event in the series. If not supplied, uses the full event name.
  • Text4: Optional text to use for the 5th event in the series. If not supplied, uses the full event name.
  • Text5: Optional text to use for the 5th event in the series. If not supplied, uses the full event name.

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

Example

This shorthand:

{{Infobox event series
|Name=Challenge of the Courts
|Part=Part
|Label1={{G}}
|Label2={{W}}
|Label3={{R}}
|Label4={{U}}
|Label5={{B}}
|Text1=CotC - Garenbrig
|Text2=CotC - Ardenvale
|Text3=CotC - Embereth
|Text4=CotC - Vantress
|Text5=CotC - Locthwain
|Challenge of the Courts - Garenbrig
|Challenge of the Courts - Ardenvale
|Challenge of the Courts - Embereth
|Challenge of the Courts - Vantress
|Challenge of the Courts - Locthwain
}}

Produces:

Event Series
Challenge of the Courts
Part 1 (Green) CotC - Garenbrig
Part 2 (White) CotC - Ardenvale
Part 3 (Red) CotC - Embereth
Part 4 (Blue) CotC - Vantress
Part 5 (Black) CotC - Locthwain