Template:Icon: Difference between revisions

From Beekeepers
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
<div class="icon-container" style="display:inline-block; text-align:center; vertical-align:top;">
<div class="icon-container" style="display:inline-block; text-align:center; vertical-align:top;">


    <!-- Image -->
[[File:{{{1}}}.png|frameless|center|125px|link={{{1}}}]]
    | {{#if: {{{2|}}}
[[{{{caption}}}|{{{2}}}]]
        | [[File:{{{1}}}.png|frameless|center|125px|link={{{2}}}]]
 
        | [[File:{{{1}}}.png|frameless|center|125px|link={{{1}}}]]
</div>
    }}


    <!-- Caption -->
    <div class="icon-caption">
        {{#ifeq: {{{3|}}} | true
            | {{#if: {{{2|}}}
                | [[{{{2}}}]]
                | [[{{{1}}}]]
            }}
            |
        }}
    </div>
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
== Parameters ==
{| class="wikitable"
|-
! Parameter
! Function
|-
| <pre>1=</pre>
| Image of the Icon.
|-
| <pre>2=</pre>
| Link for the image.
|-
| <pre>caption=</pre>
| Caption for the Icon.
|}
== Exmaple ==
<pre>
{{Icon|BoringBee|Boring Bee|caption=Boring Bee}}
</pre>
{{Icon|BoringBee|Boring Bee|caption=Boring Bee}}

Revision as of 13:18, 22 November 2026



Parameters

Parameter Function
1=
Image of the Icon.
2=
Link for the image.
caption=
Caption for the Icon.

Exmaple

{{Icon|BoringBee|Boring Bee|caption=Boring Bee}}