Category:Templates/zh: Difference between revisions

From DDraceNetwork
By (talk | contribs)
Created page with "用法:"
Darkh (talk | contribs)
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{{#translation:}}|用法:<pre><nowiki>
{{Note|用法:<pre><nowiki>
</translate>
</translate>
{{Note{{#translation:}}|<translate>This text should be noted.</translate>}}
{{Note|<translate>This text should be noted.</translate>}}
<translate></nowiki></pre>
<translate></nowiki></pre>
注释”标记框——用于强调重要信息。 [[Special:MyLanguage/Template:Note|Template:Note]]
通告”标记框——用于强调重要信息。 [[Special:MyLanguage/Template:Note|Template:Note]]
}}
}}
{{Tip{{#translation:}}|用法: <pre><nowiki>
{{Tip|用法: <pre><nowiki>
</translate>
</translate>
{{Tip{{#translation:}}|<translate>This text should be considered.</translate>}}
{{Tip|<translate>This text should be considered.</translate>}}
<translate></nowiki></pre>
<translate></nowiki></pre>
用于分享有用提示的“提示”标记框。 [[Special:MyLanguage/Template:Tip|Template:Tip]]
“提示”标记框——用于分享有用提示。 [[Special:MyLanguage/Template:Tip|Template:Tip]]
}}
}}
{{Todo{{#translation:}}|用法: <pre><nowiki>
{{Todo|用法: <pre><nowiki>
</translate>
</translate>
{{Todo{{#translation:}}|<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]]
“待办事项”标记框——用于提醒有缺乏信息需要添加。 [[Special:MyLanguage/Template:Todo|Template:Todo]]
}}
}}
{{Warning{{#translation:}}|用法: <pre><nowiki>
{{Warning|用法: <pre><nowiki>
</translate>
</translate>
{{Warning{{#translation:}}|<translate>This text should be heeded.</translate>}}
{{Warning|<translate>This text should be heeded.</translate>}}
<translate></nowiki></pre>
<translate></nowiki></pre>
<span lang="en" dir="ltr" class="mw-content-ltr">A "Warning" box used to report potential danger.</span> [[Special:MyLanguage/Template:Warning|Template:Warning]]
“警告”标记框——用于警示。 [[Special:MyLanguage/Template:Warning|Template:Warning]]
}}
}}




<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Incomplete/Outdated_content"></span>
==Incomplete/Outdated content==
== 未完成或过时内容 ==
</div>


* <code><nowiki>{{Stub{{#translation:}}}}</nowiki></code> [[Special:MyLanguage/Template:Stub|Template:Stub]]
* <code><nowiki>{{Stub}}</nowiki></code> [[Special:MyLanguage/Template:Stub|Template:Stub]]
{{Stub{{#translation:}}}}
{{Stub}}


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="DDNet_related_images"></span>
==DDNet related images==
== DDNet相关图片 ==
</div>


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


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


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


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


{| 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><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">
* 地图方格: <code><nowiki>{{TileLink|{{Tile|game|11}}|Template:TileLink}}</nowiki></code>: {{TileLink|{{Tile|game|11}}|Template:TileLink}}
* Links with image of tile layer attached: <code><nowiki>{{TileLink|{{Tile|game|11}}|Template:TileLink}}</nowiki></code>: {{TileLink|{{Tile|game|11}}|Template:TileLink}}
</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">
* [[Special:MyLanguage/Template:Infobox weapon]]
* [[Special:MyLanguage/Template:Infobox weapon]]
* [[Special:MyLanguage/Template:Infobox mod]]
* [[Special:MyLanguage/Template:Infobox mod]]
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Code_boxes"></span>
== Code boxes ==
== 代码框 ==
</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>


<div lang="en" dir="ltr" class="mw-content-ltr">
* [[Template:ic|行内代码框]]: <code><nowiki>{{ic|code}}</nowiki></code>: {{ic|code}}
* [[Template:ic|inline code]]: <code><nowiki>{{ic|code}}</nowiki></code>: {{ic|code}}
* [[Template:bc|区域代码框]]: <code><nowiki>{{bc|code}}</nowiki></code>:
* [[Template:bc|block code]]: <code><nowiki>{{bc|code}}</nowiki></code>:
{{bc|code}}
{{bc|code}}
* [[Template:hc|block code with header]]: <code><nowiki>{{hc|autoexec.cfg|code}}</nowiki></code>:
* [[Template:hc|有标题的区域代码框]]: <code><nowiki>{{hc|autoexec.cfg|code}}</nowiki></code>:
{{hc|autoexec.cfg|code}}
{{hc|autoexec.cfg|code}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Key_presses"></span>
==Key presses==
==按键表示==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* <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}} For usage see https://www.mediawiki.org/wiki/Template:Key_press
</div>

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


未完成或过时内容

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

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

按键表示

Pages in category "Templates/zh"

The following 7 pages are in this category, out of 7 total.