Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Difference between revisions of "User:Gardios"

From DFO World Wiki
Jump to: navigation, search
(Created page with "== Array testing == ; #arrayprint a : {{#arrayprint:a}} ; #arraydefine a=pika : ''' {{#arraydefine:a|pika}} ; #arrayprint a : {{#arrayprint:a}} Return nothing if undefined:...")
 
Line 1: Line 1:
== Array testing ==
+
== SMW Project ==
  
; #arrayprint a : {{#arrayprint:a}}
+
I'm currently working on templates that utilize SMW. This mainly involves items for now, but will also cover enemies and NPCs to some extent. Feel free to post on my talk page if you have any questions.
; #arraydefine a=pika : ''' {{#arraydefine:a|pika}}
 
; #arrayprint a : {{#arrayprint:a}}
 
  
 +
=== Pages ===
  
Return nothing if undefined:
+
Pages to test the functionality of the templates using SMW. Please do not edit them.
  
; a : {{#ifeq: {{#arrayprint:a}}|undefined array: a||Already defined!}}
+
:[[Corrupt Imposter Death Scythe]]
; a : {{#if: {{#arraysize:a}} | Already defined! |}}
+
:[[Sharkskin Top]]
; b : {{#ifeq: {{#arrayprint:b}}|undefined array: b||Already defined!}}
+
:[[Nilvas Gracia]]
; b : {{#if: {{#arraysize:b}} | Already defined! |}}
 
  
 +
=== Templates ===
  
Print ''defaultvalue'' if undefined/empty:
+
:[[Template:Default item properties]]
 +
:[[Template:Rarity]]
 +
:[[Template:Equipment infobox]]
 +
:[[Template:Attribute]]
 +
:[[Template:Item]]
 +
:[[Template:Equipment list]]
 +
::[[Template:Equipment list header]]
 +
::[[Template:Equipment list result format]]
 +
:[[Template:Set]]
 +
:[[Template:Set list]]
 +
::[[Template:Set list header]]
 +
::[[Template:Set list result format]]
 +
:[[Template:Drops item]]
 +
::[[Template:Dropped by]]
  
; a : {{#if: {{#arraysize:a}} | {{#arrayprint:a}} |''defaultvalue''}}
+
Auxiliary templates
; c : {{#if: {{#arraysize:c}} | {{#arrayprint:c}} |''defaultvalue''}}
+
:[[Template:!!]]
 +
:[[Template:!-]]
 +
:[[Template:Quotation]]
  
 +
=== Properties ===
  
Variable equivalence
+
:[[Property:Has name]]
{| class="wikitable"
+
:[[Property:Has availability]]
! Variables || Arrays
+
:[[Property:Has game context]]
|-
+
:[[Property:Has game icon]]
|| <code>{{#vardefine:''name''|''value''}}</code> || <code><nowiki>{{#arraydefine:</nowiki>''name''<nowiki>|</nowiki>''value''<nowiki>}}</nowiki></code>
+
:[[Property:Has game appearance]]
|-
+
:[[Property:Has item rarity]]
|| <code>{{#var:''name''}}</code> || <code><nowiki>{{#if: {{#arraysize:</nowiki>''name''<nowiki>}} | {{#arrayprint:</nowiki>''name''<nowiki>}} |}}</nowiki></code>
+
:[[Property:Has weight]]
|-
+
:[[Property:Has sell value]]
|| <code>{{#var:''name''|''default''}}</code> || <code><nowiki>{{#if: {{#arraysize:</nowiki>''name''<nowiki>}} | {{#arrayprint:</nowiki>''name''<nowiki>}} |</nowiki>''default''<nowiki>}}</nowiki></code>
+
:[[Property:Has level requirement]]
|-
+
:[[Property:Has class requirement]]
|| <code>{{#varexists:''name''}}</code> || <code><nowiki>{{#if: {{#arraysize:</nowiki>''name''<nowiki>}} | 1 |}}</nowiki></code>
+
:[[Property:Has equipment slot]]
|-
+
:[[Property:Has weapon type]]
|}
+
:[[Property:Has armor weight class]]
 +
:[[Property:Has physical power]]
 +
:[[Property:Has magical power]]
 +
:[[Property:Has base attack]]
 +
:[[Property:Has physical defense]]
 +
:[[Property:Has magical defense]]
 +
:[[Property:Has strength]]
 +
:[[Property:Has intelligence]]
 +
:[[Property:Has vitality]]
 +
:[[Property:Has exorcism]]
 +
:Remaining attribute bonus properties
 +
:[[Property:Is part of set]]
 +
:[[Property:Has effect description]]
 +
:[[Property:Has flavor text]]

Revision as of 18:01, 1 June 2015

SMW Project

I'm currently working on templates that utilize SMW. This mainly involves items for now, but will also cover enemies and NPCs to some extent. Feel free to post on my talk page if you have any questions.

Pages

Pages to test the functionality of the templates using SMW. Please do not edit them.

Corrupt Imposter Death Scythe
Sharkskin Top
Nilvas Gracia

Templates

Template:Default item properties
Template:Rarity
Template:Equipment infobox
Template:Attribute
Template:Item
Template:Equipment list
Template:Equipment list header
Template:Equipment list result format
Template:Set
Template:Set list
Template:Set list header
Template:Set list result format
Template:Drops item
Template:Dropped by

Auxiliary templates

Template:!!
Template:!-
Template:Quotation

Properties

Property:Has name
Property:Has availability
Property:Has game context
Property:Has game icon
Property:Has game appearance
Property:Has item rarity
Property:Has weight
Property:Has sell value
Property:Has level requirement
Property:Has class requirement
Property:Has equipment slot
Property:Has weapon type
Property:Has armor weight class
Property:Has physical power
Property:Has magical power
Property:Has base attack
Property:Has physical defense
Property:Has magical defense
Property:Has strength
Property:Has intelligence
Property:Has vitality
Property:Has exorcism
Remaining attribute bonus properties
Property:Is part of set
Property:Has effect description
Property:Has flavor text