Template:Protip: Difference between revisions

From Vintage Story Wiki
No edit summary
m (formatting and include only tags)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|
<includeonly>{|
|{{#if:{{{File|}}}|[[File:{{{File}}}|100px]]}}
|{{#if:{{{Icon|}}}|[[File:{{{Icon}}}|100px]]}}
|<h5>Protip:</h5>
|<b>Protip:</b>
{{#tag:pre|{{{1}}}}}
{{#tag:pre|{{{1|}}}}}
|}
|}</includeonly><noinclude>
== Usage ==
<pre>
{{Protip
[|Icon=some-file.png]
|Your pro tip
}}
</pre>
The optional <code>Icon</code> argument specifies a small icon next to the tip, for added flair!
== Examples ==
<pre>
{{Protip
|Icon=Ore-flint-granite.png
|This rock is full of more, smaller, rocks.
}}
</pre> is rendered as
{{Protip
|Icon=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 14:31, 10 May 2020

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