Template:ImageText: Difference between revisions

From UO Icebound
Jump to navigation Jump to search
Created page with "<includeonly><div class="bg3wiki-imagetext" style="display: inline-table; margin: 5px;"> <div class="bg3wiki-imagetext-image" style="display: flex; justify-content: center; align-items: center; width: {{{w|100}}}px; height: {{{h|100}}}px;" >[[File:{{trim|{{{1}}}}}|{{{w|100}}}x{{{h|100}}}px|{{trim|{{{2}}}}}|link={{{link|}}}]]</div> <div class="bg3wiki-imagetext-text" style="width: {{{w|100}}}px; text-align: center; {{#if: {{{font size|}}} | font-size: {{{font size}}}; }}"..."
 
Blanked the page
Tag: Blanking
 
Line 1: Line 1:
<includeonly><div class="bg3wiki-imagetext" style="display: inline-table; margin: 5px;">
<div class="bg3wiki-imagetext-image" style="display: flex; justify-content: center; align-items: center; width: {{{w|100}}}px; height: {{{h|100}}}px;"
>[[File:{{trim|{{{1}}}}}|{{{w|100}}}x{{{h|100}}}px|{{trim|{{{2}}}}}|link={{{link|}}}]]</div>
<div class="bg3wiki-imagetext-text" style="width: {{{w|100}}}px; text-align: center; {{#if: {{{font size|}}} | font-size: {{{font size}}}; }}"
>{{#if: {{{link|}}} | [[{{{link}}}|{{trim|{{{2}}}}}]] | {{trim|{{{2}}}}} }}</div>
</div></includeonly><noinclude>
This template allows you to add images on top of a piece of text.


The element will be an inline block, meaning several can appear in one line.  You can give them all a specific width and height to get a nice consistent layout.
----

Latest revision as of 21:27, 18 October 2024