Category:Templates/zh: Difference between revisions
No edit summary |
Updating to match new version of source page |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> | <languages /> | ||
模板(英语:Templates)有助于使页面布局更清晰 | |||
<div class="mw-translate-fuzzy"> | |||
模板(英语:Templates)有助于使页面布局更清晰易读。 | |||
</div> | |||
<span id="Eye-catching_boxes"></span> | <span id="Eye-catching_boxes"></span> | ||
Line 6: | Line 9: | ||
为便于翻译,请仅标记标记框中的文本以进行翻译。 | 为便于翻译,请仅标记标记框中的文本以进行翻译。 | ||
{{Note|用法:<pre><nowiki> | {{Note|用法:<pre><nowiki> | ||
</translate> | </translate> | ||
Line 22: | Line 26: | ||
{{Todo|<translate>The described action to modify the wiki should be done later on.</translate>}} | {{Todo|<translate>The described action to modify the wiki should be done later on.</translate>}} | ||
<translate></nowiki></pre> | <translate></nowiki></pre> | ||
<span class="mw-translate-fuzzy">“待办事项”标记框——用于提醒有缺乏信息需要添加。</span> [[Special:MyLanguage/Template:Todo|Template:Todo]] | |||
}} | }} | ||
{{Warning|用法: <pre><nowiki> | {{Warning|用法: <pre><nowiki> | ||
Line 32: | Line 36: | ||
<span id=" | <span id="Incomplete_or_Outdated_content"></span> | ||
<div class="mw-translate-fuzzy"> | |||
== 未完成或过时内容 == | == 未完成或过时内容 == | ||
</div> | |||
* <code><nowiki>{{Stub}}</nowiki></code> [[Special:MyLanguage/Template:Stub|Template:Stub]] | |||
*<code><nowiki>{{Stub}}</nowiki></code> [[Special:MyLanguage/Template:Stub|Template:Stub]] | |||
{{Stub}} | {{Stub}} | ||
<span id="DDNet_related_images"></span> | <span id="DDNet_related_images"></span> | ||
== DDNet相关图片 == | == DDNet相关图片 == | ||
<div | <div class="mw-translate-fuzzy"> | ||
* | * 物理图层:<code><nowiki>{{Tile|game|2}}</nowiki></code>: {{Tile|game|2}}见[[Template:Tile]]以了解用法。 | ||
</div> | </div> | ||
<div | <div class="mw-translate-fuzzy"> | ||
* | * 游戏:code><nowiki>{{Game.png|Ninja dash 2}}</nowiki></code>: {{Game.png|Ninja dash 2}}见[[Template:Game.png]]以了解用法。 | ||
</div> | </div> | ||
<div | <div class="mw-translate-fuzzy"> | ||
* | * 表情: <code><nowiki>{{Emote|hearts}}</nowiki></code>: {{Emote|hearts}} [[Template:Emote]] | ||
</div> | </div> | ||
<div | <div class="mw-translate-fuzzy"> | ||
* | * 武器的链接+图片(文字可以自定义): | ||
</div> | </div> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! 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]] | ||
|} | |} | ||
<div | |||
* | <div class="mw-translate-fuzzy"> | ||
* 地图方格: <code><nowiki>{{TileLink|{{Tile|game|11}}|Template:TileLink}}</nowiki></code>: {{TileLink|{{Tile|game|11}}|Template:TileLink}} | |||
</div> | </div> | ||
< | <span id="Infoboxes"></span> | ||
== | ==信息框== | ||
<div | <div class="mw-translate-fuzzy"> | ||
* [[Special:MyLanguage/Template:Infobox weapon]] | * [[Special:MyLanguage/Template:Infobox weapon]] | ||
* [[Special:MyLanguage/Template:Infobox mod]] | * [[Special:MyLanguage/Template:Infobox mod]] | ||
</div> | </div> | ||
< | <span id="Code_boxes"></span> | ||
== | <div class="mw-translate-fuzzy"> | ||
== 代码框 == | |||
</div> | </div> | ||
除了普通的<code><nowiki><code>行内代码框格式</code></nowiki></code> 和<pre> | |||
<pre> | <pre> | ||
多行 | |||
代码 | |||
框 | |||
</pre> | </pre> | ||
</pre> | </pre>我们也有许多其他选择: | ||
<div class="mw-translate-fuzzy"> | |||
* [[Template:ic|行内代码框]]: <code><nowiki>{{ic|code}}</nowiki></code>: {{ic|code}} | |||
* [[Template:bc|区域代码框]]: <code><nowiki>{{bc|code}}</nowiki></code>: | |||
{{bc|code}} | |||
* [[Template:hc|有标题的区域代码框]]: <code><nowiki>{{hc|autoexec.cfg|code}}</nowiki></code>: | |||
{{hc|autoexec.cfg|code}} | |||
</div> | </div> | ||
<span id="Key_presses"></span> | |||
==按键表示== | |||
<div class="mw-translate-fuzzy"> | |||
* <code><nowiki>{{key press|A|space}}</nowiki></code> → {{key press|A|space}}详细用法见 https://www.mediawiki.org/wiki/Template:Key_press | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
==Tooltip== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
This template adds a description tooltip on a given text : {{tooltip| a text example|a description example}}. | |||
</div> | </div> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Warning, don't add double quotes ('''"''') inside the tooltip. | |||
</div> | </div> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Usage : | |||
<pre>{{Tooltip|Visible text|Description text}}</pre> | |||
</div> | </div> |
Latest revision as of 17:10, 16 November 2024
模板(英语: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
待办: {{{1}}}
警告: 用法:
</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>
我们也有许多其他选择:
按键表示
{{key press|A|space}}
→ A+space详细用法见 https://www.mediawiki.org/wiki/Template:Key_press
Tooltip
This template adds a description tooltip on a given text : a text example.
Warning, don't add double quotes (") inside the tooltip.
Usage :
{{Tooltip|Visible text|Description text}}
Pages in category "Templates/zh"
The following 7 pages are in this category, out of 7 total.