Category:Templates: Difference between revisions

From DDraceNetwork
(no need to select translation in template usage. wiki software does it automatically)
No edit summary
Line 118: Line 118:
<!--T:16-->
<!--T:16-->
* <code><nowiki>{{key press|A|space}}</nowiki></code> → {{key press|A|space}} For usage see 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
==Tooltip== <!--T:16-->
<!--T:17-->
This template adds a description tooltip on a given text : {{tooltip|a text example|a description example}} (Warning, don't add double quotes ('''"''') inside the tooltip).
Usage :
<pre>{{Tooltip|Visible text|Description text}}</pre>
</translate>
</translate>

Revision as of 20:58, 4 May 2024

Templates help making the page more clearly lay out and readable.

Eye-catching boxes

To ease translation, only mark the text within the box for translation.

Note: Usage:
</translate>
{{Note|<translate>This text should be noted.</translate>}}
<translate>

A "Note" box used to emphasize important information. Template:Note

Tip: Usage:
</translate>
{{Tip|<translate>This text should be considered.</translate>}}
<translate>

A "Tip" box used to share helpful hints. Template:Tip

TODO: Usage:
</translate>
{{Todo|<translate>The described action to modify the wiki should be done later on.</translate>}}
<translate>

A "todo" box used to emphasize the lack of information and the need/reminder to work on a section. Template:Todo

Warning: Usage:
</translate>
{{Warning|<translate>This text should be heeded.</translate>}}
<translate>

A "Warning" box used to report potential danger. Template:Warning


Incomplete/Outdated content

This article is a Stub. You can help us by editing and improving it.

DDNet related images

  • Images from physics layers: {{Tile|game|2}}: See Template:Tile for usage
  • Link + Image for weapons (text is customizable):
Basic usage Result Template link for more info
{{Hammer|hammer}} hammer Special:MyLanguage/Template:Hammer
{{Pistol|pistol}} pistol Special:MyLanguage/Template:Pistol
{{Shotgun|shotgun}} shotgun Special:MyLanguage/Template:Shotgun
{{Grenade|grenade}} grenade Special:MyLanguage/Template:Grenade
{{Laser|laser}} laser Special:MyLanguage/Template:Laser
{{Ninja|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:

code
autoexec.cfg
code

Key presses

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}}