Difference between revisions of "Template:Event"

From Pandorabox
Jump to navigation Jump to search
(Better info table structure, no nested tables)
 
(3 intermediate revisions by 2 users not shown)
Line 19: Line 19:
 
|[[User:{{{contact}}}|{{{contact}}}]]
 
|[[User:{{{contact}}}|{{{contact}}}]]
  
 +
|-
 +
!colspan="10" style="margin: 0; padding: 6px; background: green"|
 
|- {{#if: {{{start|}}} | | style="display: none;" }}
 
|- {{#if: {{{start|}}} | | style="display: none;" }}
!colspan="10" style="margin: 0; padding: 0; background: green"|
+
! Start:
  {| class="wikitable" style="margin: 1em 0 0 0; padding: 0;"
+
! End:
  ! Start:
+
|- {{#if: {{{start|}}} | | style="display: none;" }}
  ! End:
+
|{{{start}}}
  |-
+
|{{{end}}}
  | {{{start}}}
+
 
  | {{{end}}}
 
  |}
 
 
|-
 
|-
 +
!colspan="10"|{{{directions|{{Label|text=/spawn|color=brown}} → {{Label|text=Earth|color=brown}} → {{Label|text=Minigames|color=green}} }}}
 +
 
|}
 
|}
 
__TOC__
 
__TOC__
Line 35: Line 37:
 
{{{info}}} | }}
 
{{{info}}} | }}
  
=== Event timetable and prizes ===
+
=== Event timetable ===
  
 
{| class="wikitable" style="margin: 1em 0 0 0;"
 
{| class="wikitable" style="margin: 1em 0 0 0;"
Line 41: Line 43:
 
! Deadline:
 
! Deadline:
 
|-
 
|-
| Tuesday, October 1
+
| {{{start}}}
| Saturday, October 31
+
| {{{end}}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>
Line 73: Line 75:
 
|contact=SX
 
|contact=SX
 
}}
 
}}
 +
</pre>
 +
 +
Optional parameters
 +
<pre>
 +
|theme=Halloween
 +
|maplocation=0/-1799.5/399/10
 +
|preview=Rules_icon.png
 +
|directions={{Label|text=/spawn|color=brown}} → {{Label|text=Earth|color=brown}} → {{Label|text=Minigames|color=green}}
 +
|contact=SX
 
</pre>
 
</pre>
  

Latest revision as of 11:02, 17 September 2023

Halloween Party
Rules icon.png
Map 0/-1799.5/399/10
Theme Halloween
Contact SX
Start: End:
Tuesday, October 1 Saturday, October 31
/spawnEarthMinigames

Halloween Party event description

Make a Haunted house, add any creative spooky thing you can think of. Make it the scariest house in the server!

Event timetable

Start: Deadline:
Tuesday, October 1 Saturday, October 31



Include example

From Top Of My Head

{{Event
|name=Halloween Party
|theme=Halloween
|maplocation=0/-1799.5/399/10
|info=Make a Haunted house, add any creative spooky thing you can think of. Make it the scariest house in the server!
|start=Tuesday, October 1
|end=Saturday, October 31
|contact=SX
}}

Optional parameters

|theme=Halloween
|maplocation=0/-1799.5/399/10
|preview=Rules_icon.png
|directions={{Label|text=/spawn|color=brown}} → {{Label|text=Earth|color=brown}} → {{Label|text=Minigames|color=green}}
|contact=SX
This is not working at all...
{{ #foreach: $n$_prize | $n$_prize = {{{$n$_prize}}}<br/> | }}