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

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

Revision as of 14:10, 13 March 2021

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

defName
Hare
MoveSpeed
description
baseBodySize
MarketValue