Template:TTP2Document: Difference between revisions

From The Talos Principle Wiki
Created page with "{| class="infobox" ! style="align:center; background-color: #DFBA78; color: black;" colspan=2| {{BASEPAGENAME}} |- | Filename: | style="text-align:right;" | {{{filename|''Not set''}}} |- | Author: | style="text-align:right;" | {{{author|''Unknown''}}} |- | Location<span></span>: | style="text-align:right;" | {{{loc|''Unknown''}}} |} === {{{title|}}} === <noinclude> This is a infobox template for a Document. == Usage == <pre>{{TTP2Document |file = L1C_Niamh |title = Niam..."
 
no longer automatically adds article to Category:TTP2 Documents
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox"
{{#if:{{{file|}}}|{{DISPLAYTITLE:{{{file}}}}}}}
! style="align:center; background-color: #DFBA78; color: black;" colspan=2| {{BASEPAGENAME}}
'''{{{file|{{BASEPAGENAME}}}}}''' is a {{#if:{{{multimedia|}}}|multimedia|text}} document{{#ifeq:{{{force_display_author|}}}|true|&nbsp;by {{{author}}}}}{{#ifeq:{{{force_display_author|}}}|True|&nbsp;by {{{author}}}}}{{#if:{{{loc|}}}|&nbsp;stored in the {{{loc}}} terminal}}.
|-
== Contents ==
| Filename:
| style="text-align:right;" | {{{filename|''Not set''}}}
|-
| Author:
| style="text-align:right;" | {{{author|''Unknown''}}}
|-
| Location<span></span>:
| style="text-align:right;" | {{{loc|''Unknown''}}}
|}
=== {{{title|}}} ===
=== {{{title|}}} ===
<noinclude>
<noinclude>
 
<templatedata>
This is a infobox template for a Document.
{
== Usage ==
"params": {
<pre>{{TTP2Document
"file": {
|file = L1C_Niamh
"label": "File Name",
|title = Niamh
"description": "The in-universe file name, shown on a terminal before selecting the file. This often (but not always) includes underscores.",
|author = Unknown
"example": "4.2_kiloyear_event",
|loc = [[LOS]]
"type": "string",
}}</pre>
"required": true
 
},
That should show up as the box below:
"author": {
<div style="width: 300px">
"label": "Author",
{{TTP2Document
"description": "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.",
|file = L1C_Niamh
"suggested": true
|title = Niamh
},
|author = Unknown
"loc": {
|loc = [[LOS]]
"label": "Location",
}}
"description": "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.",
(document text would appear here)
"example": "VALA_EXT-1",
</div>
"type": "string",
"suggestedvalues": [
"[[HAR]]",
"[[VALA]]",
"[[LOS]]",
"[[GRODNA]]",
"[[THIRIEL]]",
"[[THARMAS]]",
"[[ENITHARMON]]",
"[[UTHA]]",
"[[FUZON]]",
"[[ULRO]]",
"[[RINTRAH]]",
"[[BEULAH]]",
"[[AHANIA]]"
],
"suggested": true
},
"title": {
"label": "Title",
"description": "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",
"type": "string",
"required": true
},
"multimedia": {
"label": "Multimedia?",
"description": "Type \"true\" without quotes if the document includes an image or video or audio.",
"suggestedvalues": [
"false",
"true"
]
},
"force_display_author": {
"label": "Force display of author name?",
"description": "Type \"true\" without quotes *only if* the author's name is not clear from the contents of the document.",
"suggestedvalues": [
"false",
"true"
]
}
},
"description": "Use this at the *very top* of every in-universe (terminal) document. It will create the one-sentence intro, the Contents header, and the document title. It will also add this page to Category:TTP2 Documents.",
"paramOrder": [
"file",
"title",
"author",
"loc",
"multimedia",
"force_display_author"
],
"format": "block"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 07:25, 16 June 2024

TTP2Document is a text document.

Contents

Use this at the *very top* of every in-universe (terminal) document. It will create the one-sentence intro, the Contents header, and the document title. It will also 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
Multimedia?multimedia

Type "true" without quotes if the document includes an image or video or audio.

Suggested values
false true
Unknownoptional
Force display of author name?force_display_author

Type "true" without quotes *only if* the author's name is not clear from the contents of the document.

Suggested values
false true
Unknownoptional