Template:TTP2Document: Difference between revisions

From The Talos Principle Wiki
m TemplateData
automatic DISPLAYTITLE and Category
Line 1: Line 1:
{| class="infobox"
{{#if: {{{file|}}} | {{DISPLAYTITLE:{{{file}}}}} }}{| class="infobox"
! style="align:center; background-color: #DFBA78; color: black;" colspan=2| {{{file|{{BASEPAGENAME}}}}}
! style="align:center; background-color: #DFBA78; color: black;" colspan=2| {{{file|{{BASEPAGENAME}}}}}
|-
|-
Line 7: Line 7:
| Location<span></span>:
| Location<span></span>:
| style="text-align:right;" | {{{loc|''Unknown''}}}
| style="text-align:right;" | {{{loc|''Unknown''}}}
|}
|}[[Category:TTP2 Documents]]
<big>'''{{{title|}}}'''</big><br>
{{#if: {{{title|}}} |<big>'''{{{title|}}}'''</big><br>}}
<noinclude>
<noinclude>


Line 35: Line 35:
"file": {
"file": {
"label": "File Name",
"label": "File Name",
"description": "The in-universe file name, shown on a terminal before selecting the file. If this includes underscores, please also add `{{DISPLAYTITLE:...}}` to the source for this article.",
"description": "The in-universe file name, shown on a terminal before selecting the file. This often (but not always) includes underscores.",
"example": "4.2_kiloyear_event",
"example": "4.2_kiloyear_event",
"type": "string",
"type": "string",
Line 75: Line 75:
}
}
},
},
"description": "Use this at the 'very top' of every in-universe (terminal) document. It will create the Infobox and format the document's header.",
"description": "Use this at the 'very top' of every in-universe (terminal) document. It will create the Infobox, format the document's header, and add this page to Category:TTP2 Documents.",
"paramOrder": [
"paramOrder": [
"file",
"file",

Revision as of 19:26, 22 November 2023

TTP2Document
Author: Unknown
Location: Unknown


This is a infobox template for a Document.

Usage

{{TTP2Document
|file = L1C_Niamh
|title = Niamh
|author = Unknown
|loc = [[LOS]]
}}

will show up as the box and header below:

L1C_Niamh
Author: Unknown
Location: LOS

Niamh

(document text would appear here)

Use this at the 'very top' of every in-universe (terminal) document. It will create the Infobox, format the document's header, and add this page to Category:TTP2 Documents.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
File Namefile

The in-universe file name, shown on a terminal before selecting the file. This often (but not always) includes underscores.

Example
4.2_kiloyear_event
Stringrequired
Titletitle

The in-universe title, written at the top of a document. Sometimes this is the same as the file name, but sometimes it is not.

Example
The 4.2 Kiloyear Aridification Event
Stringrequired
Authorauthor

The in-universe author of the document. You can make this a link using brackets (example: [[Byron]]). If this field is omitted, "Unknown" will be used.

Unknownsuggested
Locationloc

The area in which this file can be found. If the specific terminal is known (e.g., [[VALA_EXT-1]]), use that. Otherwise use the prefix for the terminals in that area (e.g., [[VALA]]). The brackets will make this a link.

Suggested values
[[HAR]] [[VALA]] [[LOS]] [[GRODNA]] [[THIRIEL]] [[THARMAS]] [[ENITHARMON]] [[UTHA]] [[FUZON]] [[ULRO]] [[RINTRAH]] [[BEULAH]] [[AHANIA]]
Example
VALA_EXT-1
Stringsuggested