Memories:Template:pc-yes

From Campaigns
Revision as of 04:30, 4 November 2021 by Lithl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

style="background-color:#9f9;text-align:center;vertical-align:middle;" class="table-yes"|yes

Documentation

Parameters

Creates a table cell indicating a 'yes' option.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
cell text1

The text to display in the cell.

Default
yes
Example
OK
Stringoptional
horizontal alignmentalign

Horizontal alignment for the cell text.

Default
center
Example
right
Stringoptional
additional stylingstyle

Additional inline CSS styles to apply to the cell.

Default
(omitted)
Example
font-weight: bold
Stringoptional

Examples

Minimal example:

yes
{|
| {{Memories:Template:pc-yes}}
|}

Full example:

header 1 header 2 header 3
text text text
text OK text
text text text
{| class="wikitable"
!header 1 !! header 2 !! header 3
|-
|text || text || text
|-
|text || {{Memories:Template:pc-yes|OK|align=right|style=background-color:blue;color:white}} || text
|-
|text || text || text
|}