Template:Dicon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
<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|64px}}}|style=width:100%;height:100%;object-fit:cover;]]
[[File:Portrait {{{1}}}.png|{{{2|64px}}}|style=width:100%;height:100%;object-fit:cover;|link={{{1}}}]]
</span>
</span>
</span>
</span>

Revision as of 21:59, 22 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