|
|
| Line 1: |
Line 1: |
| {{{info|add title=Add a new Game|edit title=Edit Game}}}
| | /* CSS placed here will be applied to all skins */ |
|
| |
|
| {{{for template|Game}}}
| | /* --- TABLE FIXES (Keep these) --- */ |
| <div style="max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #ccc; font-family: sans-serif; color: #333; font-size: 13px;">
| | .fullwidth { width: 100% !important; } |
| | .nowrap { white-space: nowrap; } |
|
| |
|
| <div style="background: #2a4b8d; color: white; padding: 10px 15px;">
| | table.wikitable th a, |
| <span style="font-size: 1.2em; font-weight: bold;">Game Database Entry</span>
| | table.wikitable th.headerSort a { |
| </div>
| | pointer-events: none !important; |
| | cursor: pointer !important; |
| | color: black !important; |
| | text-decoration: none !important; |
| | } |
|
| |
|
| <div style="padding: 15px; background: #f9f9f9; border-bottom: 1px solid #ddd;">
| | /* Hide columns helpers */ |
| <div style="display: flex; gap: 15px; margin-bottom: 10px;">
| | .hide-Genre .col-genre, |
| <div style="flex: 2;">
| | .hide-Platform .col-platform, |
| '''Game Name:'''<br>
| | .hide-Mode .col-mode, |
| {{{field|Name|input type=text|placeholder=Official Title|class=form-control|style=width:100%}}}
| | .hide-Players .col-players { |
| </div> | | display: none !important; |
| <div style="flex: 1;">
| | } |
| '''Release Date:'''<br>
| |
| {{{field|Release date|input type=datepicker|date format=dd.mm.yy}}}
| |
| </div>
| |
| </div>
| |
|
| |
|
| <div style="display: flex; gap: 15px; margin-bottom: 10px;">
| | /* --- FIXED CHECKBOX GRID --- */ |
| <div style="flex: 1;">
| |
| '''Developer:'''<br>{{{field|Developer|input type=text|autocomplete|size=20}}}
| |
| </div>
| |
| <div style="flex: 1;">
| |
| '''Publisher:'''<br>{{{field|Publisher|input type=text|autocomplete|size=20}}}
| |
| </div>
| |
| <div style="flex: 1;">
| |
| '''Series:'''<br>{{{field|Series|input type=tokens|values from category=Series|placeholder=e.g. Half-Life|size=20}}}
| |
| </div>
| |
| </div>
| |
|
| |
|
| <div style="display: flex; gap: 15px; align-items: flex-end;">
| | /* 1. Set up the grid on the wrapper span generated by Page Forms */ |
| <div style="flex: 1;"> | | .checkbox-grid > span { |
| '''Cover Image:'''<br>{{{field|Image|uploadable}}}
| | display: grid !important; |
| </div> | | /* Create nice even columns, min 150px wide */ |
| <div style="flex: 1;"> | | grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; |
| '''Version:'''<br>{{{field|Current version|input type=text|size=15}}}
| | gap: 8px !important; |
| </div> | | width: 100%; |
| </div>
| | } |
| </div>
| |
|
| |
|
| <div style="padding: 15px; background: #ffffff; border-bottom: 1px solid #ddd;">
| | /* 2. Style the individual items (The Checkbox + Text) */ |
| <div style="font-weight: bold; color: #2a4b8d; border-bottom: 1px solid #eee; padding-bottom: 2px; margin-bottom: 8px;">Gameplay & Genre</div>
| | .checkbox-grid .checkboxLabel { |
| | display: flex !important; |
| | align-items: center; |
| | background: #f9f9f9; |
| | border: 1px solid #ccc; |
| | padding: 6px 10px; |
| | border-radius: 4px; |
| | height: 25px; |
| | font-size: 13px; |
| | white-space: nowrap; |
| | overflow: hidden; |
| | } |
|
| |
|
| <div style="margin-bottom: 12px;">
| | /* 3. Hover Effect */ |
| <strong>Genre:</strong> | | .checkbox-grid .checkboxLabel:hover { |
| <div class="checkbox-grid"> | | background: #fff; |
| {{{field|Genre|input type=checkboxes|values=Action, Adventure, MMO, Racing, RPG, Shooter, Simulation, Sports, Strategy|delimiter=}}} | | border-color: #3366cc; |
| </div>
| | cursor: pointer; |
| </div>
| | } |
|
| |
|
| <div style="margin-bottom: 12px;">
| | /* 4. Hide invisible <br> tags and delimiters that break layout */ |
| <strong>Setting:</strong>
| | .checkbox-grid br { |
| <div class="checkbox-grid">
| | display: none !important; |
| {{{field|Setting|input type=checkboxes|values=Modern Era, Fantasy, Sci-Fi, Historical, Post-Apocalyptic|delimiter=}}}
| | } |
| </div>
| |
| </div>
| |
| | |
| <div>
| |
| <strong>Modes:</strong>
| |
| <div class="checkbox-grid">
| |
| {{{field|Has game mode|input type=checkboxes|values=Singleplayer, Multiplayer, Co-op|delimiter=}}}
| |
| </div>
| |
| </div>
| |
| </div>
| |
| | |
| <div style="padding: 15px; background: #f9f9f9; border-bottom: 1px solid #ddd;">
| |
| <div style="font-weight: bold; color: #2a4b8d; border-bottom: 1px solid #eee; padding-bottom: 2px; margin-bottom: 8px;">Technical Specs</div>
| |
| | |
| <div style="margin-bottom: 12px;">
| |
| <strong>Original Platforms:</strong>
| |
| <div class="checkbox-grid" style="background: #fff; border: 1px solid #ddd; padding: 5px;">
| |
| {{{field|Platform|input type=checkboxes|values=MS-DOS, Windows 95, Windows 98, Windows XP, Windows 7, Windows 10, Windows 11, Linux, Mac OS|delimiter=}}}
| |
| </div>
| |
| </div>
| |
| | |
| <div style="margin-bottom: 10px;">
| |
| '''System Requirements:'''<br>
| |
| {{{field|System requirements|input type=textarea|rows=2|style=width: 100%; box-sizing: border-box; font-family: monospace;}}}
| |
| </div>
| |
| | |
| <div>
| |
| '''Multiplayer Tools:'''<br>
| |
| {{{field|Multiplayer tools|input type=tokens|delimiter=;|size=50}}} | |
| </div>
| |
| </div>
| |
| | |
| <div style="padding: 15px; background: #ffffff;">
| |
| <div style="display: flex; gap: 15px;">
| |
| <div style="flex: 1;">
| |
| '''Store Links:'''<br>{{{field|Store links|input type=text|size=50}}}
| |
| </div>
| |
| <div style="flex: 1;">
| |
| '''Community Links:'''<br>{{{field|Community|input type=text|size=50}}}
| |
| </div>
| |
| </div>
| |
| </div>
| |
| | |
| <div style="padding: 10px 15px; background: #eee; border-top: 1px solid #ccc; text-align: right;">
| |
| {{{standard input|save}}}
| |
| <span style="margin-left: 10px;">{{{standard input|preview}}}</span>
| |
| <span style="margin-left: 10px;">{{{standard input|cancel}}}</span>
| |
| </div>
| |
| | |
| </div>
| |
| {{{end template}}}
| |
/* CSS placed here will be applied to all skins */
/* --- TABLE FIXES (Keep these) --- */
.fullwidth { width: 100% !important; }
.nowrap { white-space: nowrap; }
table.wikitable th a,
table.wikitable th.headerSort a {
pointer-events: none !important;
cursor: pointer !important;
color: black !important;
text-decoration: none !important;
}
/* Hide columns helpers */
.hide-Genre .col-genre,
.hide-Platform .col-platform,
.hide-Mode .col-mode,
.hide-Players .col-players {
display: none !important;
}
/* --- FIXED CHECKBOX GRID --- */
/* 1. Set up the grid on the wrapper span generated by Page Forms */
.checkbox-grid > span {
display: grid !important;
/* Create nice even columns, min 150px wide */
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
gap: 8px !important;
width: 100%;
}
/* 2. Style the individual items (The Checkbox + Text) */
.checkbox-grid .checkboxLabel {
display: flex !important;
align-items: center;
background: #f9f9f9;
border: 1px solid #ccc;
padding: 6px 10px;
border-radius: 4px;
height: 25px;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
}
/* 3. Hover Effect */
.checkbox-grid .checkboxLabel:hover {
background: #fff;
border-color: #3366cc;
cursor: pointer;
}
/* 4. Hide invisible <br> tags and delimiters that break layout */
.checkbox-grid br {
display: none !important;
}