Difference between revisions of "Template:Protip"
Jump to navigation
Jump to search
VeryGoodDog (talk | contribs) |
VeryGoodDog (talk | contribs) m (Rename icon) |
||
Line 1: | Line 1: | ||
{| | {| | ||
− | |{{#if:{{{ | + | |{{#if:{{{Icon|}}}|[[File:{{{Icon}}}|100px]]}} |
|<b>Protip:</b> | |<b>Protip:</b> | ||
{{#tag:pre|{{{1|}}}}} | {{#tag:pre|{{{1|}}}}} | ||
Line 9: | Line 9: | ||
<pre> | <pre> | ||
{{Protip | {{Protip | ||
− | [| | + | [|Icon=some-file.png] |
|Your pro tip | |Your pro tip | ||
}} | }} | ||
</pre> | </pre> | ||
− | The optional <code> | + | The optional <code>Icon</code> argument specifies a small icon next to the tip, for added flair! |
== Examples == | == Examples == | ||
<pre> | <pre> | ||
{{Protip | {{Protip | ||
− | | | + | |Icon=Ore-flint-granite.png |
|This rock is full of more, smaller, rocks. | |This rock is full of more, smaller, rocks. | ||
}} | }} | ||
</pre> is rendered as | </pre> is rendered as | ||
{{Protip | {{Protip | ||
− | | | + | |Icon=Ore-flint-granite.png |
|This rock is full of more, smaller, rocks. | |This rock is full of more, smaller, rocks. | ||
}} | }} |
Revision as of 19:59, 31 October 2019
Protip: |
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
![]() |
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! :( |