Template:Infobox hunt: Difference between revisions

Content added Content deleted
(create hunt infobox template)
 
(automatically populate into puzzle hunts category)
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:
{{Infobox
_table = Hunts
|abovestyle = background:#d18c63;
|hunt_name = String
|above = {{{hunt_name|}}}
|running_team = String
|num_teams = Integer
|winning_team = String
|num_rounds = Integer
|num_puzzles = Integer
|start_time = Datetime
|first_finish_time = Datetime
|end_time = Datetime
|hunt_link = String
|leaderboard_link = String
}}</noinclude><includeonly>{{#if:{{NAMESPACE}}||<!--BEGIN CARGO STORE-->{{#cargo_store:_table = Hunts|running_team={{Delink|{{{running_team|}}}}}|winning_team={{Delink|{{{winning_team|}}}}}}}<!--END CARGO STORE-->[[Category: Puzzle Hunts]]{{#if:{{{running_team|}}}|[[Category: Puzzle Hunts run by {{Delink|{{{running_team}}}}}]]|}} }}{{Infobox
|abovestyle = background:hsl(24, 90%, 75%);
|above = {{{hunt_name|{{PAGENAME}}}}}


| image = {{{image|}}}
| image = {{#if:{{{image|}}}|[[{{{image|}}}|{{{image_width|450px}}}]]}}
|caption = {{{image_caption|}}}
|caption = {{{image_caption|}}}


Line 18: Line 31:
| label5 = No. of Puzzles (Feeders and Metas)
| label5 = No. of Puzzles (Feeders and Metas)
| data5 = {{{num_puzzles|}}}
| data5 = {{{num_puzzles|}}}
{{#if:{{{location|}}}{{{start_time|}}}{{{first_finish_time|}}}{{{end_time|}}}|exist|
|header6 = {{#if:{{{location|}}}{{{start_time|}}}{{{first_finish_time|}}}{{{end_time|}}}|Timeframe and Location|}}
|header6 = Timeframe and Location
| label7 = Location
| label6 = Location
| data7 = {{{location|}}}
| data6 = {{{location|}}}
| label8 = Start Time
| data8 = {{{start_time|}}}
| label7 = Start Time
| label9 = Finishing Time (Winning Team)
| data7 = {{{start_time|}}}
| data9 = {{{first_finish_time|}}}
| label8 = Finishing Time (Winning Team)
| label10 = Official End Time
| data8 = {{{first_finish_time|}}}
| data10 = {{{end_time|}}}
| label9 = Official End Time
|header11 = {{#if:{{{hunt_link|}}}{{{kickoff_link|}}}{{{wrapup_link|}}}{{{leaderboard_link|}}}|Links|}}
| data9 = {{{end_time|}}}
| label12 = Hunt Link
|}}
{{#if:{{{prev_hunt|}}}{{{next_hunt|}}}|exist|
| data12 = {{#if:{{{hunt_link|}}}|[{{{hunt_link|}}} Link]|}}
| label13 = Kickoff Link
|header10 = {{{hunt|}}} Chronology
| below = {{succession links|left={{{prev_hunt|}}}|right={{{next_hunt|}}}}}
| data13 = {{#if:{{{kickoff_link|}}}|[{{{kickoff_link|}}} Link]|}}
| label14 = Wrapup Link
|}}
| data14 = {{#if:{{{wrapup_link|}}}|[{{{wrapup_link|}}} Link]|}}
}}
| label15 = Leaderboard Link
| data15 = {{#if:{{{leaderboard_link|}}}|[{{{leaderboard_link|}}} Link]|}}
| label16 = Repository Link
| data16 = {{#if:{{{repo_link|}}}|[{{{repo_link|}}} Link]|}}
|header17 = {{#if:{{{hunt2|}}}|Chronology|{{#if:{{{prev_hunt|}}}{{{next_hunt|}}}|{{{hunt|}}} Chronology|}}}}
| below =
{{#if:{{{prev_hunt|}}}{{{next_hunt|}}}|{{succession links|left={{{prev_hunt|}}}|right={{{next_hunt|}}}|above={{#if:{{{hunt2|}}}|'''{{{hunt|}}}'''|}}}}|}}<!--hunt2 is intentional here, we only display hunts this way if there are multiple chronologies-->
{{clear}}
{{#if:{{{prev_hunt2|}}}{{{next_hunt2|}}}|{{succession links|left={{{prev_hunt2|}}}|right={{{next_hunt2|}}}|above={{#if:{{{hunt2|}}}|'''{{{hunt2|}}}'''|}}}}|}}
{{clear}}
{{#if:{{{prev_hunt3|}}}{{{next_hunt3|}}}|{{succession links|left={{{prev_hunt3|}}}|right={{{next_hunt3|}}}|above={{#if:{{{hunt3|}}}|'''{{{hunt3|}}}'''|}}}}|}}
}}</includeonly>
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}

Latest revision as of 12:23, 21 August 2023

This template defines the table "Hunts". View table.