Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Mod: Difference between revisions

Template page
Wikiadmin (talk | contribs)
No edit summary
Tag: Reverted
Wikiadmin (talk | contribs)
No edit summary
 
(43 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<style>
<div style="float:right; clear:right; margin:0 0 1em 1em; width:320px; border:1px solid #444; background:#222; color:#fff; padding:6px; font-size:90%; border-radius:8px;">
/* Basisstijl voor de Mod-infobox */
.mod-infobox {
  float:right;  
  clear:right;
  margin:0 0 1em 1em;  
  width:300px;  
  border:1px solid #888;
  background:#f9f9f9;
  color:#000;  
  padding:6px;  
  font-size:90%;  
  border-radius:8px;
}
.mod-infobox .header {
  text-align:center;
  font-weight:bold;
  font-size:110%;
  background:#eee;
  color:#000;
  padding:6px;
  border-radius:6px 6px 0 0;
}
.mod-infobox table {
  width:100%;
  border-collapse:collapse;
}
.mod-infobox td {
  padding:4px;
  vertical-align:top;
}
.mod-infobox td:first-child {
  font-weight:bold;
  width:40%;
}


/* 🌙 Donkere modus */
  {{#if:{{{image1|}}}|<div style="text-align:center; margin:8px 0;">[[File:{{{image1}}}|300px]]<br><br><span style="font-size:small; color:cyan;font-style:italic">{{{caption1|}}}</span></div>}}
@media (prefers-color-scheme: dark) {
  .mod-infobox {
    border:1px solid #444;
    background:#222;
    color:#eee;
  }
  .mod-infobox .header {
    background:#333;
    color:#fff;
  }
}
</style>


<div class="mod-infobox">
   <table style="width:100%; border-collapse:separate; border-spacing:0 18px; color:#fff; line-height:1.4;">
   <div class="header">{{{title1|Mod}}}</div>
     {{#if:{{{author(s)|}}}|<tr>
  {{#if:{{{image1|}}}|
      <td style="font-weight:bold;">Author(s)</td>
    <div style="text-align:center; margin:8px 0;">
      <td style="white-space:pre-line;">{{{author(s)}}}</td>
      [[File:{{{image1}}}|250px]]
    </tr>}}
      <br><span style="font-size:smaller;">{{{caption1|}}}</span>
     {{#if:{{{release_date|}}}|<tr>
    </div>
      <td style="font-weight:bold;">Release date</td>
  }}
      <td style="white-space:pre-line;">{{{release_date}}}</td>
  <table>
    </tr>}}
     {{#if:{{{author(s)|}}}|<tr><td>Author(s)</td><td>{{{author(s)}}}</td></tr>}}
     {{#if:{{{base_game|}}}|<tr>
     {{#if:{{{release_date|}}}|<tr><td>Release date</td><td>{{{release_date}}}</td></tr>}}
      <td style="font-weight:bold;">Base game</td>
     {{#if:{{{base_game|}}}|<tr><td>Base game</td><td>{{{base_game}}}</td></tr>}}
      <td style="white-space:pre-line;">{{{base_game}}}</td>
     {{#if:{{{sourceport|}}}|<tr><td>Source port</td><td>{{{sourceport}}}</td></tr>}}
    </tr>}}
     {{#if:{{{type|}}}|<tr><td>Type</td><td>{{{type}}}</td></tr>}}
     {{#if:{{{sourceport|}}}|<tr>
     {{#if:{{{code_changes|}}}|<tr><td>Code changes</td><td>{{{code_changes}}}</td></tr>}}
      <td style="font-weight:bold;">Source port</td>
     {{#if:{{{maps|}}}|<tr><td>Maps</td><td>{{{maps}}}</td></tr>}}
      <td style="white-space:pre-line;">{{{sourceport}}}</td>
     {{#if:{{{new_graphics|}}}|<tr><td>New graphics</td><td>{{{new_graphics}}}</td></tr>}}
    </tr>}}
     {{#if:{{{files_included|}}}|<tr><td>Files included</td><td>{{{files_included}}}</td></tr>}}
     {{#if:{{{type|}}}|<tr>
     {{#if:{{{awards|}}}|<tr><td>Awards</td><td>{{{awards}}}</td></tr>}}
      <td style="font-weight:bold;">Type</td>
      <td style="white-space:pre-line;">{{{type}}}</td>
    </tr>}}
     {{#if:{{{code_changes|}}}|<tr>
      <td style="font-weight:bold;">Code changes</td>
      <td style="white-space:pre-line;">{{{code_changes}}}</td>
    </tr>}}
     {{#if:{{{maps|}}}|<tr>
      <td style="font-weight:bold;">Maps</td>
      <td style="white-space:pre-line;">{{{maps}}}</td>
    </tr>}}
     {{#if:{{{new_graphics|}}}|<tr>
      <td style="font-weight:bold;">New graphics</td>
      <td style="white-space:pre-line;">{{{new_graphics}}}</td>
    </tr>}}
     {{#if:{{{files_included|}}}|<tr>
      <td style="font-weight:bold;">Files included</td>
      <td style="white-space:pre-line;">{{{files_included}}}</td>
    </tr>}}
    {{#if:{{{mods|}}}|<tr>
      <td style="font-weight:bold;">Mods</td>
      <td style="white-space:pre-line;">{{{mods}}}</td>
    </tr>}}
     {{#if:{{{awards|}}}|<tr>
      <td style="font-weight:bold;">Awards</td>
      <td style="white-space:pre-line;">{{{awards}}}</td>
    </tr>}}
   </table>
   </table>
</div>
</div>

Latest revision as of 09:38, 10 October 2025