User:Sana/Sandbox/Template:Sana template: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="center"  
<includeonly><div class="center"  
style="
style="
{{#if: {{{bgcol|}}} | background: {{{bgcol}}}; | }}
background-color: {{#if: {{{bgcol|}}} | {{{bgcol}}} | #d5ceb0 }};
{{#if: {{{linecol|}}} | border: 4px solid {{{linecol}}}; | }}
{{#if: {{{linecol|}}} | border: 2px solid {{{linecol}}}; | }}
max-width: {{#if: {{{mini|}}} | 50em | 90% }};
max-width: {{#if: {{{mini|}}} | 50em | 75% }};
font-size: 100%;
padding: 0.8em;
padding: 0.8em;
font-size: 80%;
margin: auto;
{{{css|}}}
{{{css|}}}
">
">
<div>
<div class="flex-container" style="text-align: left">
{{#if: {{{image|}}} |  
{{#if: {{{image|}}} | [[File:{{{image}}}|{{#if: {{{imagesize|}}} | {{{imagesize}}} | {{#if: {{{mini|}}} | 32px | 64px }} }} | left]]
  [[File:{{{image}}}|{{#if: {{{imagesize|}}} | {{{imagesize}}} | {{#if: {{{mini|}}} | 16px | 32px]]
}}
}}
</div><div class="templatetext">
<div class="templatetext">
{{#if: {{{title|}}} | <big>'''{{{title}}}'''</big> }}
{{#if: {{{title|}}} | <big>'''{{{title}}}'''</big>}}
 
{{#if: {{{text|}}} | {{{text}}} }}
{{#if: {{{text|}}} | {{{text}}} }}
</div>
</div></div>
</div></div>
</includeonly>
</includeonly>
<noinclude>{{doc}}</noinclude>
<noinclude>{{User:Sana/Sandbox/Template:Sana_template/doc}}</noinclude>

Revision as of 10:13, 6 August 2022

Default

This is a normal message box

With a bit of extra descriptive text


Customized

Grid Copper anvil.png

Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sed lectus sodales tellus feugiat blandit non nec risus. Phasellus maximus imperdiet mauris, quis bibendum purus pulvinar a.