Category:Templates/zh: Difference between revisions
Created page with "用法:" |
No edit summary |
||
(18 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
模板(英语:Templates)有助于使页面布局更清 | 模板(英语:Templates)有助于使页面布局更清晰易读。 | ||
<span id="Eye-catching_boxes"></span> | <span id="Eye-catching_boxes"></span> | ||
Line 6: | Line 6: | ||
为便于翻译,请仅标记标记框中的文本以进行翻译。 | 为便于翻译,请仅标记标记框中的文本以进行翻译。 | ||
{{Note | {{Note|用法:<pre><nowiki> | ||
</translate> | </translate> | ||
{{Note | {{Note|<translate>This text should be noted.</translate>}} | ||
<translate></nowiki></pre> | <translate></nowiki></pre> | ||
“ | “通告”标记框——用于强调重要信息。 [[Special:MyLanguage/Template:Note|Template:Note]] | ||
}} | }} | ||
{{Tip | {{Tip|用法: <pre><nowiki> | ||
</translate> | </translate> | ||
{{Tip | {{Tip|<translate>This text should be considered.</translate>}} | ||
<translate></nowiki></pre> | <translate></nowiki></pre> | ||
用于分享有用提示 | “提示”标记框——用于分享有用提示。 [[Special:MyLanguage/Template:Tip|Template:Tip]] | ||
}} | }} | ||
{{Todo | {{Todo|用法: <pre><nowiki> | ||
</translate> | </translate> | ||
{{Todo | {{Todo|<translate>The described action to modify the wiki should be done later on.</translate>}} | ||
<translate></nowiki></pre> | <translate></nowiki></pre> | ||
“待办事项”标记框——用于提醒有缺乏信息需要添加。 [[Special:MyLanguage/Template:Todo|Template:Todo]] | “待办事项”标记框——用于提醒有缺乏信息需要添加。 [[Special:MyLanguage/Template:Todo|Template:Todo]] | ||
}} | }} | ||
{{Warning | {{Warning|用法: <pre><nowiki> | ||
</translate> | </translate> | ||
{{Warning | {{Warning|<translate>This text should be heeded.</translate>}} | ||
<translate></nowiki></pre> | <translate></nowiki></pre> | ||
“警告”标记框——用于警示。 [[Special:MyLanguage/Template:Warning|Template:Warning]] | |||
}} | }} | ||
< | <span id="Incomplete/Outdated_content"></span> | ||
== | == 未完成或过时内容 == | ||
* <code><nowiki>{{Stub | * <code><nowiki>{{Stub}}</nowiki></code> [[Special:MyLanguage/Template:Stub|Template:Stub]] | ||
{{Stub | {{Stub}} | ||
< | <span id="DDNet_related_images"></span> | ||
==DDNet | == DDNet相关图片 == | ||
* 物理图层:<code><nowiki>{{Tile|game|2}}</nowiki></code>: {{Tile|game|2}}见[[Template:Tile]]以了解用法。 | |||
* | |||
* 游戏:code><nowiki>{{Game.png|Ninja dash 2}}</nowiki></code>: {{Game.png|Ninja dash 2}}见[[Template:Game.png]]以了解用法。 | |||
* | |||
* 表情: <code><nowiki>{{Emote|hearts}}</nowiki></code>: {{Emote|hearts}} [[Template:Emote]] | |||
* | |||
* 武器的链接+图片(文字可以自定义): | |||
* | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 63: | Line 53: | ||
! Basic usage !! Result !! Template link for more info | ! Basic usage !! Result !! Template link for more info | ||
|- | |- | ||
| <code | | <code><nowiki>{{Hammer|锤子}}</nowiki></code> | ||
| {{Hammer| | | {{Hammer|锤子}} | ||
| [[Special:MyLanguage/Template:Hammer]] | | [[Special:MyLanguage/Template:Hammer]] | ||
|- | |- | ||
| <code | | <code><nowiki>{{Pistol|手枪}}</nowiki></code> | ||
| {{Pistol| | | {{Pistol|手枪}} | ||
| [[Special:MyLanguage/Template:Pistol]] | | [[Special:MyLanguage/Template:Pistol]] | ||
|- | |- | ||
| <code | | <code><nowiki>{{Shotgun|霰弹枪}}</nowiki></code> | ||
| {{Shotgun| | | {{Shotgun|霰弹枪}} | ||
| [[Special:MyLanguage/Template:Shotgun]] | | [[Special:MyLanguage/Template:Shotgun]] | ||
|- | |- | ||
| <code | | <code><nowiki>{{Grenade|榴弹枪}}</nowiki></code> | ||
| {{Grenade| | | {{Grenade|榴弹枪}} | ||
| [[Special:MyLanguage/Template:Grenade]] | | [[Special:MyLanguage/Template:Grenade]] | ||
|- | |- | ||
| <code | | <code><nowiki>{{Laser|激光}}</nowiki></code> | ||
| {{Laser| | | {{Laser|激光}} | ||
| [[Special:MyLanguage/Template:Laser]] | | [[Special:MyLanguage/Template:Laser]] | ||
|- | |- | ||
| <code | | <code><nowiki>{{Ninja|武士刀}}</nowiki></code> | ||
| {{Ninja| | | {{Ninja|武士刀}} | ||
| [[Special:MyLanguage/Template:Ninja]] | | [[Special:MyLanguage/Template:Ninja]] | ||
|} | |} | ||
* 地图方格: <code><nowiki>{{TileLink|{{Tile|game|11}}|Template:TileLink}}</nowiki></code>: {{TileLink|{{Tile|game|11}}|Template:TileLink}} | |||
* | |||
< | <span id="Infoboxes"></span> | ||
== | ==信息框== | ||
* [[Special:MyLanguage/Template:Infobox weapon]] | * [[Special:MyLanguage/Template:Infobox weapon]] | ||
* [[Special:MyLanguage/Template:Infobox mod]] | * [[Special:MyLanguage/Template:Infobox mod]] | ||
< | <span id="Code_boxes"></span> | ||
== | == 代码框 == | ||
除了普通的<code><nowiki><code>行内代码框格式</code></nowiki></code> 和<pre> | |||
<pre> | <pre> | ||
多行 | |||
代码 | |||
框 | |||
</pre> | </pre> | ||
</pre> | </pre>我们也有许多其他选择: | ||
* [[Template:ic|行内代码框]]: <code><nowiki>{{ic|code}}</nowiki></code>: {{ic|code}} | |||
* [[Template:ic| | * [[Template:bc|区域代码框]]: <code><nowiki>{{bc|code}}</nowiki></code>: | ||
* [[Template:bc| | |||
{{bc|code}} | {{bc|code}} | ||
* [[Template:hc| | * [[Template:hc|有标题的区域代码框]]: <code><nowiki>{{hc|autoexec.cfg|code}}</nowiki></code>: | ||
{{hc|autoexec.cfg|code}} | {{hc|autoexec.cfg|code}} | ||
< | <span id="Key_presses"></span> | ||
== | ==按键表示== | ||
* <code><nowiki>{{key press|A|space}}</nowiki></code> → {{key press|A|space}}详细用法见 https://www.mediawiki.org/wiki/Template:Key_press | |||
* <code><nowiki>{{key press|A|space}}</nowiki></code> → {{key press|A|space}} | |||
Latest revision as of 09:33, 4 December 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
- 武器的链接+图片(文字可以自定义):
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|武士刀}}
|
武士刀 | Special:MyLanguage/Template:Ninja |
- 地图方格:
{{TileLink|{{Tile|game|11}}|Template:TileLink}}
: Template:TileLink
信息框
代码框
除了普通的<code>行内代码框格式</code>
和
<pre> 多行 代码 框 </pre>
我们也有许多其他选择:
code
- 有标题的区域代码框:
{{hc|autoexec.cfg|code}}
:
autoexec.cfg
code
按键表示
{{key press|A|space}}
→ A+space详细用法见 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.