Template:TTP2Document: Difference between revisions
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. | "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 | "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:
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
File Name | file | The in-universe file name, shown on a terminal before selecting the file. This often (but not always) includes underscores.
| String | required |
Title | title | 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.
| String | required |
Author | author | 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. | Unknown | suggested |
Location | loc | 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.
| String | suggested |