Difference between revisions of "Template:Item Attributes"

From Mushpedia
Jump to: navigation, search
m
(I think I fixed origin 5?)
 
(53 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>
+
<includeonly><onlyinclude>{{#vardefine:
{{#vardefine:
+
 
{{{1}}} Name |
 
{{{1}}} Name |
{{{1}}}
+
{{{Name|{{{1|Unknown Item}}}}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Icon |
 
{{{1}}} Icon |
{{{Icon}}}
+
{{{Icon|Postit.jpg}}}
}}{{#vardefine:
+
{{{1}}} Summary |
+
{{{Summary}}}
+
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} In-game Flavor |
 
{{{1}}} In-game Flavor |
{{{In-game Flavor}}}
+
{{{In-game Flavor|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
{{{1}}} In-game Effects |
+
{{{1}}} In-game Effects |  
{{{In-game Effects}}}
+
{{{In-game Effects|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} In-game Examine Text |
 
{{{1}}} In-game Examine Text |
{{{In-game Examine Text}}}
+
{{{In-game Examine Text|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
{{{1}}} Origins |
+
{{{1}}} Origin 1 |
{{{Origins}}}
+
{{{Origin 1|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
{{{1}}} Destroyed in Fire |
+
{{{1}}} Origin Amount 1 |
{{{Destroyed in Fire}}}
+
{{{Origin Amount 1|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Origin 2 |
 +
{{{Origin 2|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Origin Amount 2 |
 +
{{{Origin Amount 2|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Origin 3 |
 +
{{{Origin 3|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Origin Amount 3 |
 +
{{{Origin Amount 3|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Origin 4 |
 +
{{{Origin 4|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Origin Amount 4 |
 +
{{{Origin Amount 4|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Origin 5 |
 +
{{{Origin 5|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Origin Amount 5 |
 +
{{{Origin Amount 5|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Is Destroyed in Fire |
 +
{{{Is Destroyed in Fire|no}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Is Consumable |
 
{{{1}}} Is Consumable |
{{{Is Consumable}}
+
{{{Is Consumable|no}}}
 +
}}{{#vardefine:
 +
{{{1}}} Consumable Effects |
 +
{{{Consumable Effects|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Can Perish |
 
{{{1}}} Can Perish |
{{{Can Perish}}}
+
{{{Can Perish|no}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Is Heavy |
 
{{{1}}} Is Heavy |
{{{Is Heavy}}}
+
{{{Is Heavy|no}}}
 +
}}{{#vardefine:
 +
{{{1}}} Has Module Access |
 +
{{{Has Module Access|no}}}
 +
}}{{#vardefine:
 +
{{{1}}} Starts Broken |
 +
{{{Starts Broken|no}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Is Artefact |
 
{{{1}}} Is Artefact |
{{{Is Artefact}}}
+
{{{Is Artefact|no}}}
 +
}}{{#vardefine:
 +
{{{1}}} Enables Action |
 +
{{{Enables Action|no}}}
 +
}}{{#vardefine:
 +
{{{1}}} Has Passive Effect |
 +
{{{Has Passive Effect|no}}}
 +
}}{{#vardefine:
 +
{{{1}}} Has Passive Effect in Room |
 +
{{{Has Passive Effect in Room|no}}}
 +
}}{{#vardefine:
 +
{{{1}}} Has Exploration Effect |
 +
{{{Has Exploration Effect|no}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Max Charges |
 
{{{1}}} Max Charges |
{{{Max Charges}}}
+
{{{Max Charges|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Starting Charges |
 +
{{{Starting Charges|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Repair Chance |
 
{{{1}}} Repair Chance |
{{{Repair Chance}}}
+
{{{Repair Chance|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Dismantle Chance |
 
{{{1}}} Dismantle Chance |
{{{Dismantle Chance}}}
+
{{{Dismantle Chance|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
{{{1}}} Dismantle Results |
+
{{{1}}} Dismantle Result 1 |
{{{Dismantle Results}}}
+
{{{Dismantle Result 1|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Dismantle Result Amount 1 |
 +
{{{Dismantle Result Amount 1|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Dismantle Result 2 |
 +
{{{Dismantle Result 2|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Dismantle Result Amount 2 |
 +
{{{Dismantle Result Amount 2|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Construction Material 1 |
 +
{{{Construction Material 1|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Construction Material Amount 1 |
 +
{{{Construction Material Amount 1|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Construction Material 2 |
 +
{{{Construction Material 2|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Construction Material Amount 2 |
 +
{{{Construction Material Amount 2|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Construction Material 3 |
 +
{{{Construction Material 3|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Construction Material Amount 3 |
 +
{{{Construction Material Amount 3|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Can be Stacked |
 
{{{1}}} Can be Stacked |
{{{Can be Stacked}}}
+
{{{Can be Stacked|no}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Can be Dropped |
 
{{{1}}} Can be Dropped |
{{{Can be Dropped}}}
+
{{{Can be Dropped|yes}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Can be Hidden |
 
{{{1}}} Can be Hidden |
{{{Can be Hidden}}}
+
{{{Can be Hidden|yes}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Is Personal |
 
{{{1}}} Is Personal |
{{{Is Personal}}}
+
{{{Is Personal|no}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
{{{1}}} Is Blueprint Material |
+
{{{1}}} Can be Moved |
{{{Is Blueprint Material}}}
+
{{{Can be Moved|yes}}}
 +
}}{{#vardefine:
 +
{{{1}}} Can be Read |
 +
{{{Can be Read|no}}}
 +
}}{{#vardefine:
 +
{{{1}}} Reading Text |
 +
{{{Reading Text|}}}
 +
}}{{#vardefine:
 +
{{{1}}} Is Blueprint Component |
 +
{{{Is Blueprint Component|no}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Weapon Damage |
 
{{{1}}} Weapon Damage |
{{{Weapon Damage}}}
+
{{{Weapon Damage|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Weapon Accuracy |
 
{{{1}}} Weapon Accuracy |
{{{Weapon Accuracy}}}
+
{{{Weapon Accuracy|}}}
 
}}{{#vardefine:
 
}}{{#vardefine:
 
{{{1}}} Weapon Expedition Strength |
 
{{{1}}} Weapon Expedition Strength |
{{{Weapon Expedition Strength}}}
+
{{{Weapon Expedition Strength|}}}
}}</onlyinclude>
+
}}{{#vardefine:
This is a template to ''store'' '''stats of [[Inventory|pick-up items]]''' in their respective articles.
+
{{{1}}} Summary |
 
+
{{#ifeq: {{#var: {{{1}}} Starts Broken}}|yes|Starts '''broken'''.&nbsp;|}}{{#ifeq: {{#var: {{{1}}} Can be Moved}}|no|'''Cannot be moved.'''&nbsp;|}}{{#ifeq: {{#var: {{{1}}} Can Perish}}|yes|'''Perishable'''.&nbsp;|}}{{#if: {{#var: {{{1}}} Starting Charges}}|Starts with {{Charge}}x'''{{#var: {{{1}}} Starting Charges}}'''.&nbsp;|}}{{#ifeq: {{#var: {{{1}}} Is Personal}}|yes|'''Personal''' item; only visible to the owner.&nbsp;|}}{{#ifeq: {{#var: {{{1}}} Can be Stacked}}|yes|'''Stackable'''.&nbsp;|}}{{#ifeq: {{#var: {{{1}}} Can be Dropped}}|no|'''Cannot be dropped'''.&nbsp;|}}{{#ifeq: {{#var: {{{1}}} Can be Hidden}}|no|'''Cannot be hidden'''.&nbsp;|}}{{{Summary|{{Todo|Missing a short summary to be displayed on the Inventory page. Please append it.}}}}}
'''Usage''':
+
}}</onlyinclude></includeonly>As a temporary solution while I'm getting the inclusion to work, check '''[[:Template:Item Attributes/doc|this page]]''' for instructions on how to use this.
 
+
When creating a new page for an item, insert the following code at the top:
+
<pre>
+
<onlyinclude>{{Item Stats|{{PAGENAME}}|
+
Name =
+
 
+
| Icon =
+
 
+
| Summary =
+
 
+
| In-game Flavor =
+
 
+
| In-game Effects =
+
 
+
| In-game Examine Text =
+
 
+
| Origins =
+
 
+
| Destroyed in Fire =
+
 
+
| Is Consumable =
+
 
+
| Can Perish =
+
 
+
| Is Heavy =
+
 
+
| Is Artefact =
+
 
+
| Max Charges =
+
 
+
| Repair Chance =
+
 
+
| Dismantle Chance =
+
 
+
| Dismantle Results =
+
 
+
| Can be Stacked =
+
 
+
| Can be Dropped =
+
 
+
| Can be Hidden =
+
 
+
| Is Personal =
+
 
+
| Is Blueprint Material =
+
 
+
| Weapon Damage =
+
 
+
| Weapon Accuracy =
+
 
+
| Weapon Expedition Strength =
+
 
+
}}</onlyinclude>
+
</pre>
+
You can now begin filling in these fields. Some of these fields have default values set, and others only belong to certain item categories, so they can be skipped (removed from the list). These include:
+
 
+
*Is Consumable: Defaults to 'no'.
+
*Can Perish: Only for [[Inventory#Consumables|Consumables]].
+
*Is Heavy: Defaults to 'no'.
+
*Is Artefact: Defaults to 'no'.
+
*Max Charges: Only for items with charges.
+
*Repair Chance, Dismantle Chance, Dismantle Results: Only for repairable items.
+
*Can be Stacked: Defaults to 'no'.
+
*Can be Dropped: Defaults to 'yes'. Should be set to 'no' for things like {{Item|Fuel Capsule}}, {{Item|Camera}} etc
+
*Can be Hidden: Defaults to 'yes'.
+
*Is Personal: Defaults to 'no'. Should be set to 'yes' for communications items like {{Item|iTrakie}}.
+
*Is Blueprint Material: Only for items which are material in blueprint construction, like {{Item|Scrap Metal}}.
+
*Weapon Damage, Weapon Accuracy, Weapon Expedition Strength: Only for [[Inventory#Weapons|weapons]].
+
 
+
[[Category: Incomplete]]
+

Latest revision as of 16:47, 15 April 2015

As a temporary solution while I'm getting the inclusion to work, check this page for instructions on how to use this.