User:Alistaire/DefsStdExample
Jump to navigation
Jump to search
<nowiki>
Example DefsStd usage.
hideNotes = 1
Parents: <>Defs,<>ResearchProjectDefs
<>researchProjectDef | |
---|---|
Element | Contents |
<>defName | defName |
<>label | string (lc) |
<>description | string (ucfirst) |
<>totalCost | int |
<>researchMods | list item |
<>prerequisites | list item |
{{DefSTD-TH |tag=researchProjectDef|hideNotes=1 |parents={{DefSTD-Format|Defs}},{{DefSTD-Format|ResearchProjectDefs}}}} {{DefSTD-T |tag=defName|type=defName}} {{DefSTD-T |tag=label|type=str|typeInfo=[[Typeinfo:lc|lc]]}} {{DefSTD-T |tag=description|type=str|typeInfo=[[Typeinfo:ucfirst|ucfirst]]}} {{DefSTD-T |tag=totalCost|type=int}} {{DefSTD-T |tag=researchMods|type=li}} {{DefSTD-T |tag=prerequisites|type=li}} |}
Standard researchProjectDef
Parents: <>Defs,<>ResearchProjectDefs
<>researchProjectDef | ||
---|---|---|
Element | Contents | Notes |
<>defName | defName | The in-script defName of this research project, referenced by other research projects. |
<>label | string (lc) | The in-game name of this research project. Its first character is uppercased in some in-game instances. Existing labels can be found on the Research page. |
<>description | string (ucfirst) | The in-game description of this research project, shown in the research window. Existing descriptions can be found on the Research page. |
<>totalCost | int | The research cost of this research project. Existing costs can be found on the Research page. |
<>researchMods | list item | A list with list items containing <>specialAction tags. |
<>prerequisites | list item | What research projects are required to see this one. A list with list items containing defName tags from other research projects. Existing prerequisites can be found on the Research page. |
{{DefSTD-TH |tag=researchProjectDef |parents={{DefSTD-Format|Defs}},{{DefSTD-Format|ResearchProjectDefs}}}} {{DefSTD-T |tag=defName|type=defName |notes=The in-script defName of this research project, referenced by other research projects.}} {{DefSTD-T |tag=label|type=str|typeInfo=[[Typeinfo:lc|lc]] |notes=The in-game name of this research project. Its first character is uppercased in some in-game instances. Existing labels can be found on the [[Research]] page.}} {{DefSTD-T |tag=description|type=str|typeInfo=[[Typeinfo:ucfirst|ucfirst]] |notes=The in-game description of this research project, shown in the research window. Existing descriptions can be found on the [[Research]] page.}} {{DefSTD-T |tag=totalCost|type=int |notes=The research cost of this research project. Existing costs can be found on the [[Research]] page.}} {{DefSTD-T |tag=researchMods|type=li |notes=A list with list items containing {{DefSTD-Format|specialAction}} tags.}} {{DefSTD-T |tag=prerequisites|type=li |notes=What research projects are required to see this one. A list with list items containing {{DefSTD-Datatype|defName}} tags from other research projects. Existing prerequisites can be found on the [[Research]] page.}} |}
showExamples = 1
Parents: <>Defs,<>ResearchProjectDefs
<>researchProjectDef | |||
---|---|---|---|
Element | Contents | Notes | Examples |
<>defName | defName | The in-script defName of this research project, referenced by other research projects. | <defName>Brewing</defName>
|
<>label | string (lc) | The in-game name of this research project. Its first character is uppercased in some in-game instances. Existing labels can be found on the Research page. | <label>stonecutting</label>
|
<>description | string (ucfirst) | The in-game description of this research project, shown in the research window. Existing descriptions can be found on the Research page. | <description>Miner's picks are 20% more effective.</description>
|
<>totalCost | int | The research cost of this research project. Existing costs can be found on the Research page. | <totalCost>1000</totalCost>
|
<>researchMods | list item | A list with list items containing <>specialAction tags. | <researchMods>
|
<>prerequisites | list item | What research projects are required to see this one. A list with list items containing defName tags from other research projects. Existing prerequisites can be found on the Research page. | <prerequisites>
|
{{DefSTD-TH |tag=researchProjectDef|showExamples=1 |parents={{DefSTD-Format|Defs}},{{DefSTD-Format|ResearchProjectDefs}}}} {{DefSTD-T |tag=defName|type=defName |examples=Brewing |notes=The in-script defName of this research project, referenced by other research projects.}} {{DefSTD-T |tag=label|type=str |examples=stonecutting|typeInfo=[[Typeinfo:lc|lc]] |notes=The in-game name of this research project. Its first character is uppercased in some in-game instances. Existing labels can be found on the [[Research]] page.}} {{DefSTD-T |tag=description|type=str |examples=Miner's picks are 20% more effective.|typeInfo=[[Typeinfo:ucfirst|ucfirst]] |notes=The in-game description of this research project, shown in the research window. Existing descriptions can be found on the [[Research]] page.}} {{DefSTD-T |tag=totalCost|type=int |examples=1000 |notes=The research cost of this research project. Existing costs can be found on the [[Research]] page.}} {{DefSTD-T |tag=researchMods|type=li |examples=<br/> <li><br/> <specialAction>ResearchModsSpecial.GunTurretCooling</specialAction><br/> </li><br/> |notes=A list with list items containing {{DefSTD-Format|specialAction}} tags.}} {{DefSTD-T |tag=prerequisites|type=li |examples=<br/> <li>ShipBasics</li><br/> <li>Cryptosleep</li><br/> |notes=What research projects are required to see this one. A list with list items containing {{DefSTD-Datatype|defName}} tags from other research projects. Existing prerequisites can be found on the [[Research]] page.}} |}