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 "Template:NeopleAPI"

From DFO World Wiki
Jump to: navigation, search
(Test gender)
(Moved to Korean template)
Line 3: Line 3:
 
|Both={{#vardefine:MaleEn|{{Template:NeopleAPIJobId|Male {{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}}}}}
 
|Both={{#vardefine:MaleEn|{{Template:NeopleAPIJobId|Male {{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}}}}}
 
{{#vardefine:FemEn|{{Template:NeopleAPIJobId|Female {{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}}}}}
 
{{#vardefine:FemEn|{{Template:NeopleAPIJobId|Female {{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}}}}}
* '''Dungeon Fighter Online API Docs Link:'''  
+
{{#if:{{{KrId|}}}|
 +
{{#vardefine:MaleKr|{{Template:NeopleAPIJobId|Male {{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}|Type=Kr}}}}
 +
{{#vardefine:FemKr|{{Template:NeopleAPIJobId|Female {{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}|Type=Kr}}}}
 +
}}* '''Dungeon Fighter Online API Docs Link:'''  
 
:<code><nowiki>https://api.dfoneople.com/df/skills/</nowiki>{{#var:MaleEn}}/{{{EngId}}}<nowiki>?apikey=<apikey></nowiki></code> (Male)
 
:<code><nowiki>https://api.dfoneople.com/df/skills/</nowiki>{{#var:MaleEn}}/{{{EngId}}}<nowiki>?apikey=<apikey></nowiki></code> (Male)
 
:<code><nowiki>https://api.dfoneople.com/df/skills/</nowiki>{{#var:FemEn}}/{{{EngId}}}<nowiki>?apikey=<apikey></nowiki></code> (Female)
 
:<code><nowiki>https://api.dfoneople.com/df/skills/</nowiki>{{#var:FemEn}}/{{{EngId}}}<nowiki>?apikey=<apikey></nowiki></code> (Female)
 +
{{#if:{{{KrId|}}}|
 +
* '''던전앤파이터 API Docs Link:'''
 +
:<code><nowiki>https://api.neople.co.kr/df/skills/</nowiki>{{#var:MaleKr}}/{{{KrId}}}<nowiki>?apikey=<apikey></nowiki></code> (Male)
 +
:<code><nowiki>https://api.neople.co.kr/df/skills/</nowiki>{{#var:FemKr}}/{{{KrId}}}<nowiki>?apikey=<apikey></nowiki></code> (Female)
 +
}}
 
|<!-- default single gender -->
 
|<!-- default single gender -->
 
{{#vardefine:ENJobID|{{Template:NeopleAPIJobId|{{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}}}}}
 
{{#vardefine:ENJobID|{{Template:NeopleAPIJobId|{{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}}}}}
 
{{#if:{{{KrId|}}}|
 
{{#if:{{{KrId|}}}|
{{#vardefine:KRJobID|{{#switch:{{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}
+
{{#vardefine:KRJobID|{{Template:NeopleAPIJobId|{{#show: {{{SkillName|{{PAGENAME}}}}}|?Class|link=none}}|Type=Kr}}}}
|Female Slayer=1645c45aabb008c98406b3a16447040d
+
}}* '''Dungeon Fighter Online API Docs Link:'''  
|Sword Master=df3870efe8e8754011cd12fa03cd275f
 
|Dark Templar=1ea78ae210f681a799feb4403a5c1e85
 
|Unknown}}}}}}* '''Dungeon Fighter Online API Docs Link:'''  
 
 
:<code><nowiki>https://api.dfoneople.com/df/skills/</nowiki>{{#var:ENJobID}}/{{{EngId}}}<nowiki>?apikey=<apikey></nowiki></code>
 
:<code><nowiki>https://api.dfoneople.com/df/skills/</nowiki>{{#var:ENJobID}}/{{{EngId}}}<nowiki>?apikey=<apikey></nowiki></code>
 
{{#if:{{{KrId|}}}|
 
{{#if:{{{KrId|}}}|

Revision as of 04:10, 18 May 2024

Template Documentation view

Parameters

Skill (Optional)

Is the API a skill? Set this parameter to 'y'. Empty parameter will default to items API

SkillName (Optional)

Setting this will override default PAGENAME

ClassName (Optional)

Setting this will override auto select class from SkillName

Gender (Optional)

Set this parameter to 'both' to display both Male and Female links

EngId Required

The english ID of the API such as skill or item

KrId (Optional)

The Korean ID of the API such as skill or item


Examples

Skill

{{Template:NeopleAPI
|Skill=y
|EngId=7ecc3f2a71e982b431fcf7284d944358
|KrId=7cf17936a039b418660424125dc968d7
}}

on page Ultimate Sword: Laevateinn produces


  • Dungeon Fighter Online API Docs Link:
https://api.dfoneople.com/df/skills/33909cf11ad79dec4befa8e8cfef941b/7ecc3f2a71e982b431fcf7284d944358?apikey=<apikey>
  • 던전앤파이터 API Docs Link:
https://api.neople.co.kr/df/skills/df3870efe8e8754011cd12fa03cd275f/7cf17936a039b418660424125dc968d7?apikey=<apikey>

Skill with gender

{{Template:NeopleAPI
|Skill=y
|Gender=Both
|EngId=982b431fcf7284d944358
|KrId=7b418660424125dc968d7
}}

on page Doppelganger produces


  • Dungeon Fighter Online API Docs Link:
https://api.dfoneople.com/df/skills/cb572073a5db60ca7f245363a79d1f22/982b431fcf7284d944358?apikey=<apikey> (Male)
https://api.dfoneople.com/df/skills/18ccc1f38ad764c77ec52dbaefce0c2e/982b431fcf7284d944358?apikey=<apikey> (Female)
  • 던전앤파이터 API Docs Link:
https://api.neople.co.kr/df/skills/ca0f0e0e9e1d55b5f9955b03d9dd213c/7b418660424125dc968d7?apikey=<apikey> (Male)
https://api.neople.co.kr/df/skills/a7a059ebe9e6054c0644b40ef316d6e9/7b418660424125dc968d7?apikey=<apikey> (Female)

Item

{{Template:NeopleAPI
|EngId=4bf7ead77fb22522662a8d1d83b1536d
|KrId=5ca915f03d8a5a625465366e58bdc67f
}}

produces


  • Dungeon Fighter Online API Docs Link:
https://api.dfoneople.com/df/items/4bf7ead77fb22522662a8d1d83b1536d?apikey=<apikey>
  • 던전앤파이터 API Docs Link:
https://api.neople.co.kr/df/items/5ca915f03d8a5a625465366e58bdc67f?apikey=<apikey>

Item without Korean ID

{{Template:NeopleAPI
|EngId=4bf7ead77fb22522662a8d1d83b1536d
}}

produces


  • Dungeon Fighter Online API Docs Link:
https://api.dfoneople.com/df/items/4bf7ead77fb22522662a8d1d83b1536d?apikey=<apikey>