Difference between revisions of "Template:I18N-yes"

From The DarkMod Wiki
Jump to navigationJump to search
m (fixup)
Line 52: Line 52:
</noinclude><includeonly>align="center" style="background:{{{bg|#20d020}}}"|<span style="color: {{{fg|#f0f0f0}}}">{{{text|{{{1}}}|Y}}}</span></includeonly>
</noinclude><includeonly>align="center" style="background:{{{bg|#20d020}}}"|<span style="color: {{{fg|#f0f0f0}}}">{{{text|Y}}}</span></includeonly>

Revision as of 11:16, 9 November 2012


This template adds a colored table cell with some text. The two variants "yes" and "no" use red and green and "Y" and "N" as text.

 !A Special Delivery

Here is how that looks:

A Special Delivery Y No No


This template takes the following parameters:

Name Example Description
text {{I18N-yn|text=Yes}} Optional. The text to display. If omitted, "Y" is shown.
bg {{I18N-yn|bg=#404040|text=Warning!}} Optional. The background color. If omitted, #20d020 (green) is used
fg {{I18N-yn|fg=#ff3030|text=Warning!}} Optional. The foreground (or text) color. If omitted, #f0f0f0 (off-white) is used.