Template:Modbox: Difference between revisions

From [N8]
Jump to navigation Jump to search
mNo edit summary
m updated template to have ship class field
 
(17 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div class="mod_container" align="left">
<includeonly><div class="mod_container" align="left">
<div class="mod-right-corner">Requires Level {{{ReqLevel}}}<br> <span style="color:white;">Item Level {{{ItemLevel}}}<br>ID: {{{ID}}}<br>Install Multiple: {{{Multi}}} </span></div>
<div class="mod-right-corner">Requires Level {{{ReqLevel}}}<br> <span style="color:white;">Item Level {{{ItemLevel}}}<br>ID: {{{ID}}}<br>Install Multiple: {{{Multi}}}<br>Ship Class: {{#if:{{{Ship|}}}|{{{Ship}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}} </span></div>
<div style="float:left; padding-right:5px; margin-right:5px;">[[File:{{{Image}}}|120px]]</div>
<div style="float:left; padding-right:5px; margin-right:5px;">[[File:{{{Image}}}|120px]]</div>
<span style="color:{{#switch: {{#expr: floor( {{{ItemLevel}}} / 100 )}}
<div style="font-size:12pt;"><span style="color:{{#switch: {{#expr: floor( {{{ItemLevel}}} / 100 )}}
| 1 = #fff
| 1 = #fff
| 2 = #048000
| 2 = #048000
Line 8: Line 8:
| 4 = #9702C6
| 4 = #9702C6
| 5 = #FFA500
| 5 = #FFA500
}}">{{{Name}}}</span>
}}">{{{Name}}}</span></div>
<div style="font-size:10pt;">Location: {{{Location}}}<br>
<div style="font-size:10pt;">Location: {{{Location}}}<br>{{{Attr}}}</div></div>
{{{Attr}}} </div>
</div>
<div class="mod_details">
<div class="mod_details">
<div style="font-size:10pt;">{{{Desc}}}</div>
<div style="font-size:10pt;">{{{Desc}}}</div>
<hr>
<hr>
<div style="margin-top: 0; padding-top:3px; padding-left:5px; padding-right: 5px; padding-bottom: 3px; background-color: #ececec; color:black; font-size:10pt;">{{#switch: {{{Condition}}}  
<div style="margin-top: 0; padding-top:3px; padding-left:5px; padding-right: 5px; padding-bottom: 3px; background-color: #ececec; color:black; font-size:10pt;">{{#switch: {{{Condition}}}  
| Yes = Materials Required: {{{MatsReq}}}<br>
| 1 = Materials Required: <br>
| No = Cost: {{{Cost}}} {{!}} Reputation Required: {{{Rep}}}
{{{MatsReq}}}
| Both = Cost: {{{Cost}}} {{!}} Reputation Required: {{{Rep}}}<br><hr>
| 2 = Cost: {{{Cost}}} {{!}} Reputation Required: {{{Rep}}}
Materials Required: {{{MatsReq}}}<br>
| 3 = Cost: {{{Cost}}} {{!}} Reputation Required: {{{Rep}}}<br><hr>Materials Required: <br>
{{{MatsReq}}}
}}</div>
}}</div>
</div>
</div></includeonly><noinclude>{{/doc}}[[Category: Templates]]</noinclude>

Latest revision as of 03:27, 3 February 2021

Template documentation
This documentation is transcluded from Template:Modbox/doc. [edit] [purge]
Not to be confused with Template:Infobox Mod.

This template creates a Mod Infobox for usage only for the Mod Stores.

Usage

  • Name – Name of the Mod
  • Image – Mod Image. Example: Armor.png
  • Location – Location of the Mod (Armor, Weapons, Sensors, etc.)
  • ReqLevel – Required Level of the Mod
  • ItemLevel – Item Rating/Tier of Mod
  • ID – Mod ID
  • Multi Install? – Yes or No
  • Ship - Ship Class: Any? Freighter? Fighter? Scout?
  • Condition
    • 1 = Craftable
    • 2 = Purchasable
    • 3 = Both Purchasable & Craftable
  • Attr – The Mod Attribute(s)
  • Desc – Mod Description/Summary
  • Cost – Mod Cost
  • Rep – Reputation Required to use Mod
  • MatsReq – Materials Required to Craft a Craftable Mod

Example

{{Modbox
|Name= Martian Mirror Panel
|Image= Armor.png
|Location= Armor
|ReqLevel= 2
|ItemLevel= 515
|ID= 283
|Multi= Yes
|Ship=Any
|Condition= 1
|Attr= +1% Damage Reflection
|Desc= Info: This Martian damage reflector sends 1% of all damage back to the attacker's shields
|Cost= $5,000
|Rep= 0
|MatsReq=
* Energy Cell: 0/1000
* Disrupter Cartridges: 0/150
* Tier III Mod Component: 0/100
* Military Grade Mod Frame: 0/1
}}

Result

Requires Level 2
Item Level 515
ID: 283
Install Multiple: Yes
Ship Class: Any
Martian Mirror Panel
Location: Armor
+1% Damage Reflection
Info: This Martian damage reflector sends 1% of all damage back to the attacker's shields

Materials Required:
  • Energy Cell: 0/1000
  • Disrupter Cartridges: 0/150
  • Tier III Mod Component: 0/100
  • Military Grade Mod Frame: 0/1

TemplateData

Detailed Guidelines for Parameter Usage

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
NameName

Name of the Mod

Example
Name= Hammered Garbage
Stringrequired
ImageImage

Mod Image.

Example
Image= Armor.png
Stringrequired
LocationLocation

Location of the Mod (Armor, Weapons, Sensors, etc.)

Example
Location= Utility
Stringrequired
ReqLevelReqLevel

Required Level of the Mod

Example
ReqLevel= 35
Stringrequired
ItemLevelItemLevel

Item Rating/Tier of Mod

Example
ItemLevel= 515
Stringrequired
IDID

Mod ID

Example
ID= 19204
Stringrequired
MultiMulti

Is it Multi Install? Yes or No.

Example
Multi= Yes
Stringrequired
ConditionCondition

Is Mod Craftable, Purchasable or Both?

Example
1 = Craftable | 2 = Purchasable | 3 = Both Purchasable & Craftable
Stringrequired
AttrAttr

The Mod Attribute(s)

Example
Attr= +25 Damage
Stringrequired
DescDesc

Mod Description/Summary

Example
Desc= Info: This Martian damage reflector sends 1% of all damage back to the attacker's shields
Stringrequired
CostCost

Mod Cost

Example
Cost= $75,000
Stringrequired
RepRep

Reputation Required to use Mod

Example
Rep= 1,000
Stringrequired
MatsReqMatsReq

Materials Required to Craft a Craftable Mod

Example
See Example Above
Stringrequired
ShipShip

Ship Class?

Example
Any, Freighter, Fighter, Scout
Stringoptional