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
Tag: Manual revert
Line 1: Line 1:
<style>
<div style="float:right; clear:right; margin:0 0 1em 1em; width:300px; border:1px solid #444; background:#222; color:#fff; padding:6px; font-size:90%; border-radius:8px;">
/* Basisstijl voor de Mod-infobox */
   <div style="text-align:center; font-weight:bold; font-size:110%; background:#333; color:#fff; padding:6px; border-radius:6px 6px 0 0;">
.mod-infobox {
    {{{title1|Mod}}}
  float:right;  
  </div>
  clear:right;
   {{#if:{{{image1|}}}|<div style="text-align:center; margin:8px 0;">[[File:{{{image1}}}|250px]]<br><span style="font-size:smaller;">{{{caption1|}}}</span></div>}}
  margin:0 0 1em 1em;  
   <table style="width:100%; border-collapse:collapse; color:#fff;">
  width:300px;  
     {{#if:{{{author(s)|}}}|<tr><td style="font-weight:bold;">Author(s)</td><td>{{{author(s)}}}</td></tr>}}
  border:1px solid #888;
     {{#if:{{{release_date|}}}|<tr><td style="font-weight:bold;">Release date</td><td>{{{release_date}}}</td></tr>}}
  background:#f9f9f9;
     {{#if:{{{base_game|}}}|<tr><td style="font-weight:bold;">Base game</td><td>{{{base_game}}}</td></tr>}}
  color:#000;  
     {{#if:{{{sourceport|}}}|<tr><td style="font-weight:bold;">Source port</td><td>{{{sourceport}}}</td></tr>}}
  padding:6px;  
     {{#if:{{{type|}}}|<tr><td style="font-weight:bold;">Type</td><td>{{{type}}}</td></tr>}}
  font-size:90%;  
     {{#if:{{{code_changes|}}}|<tr><td style="font-weight:bold;">Code changes</td><td>{{{code_changes}}}</td></tr>}}
  border-radius:8px;
     {{#if:{{{maps|}}}|<tr><td style="font-weight:bold;">Maps</td><td>{{{maps}}}</td></tr>}}
}
     {{#if:{{{new_graphics|}}}|<tr><td style="font-weight:bold;">New graphics</td><td>{{{new_graphics}}}</td></tr>}}
.mod-infobox .header {
     {{#if:{{{files_included|}}}|<tr><td style="font-weight:bold;">Files included</td><td>{{{files_included}}}</td></tr>}}
   text-align:center;  
     {{#if:{{{awards|}}}|<tr><td style="font-weight:bold;">Awards</td><td>{{{awards}}}</td></tr>}}
  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 */
@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">
  <div class="header">{{{title1|Mod}}}</div>
   {{#if:{{{image1|}}}|
    <div style="text-align:center; margin:8px 0;">
      [[File:{{{image1}}}|250px]]
      <br><span style="font-size:smaller;">{{{caption1|}}}</span>
    </div>
  }}
   <table>
     {{#if:{{{author(s)|}}}|<tr><td>Author(s)</td><td>{{{author(s)}}}</td></tr>}}
     {{#if:{{{release_date|}}}|<tr><td>Release date</td><td>{{{release_date}}}</td></tr>}}
     {{#if:{{{base_game|}}}|<tr><td>Base game</td><td>{{{base_game}}}</td></tr>}}
     {{#if:{{{sourceport|}}}|<tr><td>Source port</td><td>{{{sourceport}}}</td></tr>}}
     {{#if:{{{type|}}}|<tr><td>Type</td><td>{{{type}}}</td></tr>}}
     {{#if:{{{code_changes|}}}|<tr><td>Code changes</td><td>{{{code_changes}}}</td></tr>}}
     {{#if:{{{maps|}}}|<tr><td>Maps</td><td>{{{maps}}}</td></tr>}}
     {{#if:{{{new_graphics|}}}|<tr><td>New graphics</td><td>{{{new_graphics}}}</td></tr>}}
     {{#if:{{{files_included|}}}|<tr><td>Files included</td><td>{{{files_included}}}</td></tr>}}
     {{#if:{{{awards|}}}|<tr><td>Awards</td><td>{{{awards}}}</td></tr>}}
   </table>
   </table>
</div>
</div>

Revision as of 18:52, 29 September 2025

   Mod