Difference between revisions of "User:Dr. Strangelove/Test/Alpha"

From RimWorld Wiki
Jump to navigation Jump to search
m
m (Undo revision 82704 by Dr. Strangelove (talk))
Tag: Undo
Line 1: Line 1:
 
{{#vardefine:defName|Hare}}<!--
 
{{#vardefine:defName|Hare}}<!--
  
   the most direct way of retrieveing data
+
   simple
  
-->{{#vardefine:MoveSpeed
+
-->{{#vardefine:MoveSpeed|{{#invoke:Test|query|Races|{{#var:defName}}|MoveSpeed}}}}<!--
    |{{#invoke:Test
+
-->{{#vardefine:description|{{#invoke:Test|query|Races|{{#var:defName}}|description}}}}<!--
      |query
 
      |Races
 
      |{{#var:defName}}
 
      |MoveSpeed
 
    }}
 
  }}<!--
 
-->{{#vardefine:description
 
    |{{#invoke:Test
 
      |query
 
      |Races
 
      |{{#var:defName}}
 
      |description
 
    }}
 
  }}<!--
 
  
   magic via another template call (prettier to look at)
+
   magic via another template
  
-->{{User:Dr. Strangelove/Test/Alpha/sandbox
+
-->{{User:Dr. Strangelove/Test/Alpha/sandbox|Races|Hare|baseBodySize}}<!--
    |Races
 
    |Hare
 
    |baseBodySize
 
  }}<!--
 
  
   variable defined in Lua script with frame:callParserFunction('#vardefine', ...)
+
   frame:callParserFunction in Lua script
  
-->{{#invoke:Test
+
-->{{#invoke:Test|vardefine|Races|{{#var:defName}}|MarketValue}}
    |vardefine
 
    |Races
 
    |{{#var:defName}}
 
    |MarketValue
 
  }}
 
 
<dl>
 
<dl>
 
   <dt>defName</dt>
 
   <dt>defName</dt>

Revision as of 14:11, 13 March 2021

Script error: The function "vardefine" does not exist.

defName
Hare
MoveSpeed
description
baseBodySize
MarketValue