Template:Infobox tech: Difference between revisions

From PRIME Universe Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#define:TechRow|{{#if:{{{2|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">{{{1}}}</th><td>{{{2}}}</td></tr>}}}}
<table class="infobox" style="float:right; width:22em; font-size:90%; text-align:left; border:1px solid #444; background:#222; padding:0.3em; color:#eee; margin-top:0;">
<table class="infobox" style="float:right; width:22em; font-size:90%; text-align:left; border:1px solid #444; background:#222; padding:0.3em; color:#eee; margin-top:0;">
   <tr>
   <tr>
Line 18: Line 16:
   }}
   }}


   {{TechRow|Type|{{{type|}}}}}
   {{#if:{{{type|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Type</th><td>{{{type}}}</td></tr>}}
   {{TechRow|Developer|{{{developer|}}}}}
   {{#if:{{{developer|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Developer</th><td>{{{developer}}}</td></tr>}}
   {{TechRow|Manufacturer|{{{manufacturer|}}}}}
   {{#if:{{{manufacturer|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Manufacturer</th><td>{{{manufacturer}}}</td></tr>}}
   {{TechRow|Introduced|{{{introduced|}}}}}
   {{#if:{{{introduced|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Introduced</th><td>{{{introduced}}}</td></tr>}}
   {{TechRow|Status|{{{status|}}}}}
   {{#if:{{{status|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Status</th><td>{{{status}}}</td></tr>}}
   {{TechRow|Purpose|{{{purpose|}}}}}
   {{#if:{{{purpose|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Purpose</th><td>{{{purpose}}}</td></tr>}}
   {{TechRow|Power source|{{{power|}}}}}
   {{#if:{{{power|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Power source</th><td>{{{power}}}</td></tr>}}
   {{TechRow|Operational range|{{{range|}}}}}
   {{#if:{{{range|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Operational range</th><td>{{{range}}}</td></tr>}}
   {{TechRow|Output|{{{output|}}}}}
   {{#if:{{{output|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Output</th><td>{{{output}}}</td></tr>}}
   {{TechRow|Efficiency|{{{efficiency|}}}}}
   {{#if:{{{efficiency|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Efficiency</th><td>{{{efficiency}}}</td></tr>}}
   {{TechRow|Variants|{{{variants|}}}}}
   {{#if:{{{variants|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Variants</th><td>{{{variants}}}</td></tr>}}
   {{TechRow|Used by|{{{users|}}}}}
   {{#if:{{{users|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Used by</th><td>{{{users}}}</td></tr>}}
   {{TechRow|Countermeasures|{{{counter|}}}}}
   {{#if:{{{counter|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Countermeasures</th><td>{{{counter}}}</td></tr>}}
   {{TechRow|Notes|{{{notes|}}}}}
   {{#if:{{{notes|}}}|<tr style="background:#2a2a2a;"><th style="color:#ddd;">Notes</th><td>{{{notes}}}</td></tr>}}
</table>
</table>
</includeonly>
</includeonly>
<noinclude>
This template creates a **dark-themed infobox for technology, weapons, systems, or research projects**.
Usage example:
<pre>
{{Infobox Technology
| name        = OSIRIS Weapon System
| image      = OSIRIS.png
| image_size  = 200px
| type        = Spinal Laser
| developer  = MassTek Industries
| manufacturer= MassTek Industries
| introduced  = 4222 GST
| status      = Active
| purpose    = Military
| power      = Fusion Reactor
| range      = 5 million km
| output      = 5 TW
| efficiency  = 92%
| variants    = OSIRIS Mk I, Mk II
| users      = Terran Commonwealth Navy
| counter    = Shielding, ECM
| notes      = Developed with Koening Armistice
}}
</pre>
</noinclude>
<templatedata>
{
  "description": "Dark-themed infobox for technology, weapons, systems, or research projects.",
  "params": {
    "name": {"label":"Name","type":"string","required":true},
    "image":{"label":"Image","type":"string"},
    "image_size":{"label":"Image size","type":"string"},
    "caption":{"label":"Caption","type":"string"},
    "type":{"label":"Type","type":"string"},
    "developer":{"label":"Developer","type":"string"},
    "manufacturer":{"label":"Manufacturer","type":"string"},
    "introduced":{"label":"Introduced","type":"string"},
    "status":{"label":"Status","type":"string"},
    "purpose":{"label":"Purpose","type":"string"},
    "power":{"label":"Power source","type":"string"},
    "range":{"label":"Operational range","type":"string"},
    "output":{"label":"Output","type":"string"},
    "efficiency":{"label":"Efficiency","type":"string"},
    "variants":{"label":"Variants","type":"string"},
    "users":{"label":"Used by","type":"string"},
    "counter":{"label":"Countermeasures","type":"string"},
    "notes":{"label":"Notes","type":"string"}
  }
}
</templatedata>

Revision as of 15:10, 27 December 2025