Template:Infobox TTP1 Puzzle: Difference between revisions

From The Talos Principle Wiki
Created page with "{| class="infobox" ! style="background-color: #d783ff; color: black;" colspan=2| {{BASEPAGENAME}} |- |colspan=2|{{#if:{{{image|}}}|[[{{{image}}}|frameless|250px|thumb|]]|}} |- | Area: | {{{area|''Unknown''}}} |- | Land: | {{{land|''Unknown''}}} |- | Reward: | {{{reward|''Unknown''}}} |} <noinclude> An infobox for a puzzle from the first game. == Usage == <pre>{{Infobox TTP1 Puzzle |image = File:A Switch Out of Reach.jpg |area = A1 |land = Land of Ruins |reward =..."
 
image parameter doesn't expect "File:
 
Line 2: Line 2:
! style="background-color: #d783ff; color: black;" colspan=2| {{BASEPAGENAME}}
! style="background-color: #d783ff; color: black;" colspan=2| {{BASEPAGENAME}}
|-
|-
|colspan=2|{{#if:{{{image|}}}|[[{{{image}}}|frameless|250px|thumb|]]|}}
|colspan=2|{{#if:{{{image|}}}|[[File:{{{image}}}|frameless|250px|thumb|]]|}}
|-
|-
| Area:
| Area:
Line 17: Line 17:
== Usage ==
== Usage ==
<pre>{{Infobox TTP1 Puzzle
<pre>{{Infobox TTP1 Puzzle
|image = File:A Switch Out of Reach.jpg
|image = A Switch Out of Reach.jpg
|area = [[A1]]
|area = [[A1]]
|land = [[Land of Ruins]]
|land = [[Land of Ruins]]
|reward = {{Sigil|Green|Z}}
|reward = {{Sigil|Green|Z}}
}}</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 TTP1 Puzzle
{{Infobox TTP1 Puzzle
|image = File:A Switch Out of Reach.jpg
|image = A Switch Out of Reach.jpg
|area = [[A1]]
|area = [[A1]]
|land = [[Land of Ruins]]
|land = [[Land of Ruins]]

Latest revision as of 06:51, 2 December 2023

Infobox TTP1 Puzzle
Area: Unknown
Land: Unknown
Reward: Unknown

An infobox for a puzzle from the first game.

Usage

{{Infobox TTP1 Puzzle
|image = A Switch Out of Reach.jpg
|area = [[A1]]
|land = [[Land of Ruins]]
|reward = {{Sigil|Green|Z}}
}}

produces

Infobox TTP1 Puzzle
File:A Switch Out of Reach.jpg
Area: A1
Land: Land of Ruins
Reward: