Template:Yes

From GTA Portugal Wiki
Revision as of 22:28, 12 March 2024 by RoamPT (talk | contribs) (Created page with "<includeonly>{{#if:{{{box|}}}|<div style="width: {{{width|100}}}%; background-color:var(--theme-green-color); text-align: {{{align|center}}}; padding: 0 5px 0 5px;"> {{{1|Yes}}} </div>|style="background-color:var(--theme-green-color); text-align: {{{align|center}}};"{{!}}{{{1|Yes}}}}}</includeonly><noinclude> ==Source== <code><nowiki>{{Yes|}}</nowiki></code> ==Usage== Use this template to visualize a "Yes" or otherwise positive with a themed green background. Used in co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Source

{{Yes|}}

Usage

Use this template to visualize a "Yes" or otherwise positive with a themed green background. Used in conjunction with No template.

Parameters

The first field sets the text to be used. The default text is "Yes".
{{Yes|box=y|Positive}}

Positive

box defines whether the template is to be used as a box rather than as a background to an existing table cell, for example, if it is used in plain text.
{{Yes|box=y|Available}}

Available


align determines how the text should be aligned.
{{Yes|align=left|I am left-aligned text!}}
{{Yes|align=center|I am centered text!}}
{{Yes|align=right|I am right-aligned text!}}

Column 1 Column 2 Column 3
I am left-aligned text! I am centered text! I am right-aligned text!

width determines the width the box should be. This can only be used if box is used. Default is 100%. {{Yes|box=y|width=50|50%}}
{{Yes|box=y|width=25|25%}}
{{Yes|box=y|width=10|10%}}

50%

25%

10%

See Also

  • No - similarly functioning "no"/negative variation of this template.