Template:Protip: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 2: Line 2:
|{{#if:{{{File|}}}|[[File:{{{File}}}|100px]]}}
|{{#if:{{{File|}}}|[[File:{{{File}}}|100px]]}}
|<h5>Protip:</h5>
|<h5>Protip:</h5>
{{#tag:pre|{{{1}}}}}
{{#tag:pre|{{{1|}}}}}
|}
|}
<noinclude>
== Usage ==
<pre>
{{Protip
[|File=some-file.png]
|Your pro tip
}}
</pre>
The optional <code>File</code> argument specifies a small icon next to the tip, for added flair!
== Examples ==
<pre>
{{Protip
|File=Ore-flint-granite.png
|This rock is full of more, smaller, rocks.
}}
</pre> is rendered as
{{Protip
|File=Ore-flint-granite.png
|This rock is full of more, smaller, rocks.
}}
And without the icon:
<pre>
{{Protip
|I like looking at pictures! :(
}}
</pre>
becomes
{{Protip
|I like looking at pictures! :(
}}
</noinclude>

Revision as of 19:55, 31 October 2019

Protip:


Usage

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

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

Examples

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

is rendered as

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! :(