Template:Document Comments: Difference between revisions

From The Talos Principle Wiki
m TemplateData
m Each comment is one table row with a <br>
Line 2: Line 2:
{| style="border-left:1px solid black; padding-left: 5px; margin-left: 20px;"
{| style="border-left:1px solid black; padding-left: 5px; margin-left: 20px;"
|-
|-
| style="font-weight:bold; " | {{{author1}}}
| '''{{{author1}}}'''<br/>{{{comment1}}}
|-
|- style="{{#if: {{{author2|}}} | {{#if: {{{comment2|}}} | | display:none; }} | display:none; }}"  
| style="" | {{{comment1}}}
| '''{{{author2}}}'''<br/>{{{comment2}}}
|- style="font-weight:bold; {{#if:{{{author2|}}}||display:none}}"
|- style="{{#if: {{{author3|}}} | {{#if: {{{comment3|}}} | | display:none; }} | display:none; }}"  
| {{{author2}}}
| '''{{{author3}}}'''<br/>{{{comment3}}}
|- style="{{#if:{{{comment2|}}}||display:none}}"
|- style="{{#if: {{{author4|}}} | {{#if: {{{comment4|}}} | | display:none; }} | display:none; }}"  
| {{{comment2}}}
| '''{{{author4}}}'''<br/>{{{comment4}}}
|- style="font-weight:bold; {{#if:{{{author3|}}}||display:none}}"
|- style="{{#if: {{{author5|}}} | {{#if: {{{comment5|}}} | | display:none; }} | display:none; }}"  
| {{{author3}}}
| '''{{{author5}}}'''<br/>{{{comment5}}}
|- style="{{#if:{{{comment3|}}}||display:none}}"  
|- style="{{#if: {{{author6|}}} | {{#if: {{{comment6|}}} | | display:none; }} | display:none; }}"  
| {{{comment3}}}
| '''{{{author6}}}'''<br/>{{{comment6}}}
|- style="font-weight:bold; {{#if:{{{author4|}}}||display:none}}"
| {{{author4}}}
|- style="{{#if:{{{comment4|}}}||display:none}}"  
| {{{comment4}}}
|- style="font-weight:bold; {{#if:{{{author5|}}}||display:none}}"
| {{{author5}}}
|- style="{{#if:{{{comment5|}}}||display:none}}"  
| {{{comment5}}}
|- style="font-weight:bold; {{#if:{{{author6|}}}||display:none}}"
| {{{author6}}}
|- style="{{#if:{{{comment6|}}}||display:none}}"  
| {{{comment6}}}
|}
|}
<noinclude>== Usage ==
<noinclude>== Usage ==

Revision as of 05:07, 24 November 2023

Comments

{{{author1}}}
{{{comment1}}}
{{{author2}}}
{{{comment2}}}
{{{author3}}}
{{{comment3}}}
{{{author4}}}
{{{comment4}}}
{{{author5}}}
{{{comment5}}}
{{{author6}}}
{{{comment6}}}

Usage

Example with one comment:

Comments

Dog
Hello
{{{author2}}}
{{{comment2}}}
{{{author3}}}
{{{comment3}}}
{{{author4}}}
{{{comment4}}}
{{{author5}}}
{{{comment5}}}
{{{author6}}}
{{{comment6}}}


Two comments:

Comments

Dog
Hello
Cat
Bye
{{{author3}}}
{{{comment3}}}
{{{author4}}}
{{{comment4}}}
{{{author5}}}
{{{comment5}}}
{{{author6}}}
{{{comment6}}}


Three comments:

Comments

Dog
Hello
Cat
Bye
Human
What?
{{{author4}}}
{{{comment4}}}
{{{author5}}}
{{{comment5}}}
{{{author6}}}
{{{comment6}}}


The in-universe comments section on a TTP2 document, including the header. (Max 6 comments)

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Author 1author1

Author of first comment. Sometimes this is text like "(failed to load profile)". For hex strings, use the format {{HexString|7468656d|them}}.

Stringrequired
Comment 1comment1

First comment. Sometimes this is text like "(failed to load comment)". For hex strings, use the format {{HexString|7468656d|them}}.

Stringrequired
Author 2author2

Optional. Check the boxes for Author 3 and Comment 3, etc., if the document has more than two comments.

Stringsuggested
Comment 2comment2

Optional. Check the boxes for Author 3 and Comment 3, etc., if the document has more than two comments.

Stringsuggested
Author 3author3

no description

Stringoptional
Comment 3comment3

no description

Stringoptional
Author 4author4

no description

Stringoptional
Comment 4comment4

no description

Stringoptional
Author 5author5

no description

Stringoptional
Comment 5comment5

no description

Stringoptional
Author 6author6

no description

Stringoptional
Comment 6comment6

no description

Stringoptional