Khác biệt giữa bản sửa đổi của “Bản mẫu:TranslateTable/doc”

Từ Touhou Wiki - Việt Nam
Bước tới điều hướng Bước tới tìm kiếm
(Tạo trang mới với nội dung “<noinclude>{{Documentation subpage}}</noinclude> This template served as a translation table template. ==Usage== Please follow the code below in order to…”)
 
n (Footer)
 
Dòng 17: Dòng 17:
| trans      =Translated text
| trans      =Translated text
}}
}}
{{TranslateTable/Footer}}</pre>
{{Footer}}</pre>


==Parameters==
==Parameters==
Dòng 29: Dòng 29:
| trans  =Example text
| trans  =Example text
}}
}}
{{TranslateTable/Footer}}
{{Footer}}
</pre>
</pre>
:Output:
:Output:
Dòng 37: Dòng 37:
| trans  =Example text
| trans  =Example text
}}
}}
{{TranslateTable/Footer}}
{{Footer}}


:;<code>blockquote</code>
:;<code>blockquote</code>
Dòng 47: Dòng 47:
| trans  =Example text
| trans  =Example text
}}
}}
{{TranslateTable/Footer}}
{{Footer}}
</pre>
</pre>
:Output:
:Output:
Dòng 55: Dòng 55:
| trans  =Example text
| trans  =Example text
}}
}}
{{TranslateTable/Footer}}
{{Footer}}


:;<code>colspan</code>
:;<code>colspan</code>
Dòng 70: Dòng 70:
| trans  =Colspan above.
| trans  =Colspan above.
}}
}}
{{TranslateTable/Footer}}
{{Footer}}
</pre>
</pre>
:Output:
:Output:
Dòng 83: Dòng 83:
| trans  =Colspan above.
| trans  =Colspan above.
}}
}}
{{TranslateTable/Footer}}
{{Footer}}


:;<code>right</code>
:;<code>right</code>
Dòng 93: Dòng 93:
| trans  =Example text
| trans  =Example text
}}
}}
{{TranslateTable/Footer}}
{{Footer}}
</pre>
</pre>
:Output:
:Output:
Dòng 101: Dòng 101:
| trans  =Example text
| trans  =Example text
}}
}}
{{TranslateTable/Footer}}
{{Footer}}


:;<code>big</code>
:;<code>big</code>
Dòng 111: Dòng 111:
| trans  =Example text
| trans  =Example text
}}
}}
{{TranslateTable/Footer}}
{{Footer}}
</pre>
</pre>
:Output:
:Output:
Dòng 119: Dòng 119:
| trans  =Example text
| trans  =Example text
}}
}}
{{TranslateTable/Footer}}<includeonly>
{{Footer}}<includeonly>
<!--PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS.-->
<!--PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS.-->
[[Category:Table templates|{{PAGENAME}}]]
[[Category:Table templates|{{PAGENAME}}]]

Bản mới nhất lúc 16:23, ngày 5 tháng 6 năm 2018

Bản mẫu:Documentation subpage This template served as a translation table template.

Usage

Please follow the code below in order to use it.

{{TranslateTable/Header}}
 - without parameters
{{TranslateTable|{{{1}}}
| nativelang =Original native language code (ie: ja, zh-cn) (Optional, default as ja)
|Original native language text
|Translated text
}}
 - with parameters
{{TranslateTable|{{{1}}}
| nativelang =Original native language code (ie: ja, zh-cn) (Optional, default as ja)
| native     =Original native language text
| trans      =Translated text
}}
{{Footer}}

Parameters

Uses for {{{1}}} are:

h1

If the TranslateTable serves as a title, you can insert this to mark the translation as a title or header of the translation.

Example:
{{TranslateTable/Header}}
{{TranslateTable|h1
| native =例テキスト
| trans  =Example text
}}
{{Footer}}
Output:
例テキスト Example text
blockquote

Adds a blockquote to the table.

Example:
{{TranslateTable/Header}}
{{TranslateTable|blockquote
| native =例テキスト
| trans  =Example text
}}
{{Footer}}
Output:

例テキスト

Example text

colspan

It is not possible to add any text with this one. It should be put between two paragraphs.

Example:
{{TranslateTable/Header}}
{{TranslateTable
| native =ここで下のコルスパン
| trans  =Colspan under here.
}}
{{TranslateTable|colspan}}
{{TranslateTable
| native =ここで上記のコルスパン
| trans  =Colspan above.
}}
{{Footer}}
Output:
ここで下のコルスパン Colspan under here.
ここで上記のコルスパン Colspan above.
right

Aligns the text at the right.

Example:
{{TranslateTable/Header}}
{{TranslateTable|right
| native =例テキスト
| trans  =Example text
}}
{{Footer}}
Output:
例テキスト Example text
big

To make the text bigger.

Example:
{{TranslateTable/Header}}
{{TranslateTable|big
| native =例テキスト
| trans  =Example text
}}
{{Footer}}
Output:
例テキスト Example text