Template:Protip/doc: Difference between revisions

From Vintage Story Wiki
No edit summary
(Marked this version for translation)
Line 1: Line 1:
<languages /><translate>
<languages /><translate>


== Usage ==
== Usage == <!--T:1-->


</translate>
</translate>
Line 7: Line 7:
{{Protip
{{Protip
[|Icon=some-file.png]
[|Icon=some-file.png]
|<translate>Your pro tip</translate>
|<translate><!--T:2--> Your pro tip</translate>
}}
}}
</pre>
</pre>
<translate>
<translate>


<!--T:3-->
The optional <code>Icon</code> argument specifies a small icon next to the tip, for added flair!
The optional <code>Icon</code> argument specifies a small icon next to the tip, for added flair!


== Examples ==
== Examples == <!--T:4-->


</translate>
</translate>
Line 20: Line 21:
{{Protip
{{Protip
|Icon=Ore-flint-granite.png
|Icon=Ore-flint-granite.png
|<translate>This rock is full of more, smaller, rocks.</translate>
|<translate><!--T:5--> This rock is full of more, smaller, rocks.</translate>
}}
}}
</pre> <translate>''is rendered as:''</translate>
</pre> <translate><!--T:6--> ''is rendered as:''</translate>
{{Protip
{{Protip
|Icon=Ore-flint-granite.png
|Icon=Ore-flint-granite.png
|<translate>This rock is full of more, smaller, rocks.</translate>
|<translate><!--T:7--> This rock is full of more, smaller, rocks.</translate>
}}
}}


<translate>And without the icon:</translate>
<translate><!--T:8--> And without the icon:</translate>


<pre>
<pre>
{{Protip
{{Protip
|<translate>I like looking at pictures! :(</translate>
|<translate><!--T:9--> I like looking at pictures! :(</translate>
}}
}}
</pre>
</pre>


<translate>''becomes:''</translate>
<translate><!--T:10--> ''becomes:''</translate>


{{tnt|Protip
{{tnt|Protip
|<translate>I like looking at pictures! :(</translate>
|<translate><!--T:11--> I like looking at pictures! :(</translate>
}}
}}

Revision as of 08:50, 30 July 2023

Other languages:

Usage

{{Protip
[|Icon=some-file.png]
|Your pro tip
}}

The optional Icon argument specifies a small icon next to the tip, for added flair!

Examples

{{Protip
|Icon=Ore-flint-granite.png
|This rock is full of more, smaller, rocks.
}}

is rendered as:

Ore-flint-granite.png Protip:
This rock is full of more, smaller, rocks.


And without the icon:

{{Protip
|I like looking at pictures! :(
}}

becomes:


Protip:
I like looking at pictures! :(