Template:Mod: Difference between revisions
Template page
More actions
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
< | <style> | ||
/* Basisstijl voor de Mod-infobox */ | |||
.mod-infobox { | |||
float:right; | |||
{{#if:{{{image1|}}}|<div style="text-align:center; margin:8px 0;">[[File:{{{image1}}}|250px]]<br><span style="font-size:smaller;">{{{caption1|}}}</span></div>}} | clear:right; | ||
<table | margin:0 0 1em 1em; | ||
{{#if:{{{author(s)|}}}|<tr><td | width:300px; | ||
{{#if:{{{release_date|}}}|<tr><td | border:1px solid #888; | ||
{{#if:{{{base_game|}}}|<tr><td | background:#f9f9f9; | ||
{{#if:{{{sourceport|}}}|<tr><td | color:#000; | ||
{{#if:{{{type|}}}|<tr><td | font-size:90%; | ||
{{#if:{{{code_changes|}}}|<tr><td | border-radius:8px; | ||
{{#if:{{{maps|}}}|<tr><td | } | ||
{{#if:{{{new_graphics|}}}|<tr><td | .mod-infobox .header { | ||
{{#if:{{{files_included|}}}|<tr><td | text-align:center; | ||
{{#if:{{{awards|}}}|<tr><td | 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:6px 4px; /* iets meer ruimte */ | |||
line-height:1.4; /* regelafstand */ | |||
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 19:15, 29 September 2025
<style> /* 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; 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:6px 4px; /* iets meer ruimte */ line-height:1.4; /* regelafstand */ 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>
Mod