Template:Protip: Difference between revisions

From Vintage Story Wiki
no edit summary
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>
Confirmedusers, Bureaucrats, editor, Administrators
1,522

edits