Template:Protip: Difference between revisions

From Vintage Story Wiki
m (formatting and include only tags)
(Add traslatebale "Protip:" text (Protip_lang))
Line 1: Line 1:
<includeonly>{|
<includeonly>{|
|{{#if:{{{Icon|}}}|[[File:{{{Icon}}}|100px]]}}
|{{#if:{{{Icon|}}}|[[File:{{{Icon}}}|100px]]}}
|<b>Protip:</b>
|<b>{{#if: {{{Protip_lang|}}} | {{{Protip_lang}}} | Protip:}}</b>
{{#tag:pre|{{{1|}}}}}
{{#tag:pre|{{{1|}}}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>

Revision as of 17:48, 8 August 2022

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