Template:Dicon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<span style="display: inline-block; vertical-align: middle; width: 100px; height: 100px; overflow: hidden; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);"> [[File:Portrait {{{1}}}.png|{{{2}}}|style=width:100%;height:100%;object-fit:cover;]] </span>")
 
No edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="display: inline-block; vertical-align: middle; width: 100px; height: 100px; overflow: hidden; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);">
<includeonly><span style="padding-left:15px;"><span style="display: inline-block; width: {{{3|44px}}}; height: {{{3|44px}}}; position: relative;">
[[File:Portrait {{{1}}}.png|{{{2}}}|style=width:100%;height:100%;object-fit:cover;]]
<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;">
[[File:Portrait {{{1}}}.png|{{{2|64px}}}|style=width:100%;height:100%;object-fit:cover;|link={{{1}}}]]
</span>
</span>
</span>
</span></span></includeonly><noinclude>This template lets you turn Portrait.png into a diamond. The default size is 100px.
Examples:
<pre>{{Dicon|Ketheric Thorm}}</pre>
{{Dicon|Ketheric Thorm}}
<pre>{{Dicon|Boo|40px|30px}}</pre>
{{Dicon|Boo|40px|30px}} Boo will remember that
[[Category:Templates]]
[[Category:Quotation templates]]

Latest revision as of 14:39, 23 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