6,514
回編集
細 (0を忘れてた……(汗) |
細 (使用例をテンプレート:使用例に置き換え) |
||
1行目: | 1行目: | ||
<noinclude>このテンプレートは、1st, 2nd, 3rd, 4th, ... などの序数を表示します。 | <noinclude> | ||
このテンプレートは、1st, 2nd, 3rd, 4th, ... などの序数を表示します。 | |||
== 使い方 == | == 使い方 == | ||
7行目: | 8行目: | ||
== 使用例 == | == 使用例 == | ||
{| | {{使用例 | ||
| code = | |||
* {{序数|1}} | * {{序数|1}} | ||
* {{序数|2}} | * {{序数|2}} | ||
20行目: | 19行目: | ||
* {{序数|31}} | * {{序数|31}} | ||
* {{序数|関係ない文字列}} | * {{序数|関係ない文字列}} | ||
< | | code-pre = <pre> | ||
* {{序数|1}} | * {{序数|1}} | ||
* {{序数|2}} | * {{序数|2}} | ||
31行目: | 29行目: | ||
* {{序数|31}} | * {{序数|31}} | ||
* {{序数|関係ない文字列}} | * {{序数|関係ない文字列}} | ||
</pre>}} | |||
[[カテゴリ:メタテンプレート|しよすう]] | |||
</noinclude><includeonly>{{{1}}}{{#switch: {{#expr: {{{1}}} mod 100}} | 11 | 12 | 13 = th | {{#switch: {{#expr: {{{1}}} mod 10}} | 1 = st | 2 = nd | 3 = rd | 4 | 5 | 6 | 7 | 8 | 9 | 0 = th | }} }}</includeonly> | </noinclude><includeonly>{{{1}}}{{#switch: {{#expr: {{{1}}} mod 100}} | 11 | 12 | 13 = th | {{#switch: {{#expr: {{{1}}} mod 10}} | 1 = st | 2 = nd | 3 = rd | 4 | 5 | 6 | 7 | 8 | 9 | 0 = th | }} }}</includeonly> |