Template:Infobox TTP2 Puzzle: Difference between revisions

From The Talos Principle Wiki
puzzle type row does not appear if omitted
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
! style="background-color: #c3b0cf; color: black;" colspan=2| {{BASEPAGENAME}}
! style="background-color: #c3b0cf; color: black;" colspan=2| {{BASEPAGENAME}}
|-
|-
|colspan=2|{{#if:{{{image|}}}|[[{{{image}}}|frameless|250px|thumb|]]|}}
|colspan=2|{{#if:{{{image|}}}|[[File:{{{image}}}|frameless|250px|thumb|]]|}}
|-
|-
| Identifier:
| Identifier:
Line 10: Line 10:
| {{{area|''Area unknown''}}}
| {{{area|''Area unknown''}}}
|-
|-
| Puzzle Type:
{{#if: {{{puzzletype|}}} |
| {{{puzzletype|''Type unknown''}}}
  {{!}} Puzzle Type:
|-
  {{!}} {{{puzzletype}}}
  {{!}}-
  |  
}}
| Previous Puzzle:
| Previous Puzzle:
| {{{previous|''None''}}}
| {{{previous|''None''}}}
|-
|-
| Next Puzzle:
| Next Puzzle:
| | {{{next|''None''}}}
| {{{next|''None''}}}
|}
|}
<noinclude>
<noinclude>
 
An infobox for a puzzle from the second game.
 
This is a Infobox template for a Puzzle.
== Usage ==
== Usage ==
<pre>{{PuzzleInfobox
<pre>{{Infobox TTP2 Puzzle
|identifier = East 1-3
|identifier = East 1-3
|image = File:East 1-3.jpg
|image = East 1-3.jpg
|area = [[Grasslands Ring]]
|area = [[Grasslands Ring]]
|puzzletype = [[:Category:TTP2 Main Puzzles|Main]]
|puzzletype = [[:Category:TTP2 Main Puzzles|Main]]
Line 32: Line 33:
|next = [[Alternative Option]]
|next = [[Alternative Option]]
}}</pre>
}}</pre>
 
produces
Note how you specify the name of (optional) image: you have to include the "File:" namespace, but no square brackets. That should show up as the box below:
<div style="width: 300px">
<div style="width: 300px">
{{PuzzleInfobox
{{Infobox TTP2 Puzzle
|identifier = East 1-3
|identifier = East 1-3
|image = File:East 1-3.jpg
|image = East 1-3.jpg
|area = [[Grasslands Ring]]
|area = [[Grasslands Ring]]
|puzzletype = [[:Category:TTP2 Main Puzzles|Main]]
|puzzletype = [[:Category:TTP2 Main Puzzles|Main]]

Latest revision as of 16:32, 16 June 2024

Infobox TTP2 Puzzle
Identifier: Not set
Area: Area unknown
Previous Puzzle: None
Next Puzzle: None

An infobox for a puzzle from the second game.

Usage

{{Infobox TTP2 Puzzle
|identifier = East 1-3
|image = East 1-3.jpg
|area = [[Grasslands Ring]]
|puzzletype = [[:Category:TTP2 Main Puzzles|Main]]
|previous = [[Reconnection]]
|next = [[Alternative Option]]
}}

produces

Infobox TTP2 Puzzle
Identifier: East 1-3
Area: Grasslands Ring
Puzzle Type: Main
Previous Puzzle: Reconnection
Next Puzzle: Alternative Option