Template:Protip/doc: Difference between revisions

From Vintage Story Wiki
(Documetation moved from template to {{doc}})
 
No edit summary
Line 1: Line 1:
<languages /><translate>
== Usage ==
== Usage ==
</translate>
<pre>
<pre>
{{tnt|Protip
{{Protip
[|Icon=some-file.png]
[|Icon=some-file.png]
|Your pro tip
|<translate>Your pro tip</translate>
}}
}}
</pre>
</pre>
<translate>
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 ==
</translate>
<pre>
<pre>
{{tnt|Protip
{{Protip
|Icon=Ore-flint-granite.png
|Icon=Ore-flint-granite.png
|This rock is full of more, smaller, rocks.
|<translate>This rock is full of more, smaller, rocks.</translate>
}}
}}
</pre> is rendered as
</pre> <translate>''is rendered as:''</translate>
{{tnt|Protip
{{Protip
|Icon=Ore-flint-granite.png
|Icon=Ore-flint-granite.png
|This rock is full of more, smaller, rocks.
|<translate>This rock is full of more, smaller, rocks.</translate>
}}
}}
And without the icon:
 
<translate>And without the icon:</translate>
 
<pre>
<pre>
{{tnt|Protip
{{Protip
|I like looking at pictures! :(
|<translate>I like looking at pictures! :(</translate>
}}
}}
</pre>
</pre>
becomes
 
<translate>''becomes:''</translate>
 
{{tnt|Protip
{{tnt|Protip
|I like looking at pictures! :(
|<translate>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! :(