]> git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
Create List of translation placeholders
authorSpiKe <leguen.yannick@gmail.com>
Sun, 6 Oct 2019 09:11:28 +0000 (09:11 +0000)
committerSpiKe <leguen.yannick@gmail.com>
Sun, 6 Oct 2019 09:11:28 +0000 (09:11 +0000)
List-of-translation-placeholders.md [new file with mode: 0644]

diff --git a/List-of-translation-placeholders.md b/List-of-translation-placeholders.md
new file mode 100644 (file)
index 0000000..d1d5509
--- /dev/null
@@ -0,0 +1,12 @@
+Variables and placeholders are codes that will be replaced with something else in the final text.
+
+| Code | Replaced with |
+| ------ | ------ |
+| `\n` | New line |
+| `^TT` | Team color name (e.g. "Red"). Will be replaced with one of the strings that has the `TEAM^`, `KEY^`, `GENERATOR^` or `FLAG^` prefix |
+| `^COUNT` | A number, usually with an unit (e.g. "5 seconds") |
+| `%s` | Arbitrary text |
+| `%d` | Whole number |
+| `%.*f` | Floating-point number |
+| `%.1f` | Floating-point number (1 decimal place) |
+| `%.2f` | Floating-point number (2 decimal places) |
\ No newline at end of file