Template:Infobox TTP2 Puzzle: Difference between revisions

From The Talos Principle Wiki
m name
image parameter does not expect "File:" (better for TemplateData this way)
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 24: Line 24:
<pre>{{Infobox TTP2 Puzzle
<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 30: Line 30:
|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">
{{Infobox TTP2 Puzzle
{{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]]

Revision as of 07:57, 2 December 2023

Infobox TTP2 Puzzle
Identifier: Not set
Area: Area unknown
Puzzle Type: Type 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