Template:I18N-no: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
m add |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
|{{I18N-yes}} | |{{I18N-yes}} | ||
|{{I18N-no}} | |{{I18N-no}} | ||
|{{I18N- | |{{I18N-yn|bg=#d02020|text=No}} | ||
|} | |} | ||
</nowiki> | </nowiki> | ||
Line 21: | Line 21: | ||
|{{I18N-yes}} | |{{I18N-yes}} | ||
|{{I18N-no}} | |{{I18N-no}} | ||
|{{I18N- | |{{I18N-yn|bg=#d02020|text=No}} | ||
|} | |} | ||
Line 37: | Line 37: | ||
|- | |- | ||
|text | |text | ||
| <nowiki>{{ | | <nowiki>{{I18N-yn|text=Yes}}</nowiki> | ||
| Optional. The text to display. If omitted, " | | Optional. The text to display. If omitted, "No" is shown. | ||
|- | |- | ||
|bg | |bg | ||
| <nowiki>{{ | | <nowiki>{{I18N-yn|bg=#404040|text=Warning!}}</nowiki> | ||
| Optional. The background color. If omitted, # | | Optional. The background color. If omitted, #202020 (red) is used | ||
|- | |- | ||
|fg | |fg | ||
| <nowiki>{{ | | <nowiki>{{I18N-yn|fg=#ff3030|text=Warning!}}</nowiki> | ||
| Optional. The foreground (or text) color. If omitted, # | | Optional. The foreground (or text) color. If omitted, #f8f8f8 (off-white) is used. | ||
|} | |} | ||
</noinclude><includeonly> | </noinclude><includeonly>align="center" style="background:{{{bg|#d02020}}}"|<span style="color: {{{fg|#f8f8f8}}}; font-size: 80%">{{{text|No}}}</span></includeonly> |
Latest revision as of 11:23, 9 November 2012
Usage
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 |{{I18N-yes}} |{{I18N-no}} |{{I18N-yn|bg=#d02020|text=No}} |}
Here is how that looks:
A Special Delivery | Yes | No | No |
---|
Parameters
This template takes the following parameters:
Name | Example | Description |
---|---|---|
text | {{I18N-yn|text=Yes}} | Optional. The text to display. If omitted, "No" is shown. |
bg | {{I18N-yn|bg=#404040|text=Warning!}} | Optional. The background color. If omitted, #202020 (red) is used |
fg | {{I18N-yn|fg=#ff3030|text=Warning!}} | Optional. The foreground (or text) color. If omitted, #f8f8f8 (off-white) is used.
|