User:Arti/Template:Container: Difference between revisions

From Resonite Wiki
No edit summary
add examples and fix the template
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="
<onlyinclude><div style="
   /* Style for info box div */
   /* Style for info box div */
   position: relative;
   display: flex;
  align-items: center;
  gap: 16px;


   color: var(--color-base--emphasized);
   color: var(--color-base--emphasized);
Line 18: Line 20:
   border-radius: 12px;
   border-radius: 12px;


">{{#if: {{{3|}}}|<span style="
"> {{#if: {{{3|}}} | [[File:{{{3|}}}|40px|Warning|link=]] |}}
  /* Style for icon span*/
{{#if: {{{1|}}} | {{{1}}} | Example Text}}</div>
  margin-right: 16px;
</onlyinclude>
  float: left;


">[[File:{{{3|}}}|40px|Warning|link=]]</span>|}}{{#if: {{{1|}}} | {{{1}}} | Example Text}}</div>
== Examples ==
 
{{User:Arti/Template:Container
  |This is a note.
  |rgba(96.9, 209.1, 249.9, 0.25) /* Hero Cyan */
  |PotatoBadge.png}}
{{User:Arti/Template:Container
  |This is a note with a large amount of text to test how it overflows. {{Lorem ipsum}}
  |rgba(96.9, 209.1, 249.9, 0.25) /* Hero Cyan */
  |PotatoBadge.png}}

Latest revision as of 06:29, 18 January 2024

Example Text


Examples

Warning This is a note.
Warning This is a note with a large amount of text to test how it overflows. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.