Template:Infobox hunt: Difference between revisions

Content added Content deleted
(Attempt at extending infobox to include multiple chronologies (required for simulcasted hunts or hunts in multiple "series"))
(automatically populate into puzzle hunts category)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:
<includeonly>{{#if:{{NAMESPACE}}||{{#if:{{{running_team|}}}|[[Category: Puzzle Hunts run by {{Delink|{{{running_team}}}}}]]|}} }}{{Infobox
_table = Hunts
|hunt_name = String
|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%);
|abovestyle = background:hsl(24, 90%, 75%);
|above = {{{hunt_name|{{PAGENAME}}}}}
|above = {{{hunt_name|{{PAGENAME}}}}}
Line 36: Line 49:
| label15 = Leaderboard Link
| label15 = Leaderboard Link
| data15 = {{#if:{{{leaderboard_link|}}}|[{{{leaderboard_link|}}} Link]|}}
| data15 = {{#if:{{{leaderboard_link|}}}|[{{{leaderboard_link|}}} Link]|}}
| label16 = Repository Link
|header16 = {{#if:{{{hunt2|}}}|Chronology|{{#if:{{{prev_hunt|}}}{{{next_hunt|}}}|{{{hunt|}}} Chronology|}}}}
| data16 = {{#if:{{{repo_link|}}}|[{{{repo_link|}}} Link]|}}
|header17 = {{#if:{{{hunt2|}}}|Chronology|{{#if:{{{prev_hunt|}}}{{{next_hunt|}}}|{{{hunt|}}} Chronology|}}}}
| below =
| 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-->
{{#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-->

Latest revision as of 12:23, 21 August 2023

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