Category:Templates/zh: Difference between revisions

From DDraceNetwork
EdEnd (talk | contribs)
No edit summary
FuzzyBot (talk | contribs)
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>
“待办事项”标记框——用于提醒有缺乏信息需要添加。 [[Special:MyLanguage/Template:Todo|Template:Todo]]
<span class="mw-translate-fuzzy">“待办事项”标记框——用于提醒有缺乏信息需要添加。</span> [[Special:MyLanguage/Template:Todo|Template:Todo]]
}}
}}
{{Warning|用法: <pre><nowiki>
{{Warning|用法: <pre><nowiki>
Line 32: Line 36:




<span id="Incomplete/Outdated_content"></span>
<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 lang="en" dir="ltr" class="mw-content-ltr">
<div class="mw-translate-fuzzy">
* Images from physics layers: <code><nowiki>{{Tile|game|2}}</nowiki></code>: {{Tile|game|2}} See [[Template:Tile]] for usage
* 物理图层:<code><nowiki>{{Tile|game|2}}</nowiki></code>: {{Tile|game|2}}[[Template:Tile]]以了解用法。
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div class="mw-translate-fuzzy">
* Layers from game.png: <code><nowiki>{{Game.png|Ninja dash 2}}</nowiki></code>: {{Game.png|Ninja dash 2}} See [[Template:Game.png]] for usage
* 游戏:code><nowiki>{{Game.png|Ninja dash 2}}</nowiki></code>: {{Game.png|Ninja dash 2}}[[Template:Game.png]]以了解用法。
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div class="mw-translate-fuzzy">
* Images from emoticons.png: <code><nowiki>{{Emote|hearts}}</nowiki></code>: {{Emote|hearts}} [[Template:Emote]]
* 表情: <code><nowiki>{{Emote|hearts}}</nowiki></code>: {{Emote|hearts}} [[Template:Emote]]
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div class="mw-translate-fuzzy">
* Link + Image for weapons (text is customizable):
* 武器的链接+图片(文字可以自定义):
</div>
</div>


{| class="wikitable"
{| class="wikitable"
|-
|-
! Basic usage !! Result !! Template link for more info
!Basic usage!!Result!!Template link for more info
|-
|-
| <code><span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>{{Hammer|hammer}}</nowiki></span></code>
|<code><nowiki>{{Hammer|锤子}}</nowiki></code>
| {{Hammer|<span lang="en" dir="ltr" class="mw-content-ltr">hammer</span>}}
|{{Hammer|锤子}}
| [[Special:MyLanguage/Template:Hammer]]
|[[Special:MyLanguage/Template:Hammer]]
|-
|-
| <code><span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>{{Pistol|pistol}}</nowiki></span></code>
|<code><nowiki>{{Pistol|手枪}}</nowiki></code>
| {{Pistol|<span lang="en" dir="ltr" class="mw-content-ltr">pistol</span>}}
|{{Pistol|手枪}}
| [[Special:MyLanguage/Template:Pistol]]
|[[Special:MyLanguage/Template:Pistol]]
|-
|-
| <code><span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>{{Shotgun|shotgun}}</nowiki></span></code>
|<code><nowiki>{{Shotgun|霰弹枪}}</nowiki></code>
| {{Shotgun|<span lang="en" dir="ltr" class="mw-content-ltr">shotgun</span>}}
|{{Shotgun|霰弹枪}}
| [[Special:MyLanguage/Template:Shotgun]]
|[[Special:MyLanguage/Template:Shotgun]]
|-
|-
| <code><span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>{{Grenade|grenade}}</nowiki></span></code>
|<code><nowiki>{{Grenade|榴弹枪}}</nowiki></code>
| {{Grenade|<span lang="en" dir="ltr" class="mw-content-ltr">grenade</span>}}
|{{Grenade|榴弹枪}}
| [[Special:MyLanguage/Template:Grenade]]
|[[Special:MyLanguage/Template:Grenade]]
|-
|-
| <code><span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>{{Laser|laser}}</nowiki></span></code>
|<code><nowiki>{{Laser|激光}}</nowiki></code>
| {{Laser|<span lang="en" dir="ltr" class="mw-content-ltr">laser</span>}}
|{{Laser|激光}}
| [[Special:MyLanguage/Template:Laser]]
|[[Special:MyLanguage/Template:Laser]]
|-
|-
| <code><span lang="en" dir="ltr" class="mw-content-ltr"><nowiki>{{Ninja|ninja}}</nowiki></span></code>
|<code><nowiki>{{Ninja|武士刀}}</nowiki></code>
| {{Ninja|<span lang="en" dir="ltr" class="mw-content-ltr">ninja</span>}}
|{{Ninja|武士刀}}
| [[Special:MyLanguage/Template:Ninja]]
|[[Special:MyLanguage/Template:Ninja]]
|}
|}
<div lang="en" dir="ltr" class="mw-content-ltr">
 
* Links with image of tile layer attached: <code><nowiki>{{TileLink|{{Tile|game|11}}|Template:TileLink}}</nowiki></code>: {{TileLink|{{Tile|game|11}}|Template:TileLink}}
<div class="mw-translate-fuzzy">
* 地图方格: <code><nowiki>{{TileLink|{{Tile|game|11}}|Template:TileLink}}</nowiki></code>: {{TileLink|{{Tile|game|11}}|Template:TileLink}}
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Infoboxes"></span>
==Infoboxes==
==信息框==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<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>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Code_boxes"></span>
== Code boxes ==
<div class="mw-translate-fuzzy">
== 代码框 ==
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
除了普通的<code><nowiki><code>行内代码框格式</code></nowiki></code> <pre>
Apart from the normal <code><nowiki><code>inline code formatting</code></nowiki></code> and<pre>
<pre>
<pre>
multiline
多行
code
代码
boxes.
&lt;/pre>
&lt;/pre>
</pre>We have some other nice code boxes:
</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">
* [[Template:ic|inline code]]: <code><nowiki>{{ic|code}}</nowiki></code>: {{ic|code}}
==Tooltip==
* [[Template:bc|block code]]: <code><nowiki>{{bc|code}}</nowiki></code>:
</div>
{{bc|code}}
 
* [[Template:hc|block code with header]]: <code><nowiki>{{hc|autoexec.cfg|code}}</nowiki></code>:
<div lang="en" dir="ltr" class="mw-content-ltr">
{{hc|autoexec.cfg|code}}
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">
==Key presses==
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">
* <code><nowiki>{{key press|A|space}}</nowiki></code> → {{key press|A|space}} For usage see https://www.mediawiki.org/wiki/Template:Key_press
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


未完成或过时内容


此条目仍需进行内容补充,您可以帮助我们编辑和修订以扩充其内容。


DDNet相关图片

  • 物理图层:{{Tile|game|2}}: Template:Tile以了解用法。
  • 武器的链接+图片(文字可以自定义):


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

信息框

代码框

除了普通的<code>行内代码框格式</code>

<pre>
多行
代码
框
</pre>

我们也有许多其他选择:

code
autoexec.cfg
code

按键表示

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.