Difference between revisions of "Template:Harem-Heroes-Gallery"

From Hgames Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<div style="display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding: 10px; border: 1px solid #ccc; border-radius: 8px; background-color: #f9f9f9; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);">
+
<div style="display: flex; flex-wrap: nowrap; overflow-x: auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #ccc; border-radius: 8px; background-color: #f9f9f9; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);">
   {{#if:{{{image1|}}}|<div style="flex: 0 0 auto; width: 500px; box-sizing: border-box; text-align: center;">
+
   {{#if:{{{image1|}}}|<div style="flex: 0 0 auto; max-width: 500px; max-height: 500px; box-sizing: border-box; text-align: center;">
     [[File:{{{image1}}}|center]]
+
     [[File:{{{image1}}}|center|frameless|max-width=500px|max-height=500px]]
 
     <div style="margin-top: 5px; font-size: 0.9em;">{{{caption1|}}}</div>
 
     <div style="margin-top: 5px; font-size: 0.9em;">{{{caption1|}}}</div>
 
   </div>}}
 
   </div>}}
   {{#if:{{{image2|}}}|<div style="flex: 0 0 auto; max-width: 500px; box-sizing: border-box; text-align: center;">
+
   {{#if:{{{image2|}}}|<div style="flex: 0 0 auto; max-width: 500px; max-height: 500px; box-sizing: border-box; text-align: center;">
     [[File:{{{image2}}}|center]]
+
     [[File:{{{image2}}}|center|frameless|max-width=500px|max-height=500px]]
 
     <div style="margin-top: 5px; font-size: 0.9em;">{{{caption2|}}}</div>
 
     <div style="margin-top: 5px; font-size: 0.9em;">{{{caption2|}}}</div>
 
   </div>}}
 
   </div>}}
   {{#if:{{{image3|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
+
   <!-- Repeat for additional images -->
  [[File:{{{image3}}}|center]]
+
   {{#if:{{{image3|}}}|<div style="flex: 0 0 auto; max-width: 500px; max-height: 500px; box-sizing: border-box; text-align: center;">[[File:{{{image3}}}|center|frameless|max-width=500px|max-height=500px]]<div style="margin-top: 5px; font-size: 0.9em;">{{{caption3|}}}</div></div>}}
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption3|}}}</div></div>}}
+
   {{#if:{{{image4|}}}|<div style="flex: 0 0 auto; max-width: 500px; max-height: 500px; box-sizing: border-box; text-align: center;">[[File:{{{image4}}}|center|frameless|max-width=500px|max-height=500px]]<div style="margin-top: 5px; font-size: 0.9em;">{{{caption4|}}}</div></div>}}
   {{#if:{{{image4|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
+
   {{#if:{{{image5|}}}|<div style="flex: 0 0 auto; max-width: 500px; max-height: 500px; box-sizing: border-box; text-align: center;">[[File:{{{image5}}}|center|frameless|max-width=500px|max-height=500px]]<div style="margin-top: 5px; font-size: 0.9em;">{{{caption5|}}}</div></div>}}
  [[File:{{{image4}}}|center]]
+
   <!-- ... up to image6 or more ... -->
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption4|}}}</div></div>}}
 
  {{#if:{{{image5|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
 
  [[File:{{{image5}}}|center]]
 
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption5|}}}</div></div>}}
 
   {{#if:{{{image6|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
 
  [[File:{{{image6}}}|center]]
 
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption6|}}}</div></div>}}
 
  {{#if:{{{image7|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
 
  [[File:{{{image7}}}|center]]
 
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption7|}}}</div></div>}}
 
  {{#if:{{{image8|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
 
  [[File:{{{image8}}}|center]]
 
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption8|}}}</div></div>}}
 
   {{#if:{{{image9|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
 
  [[File:{{{image9}}}|center]]
 
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption9|}}}</div></div>}}
 
  {{#if:{{{image10|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
 
  [[File:{{{image10}}}|center]]
 
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption10|}}}</div></div>}}
 
  {{#if:{{{image11|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
 
  [[File:{{{image11}}}|center]]
 
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption11|}}}</div></div>}}
 
   {{#if:{{{image12|}}}|<div style="flex: 0 0 auto; max-height: 500px; max-width: 500px; box-sizing: border-box; text-align: center;">
 
  [[File:{{{image12}}}|center]]
 
  <div style="margin-top: 5px; font-size: 0.9em;">{{{caption12|}}}</div></div>}}
 
 
</div>
 
</div>

Revision as of 08:02, 15 December 2023