Template:Dicon: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="display: inline-block; width: {{{3|70px}}}; height: {{{3|70px}}}; position: relative;">
<includeonly><span style="display: inline-block; width: {{{3|44px}}}; height: {{{3|44px}}}; position: relative;">
<span style="display: block; width: 100%; height: 100%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); border: 3pt solid black; overflow: hidden;">
<span style="display: block; width: 100%; height: 100%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); border: 3pt solid black; overflow: hidden;">
<span style="display: block; width: 100%; height: 100%; transform: rotate(-45deg) translate(-20.5%, -20.5%) ; overflow: show;">
<span style="display: block; width: 100%; height: 100%; transform: rotate(-45deg) translate(-20.5%, -20.5%) ; overflow: show;">
[[File:Portrait {{{1}}}.png|{{{2|100px}}}|style=width:100%;height:100%;object-fit:cover;]]
[[File:Portrait {{{1}}}.png|{{{2|64px}}}|style=width:100%;height:100%;object-fit:cover;]]
</span>
</span>
</span>
</span>
Line 13: Line 13:
{{Dicon|Ketheric Thorm}}
{{Dicon|Ketheric Thorm}}


<pre>{{Dicon|Boo|40px}}</pre>
<pre>{{Dicon|Boo|40px|30px}}</pre>


{{Dicon|Boo|40px}} Boo will remember that
{{Dicon|Boo|40px|30px}} Boo will remember that

Revision as of 22:27, 21 June 2024

This template lets you turn Portrait.png into a diamond. The default size is 100px.

Examples:

{{Dicon|Ketheric Thorm}}

style=width:100%;height:100%;object-fit:cover;

{{Dicon|Boo|40px|30px}}

style=width:100%;height:100%;object-fit:cover; Boo will remember that