Category:Templates/zh: Difference between revisions
Created page with "手枪" |
Created page with "锤子" Tags: mobile web edit mobile edit |
||
Line 75: | Line 75: | ||
| [[Special:MyLanguage/Template:Laser]] | | [[Special:MyLanguage/Template:Laser]] | ||
|- | |- | ||
| <code | | <code><nowiki>{{Ninja|武士刀}}</nowiki></code> | ||
| {{Ninja|<span lang="en" dir="ltr" class="mw-content-ltr">ninja</span>}} | | {{Ninja|<span lang="en" dir="ltr" class="mw-content-ltr">ninja</span>}} | ||
| [[Special:MyLanguage/Template:Ninja]] | | [[Special:MyLanguage/Template:Ninja]] |
Revision as of 19:27, 27 May 2023
模板(英語:Templates)有助於使頁面布局更清晰、更易讀。
標記框
為便於翻譯,請僅標記標記框中的文本以進行翻譯。
通告: 用法:
</translate> {{Note|<translate>This text should be noted.</translate>}} <translate>
「通告」標記框——用於強調重要信息。 Template:Note
提示: 用法:
</translate> {{Tip|<translate>This text should be considered.</translate>}} <translate>
「提示」標記框——用於分享有用提示。 Template:Tip
待辦: 用法:
</translate> {{Todo|<translate>The described action to modify the wiki should be done later on.</translate>}} <translate>
「待辦事項」標記框——用於提醒有缺乏信息需要添加。 Template:Todo
警告: 用法:
</translate> {{Warning|<translate>This text should be heeded.</translate>}} <translate>
「警告」標記框——用於警示。 Template:Warning
未完成或過時內容
{{Stub}}
Template:Stub
DDNet相關圖片
- 物理圖層:
{{Tile|game|2}}
: 見Template:Tile以了解用法。
- 遊戲:code>{{Game.png|Ninja dash 2}}: 見Template:Game.png以了解用法。
- 表情:
{{Emote|hearts}}
: Template:Emote
- Link + Image for weapons (text is customizable):
Basic usage | Result | Template link for more info |
---|---|---|
{{Hammer|锤子}}
|
錘子 | Special:MyLanguage/Template:Hammer |
{{Pistol|手枪}}
|
手槍 | Special:MyLanguage/Template:Pistol |
{{Shotgun|霰弹枪}}
|
霰彈槍 | Special:MyLanguage/Template:Shotgun |
{{Grenade|榴弹枪}}
|
榴彈槍 | Special:MyLanguage/Template:Grenade |
{{Laser|激光}}
|
雷射 | Special:MyLanguage/Template:Laser |
{{Ninja|武士刀}}
|
Ninja | Special:MyLanguage/Template:Ninja |
- Links with image of tile layer attached:
{{TileLink|{{Tile|game|11}}|Template:TileLink}}
: Template:TileLink
Infoboxes
Code boxes
Apart from the normal
<code>inline code formatting</code>
and<pre> multiline code boxes. </pre>We have some other nice code boxes:
- inline code:
{{ic|code}}
:code
- block code:
{{bc|code}}
:
code
- block code with header:
{{hc|autoexec.cfg|code}}
:
autoexec.cfg
code
Key presses
{{key press|A|space}}
→ A+space For usage see https://www.mediawiki.org/wiki/Template:Key_press
Pages in category "Templates/zh"
The following 7 pages are in this category, out of 7 total.