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
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox mod-infobox">
<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;">
   <div class="infobox-header">{{{title|{{PAGENAME}}}}}</div>
 
   <div class="infobox-image">
   {{#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>}}
     [[File:{{{image|Example.png}}}|250px]]
 
  </div>
   <table style="width:100%; border-collapse:separate; border-spacing:0 18px; color:#fff; line-height:1.4;">
  <div class="infobox-row"><strong>Author(s):</strong> {{{author|Unknown}}}</div>
     {{#if:{{{author(s)|}}}|<tr>
  <div class="infobox-row"><strong>Release Date:</strong> {{{release_date|n/a}}}</div>
      <td style="font-weight:bold;">Author(s)</td>
  <div class="infobox-row"><strong>Base Game:</strong> {{{base_game|n/a}}}</div>
      <td style="white-space:pre-line;">{{{author(s)}}}</td>
  <div class="infobox-row"><strong>Source Port:</strong> {{{sourceport|n/a}}}</div>
    </tr>}}
  <div class="infobox-row"><strong>Type:</strong> {{{type|n/a}}}</div>
    {{#if:{{{release_date|}}}|<tr>
  <div class="infobox-row"><strong>Code Changes:</strong> {{{code_changes|n/a}}}</div>
      <td style="font-weight:bold;">Release date</td>
  <div class="infobox-row"><strong>Maps:</strong> {{{maps|n/a}}}</div>
      <td style="white-space:pre-line;">{{{release_date}}}</td>
  <div class="infobox-row"><strong>New Graphics:</strong> {{{new_graphics|n/a}}}</div>
    </tr>}}
  <div class="infobox-row"><strong>Files Included:</strong> {{{files_included|n/a}}}</div>
    {{#if:{{{base_game|}}}|<tr>
  <div class="infobox-row"><strong>Awards:</strong> {{{awards|}}}</div>
      <td style="font-weight:bold;">Base game</td>
      <td style="white-space:pre-line;">{{{base_game}}}</td>
    </tr>}}
    {{#if:{{{sourceport|}}}|<tr>
      <td style="font-weight:bold;">Source port</td>
      <td style="white-space:pre-line;">{{{sourceport}}}</td>
    </tr>}}
    {{#if:{{{type|}}}|<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>
 
</div>
</div>
<templatedata>
{
  "description": "Infobox for Wolfenstein mods.",
  "params": {
    "title": {
      "label": "Title",
      "description": "Name of the mod",
      "type": "string",
      "required": true
    },
    "image": {
      "label": "Image",
      "description": "Main image for the mod (filename only)",
      "type": "wiki-file-name"
    },
    "author": {
      "label": "Author(s)",
      "description": "Who created the mod",
      "type": "string"
    },
    "release_date": {
      "label": "Release Date",
      "description": "When the mod was released",
      "type": "date"
    },
    "base_game": {
      "label": "Base Game",
      "description": "Wolfenstein/Spear version required",
      "type": "string"
    },
    "sourceport": {
      "label": "Source Port",
      "description": "Supported source ports (DOS, SDL, ECWolf, etc.)",
      "type": "string"
    },
    "type": {
      "label": "Type",
      "description": "Mod or TC",
      "type": "string"
    },
    "code_changes": {
      "label": "Code Changes",
      "description": "Yes or No",
      "type": "string"
    },
    "maps": {
      "label": "Maps",
      "description": "Number of new maps",
      "type": "string"
    },
    "new_graphics": {
      "label": "New Graphics",
      "description": "Yes or No",
      "type": "string"
    },
    "files_included": {
      "label": "Files Included",
      "description": "All or list of individual files",
      "type": "string"
    },
    "awards": {
      "label": "Awards",
      "description": "Any awards or stickers",
      "type": "string"
    }
  }
}
</templatedata>

Latest revision as of 09:38, 10 October 2025