Difference between revisions of "Template:GetPartOrRecipeName"

From ChatWars Wiki
Jump to: navigation, search
(Created page with "<includeonly><!-- -->{{#show: {{{page | {{PAGENAME}} }}} | {{#ifeq: {{{boolGetPart | true }}} | true | {{#vardefine: type | Piece of Equipment}} | {{#vardefin...")
 
m
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
-->{{#show: {{{page | {{PAGENAME}} }}}
+
-->{{#show: {{{1| {{PAGENAME}} }}}
   | {{#ifeq: {{{boolGetPart | true }}} | true
+
   | {{#ifeq: {{{2 | true }}} | true
 
       | {{#vardefine: type | Piece of Equipment}}
 
       | {{#vardefine: type | Piece of Equipment}}
 
       | {{#vardefine: type | Recipe (Item)}}
 
       | {{#vardefine: type | Recipe (Item)}}

Revision as of 23:29, 27 June 2021

Gets the name of either the part or recipe of a given item. Parameters:

  • page = GetPartOrRecipeName - The page to search for parts or recipes in
  • boolGetPart = true - Searches and returns the Piece of Equipment of the given page
  • boolGetPart = false - Searches and returns the Recipe (Item) of the given page