Template:Dicon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Undo revision 198009 by HINK (talk))
Tag: Undo
(4 intermediate revisions by the same user 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="display: inline-block; vertical-align: middle; width: {{{2|100px}}}; height: {{{2|100px}}}; overflow: hidden; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);">
[[File:Portrait {{{1}}}.png|{{{2|100px}}}|style=width:100%;height:100%;object-fit:cover;]]
[[File:Portrait {{{1}}}.png|{{{2|100px}}}|style=width:100%;height:100%;object-fit:cover;]]
</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}}</pre>
 
{{Dicon|Boo|40px}} Boo will remember that

Revision as of 21:35, 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}}

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