(merge from offical wiki) |
无编辑摘要 |
||
| 第8行: | 第8行: | ||
| h5 = <h5>{{{project_name}}}</h5> | | h5 = <h5>{{{project_name}}}</h5> | ||
}} | }} | ||
|content = {{#if:{{{version|}}}|{{SVersion|{{{version}}}|infobox}}|<span style="color: red;"> | |content = {{#if:{{{version|}}}|{{SVersion|{{{version}}}|infobox}}|<span style="color: red;"> 缺失版本管理</span>[[Category: 包含无版本管理信息框的页面]] | ||
---- | ---- | ||
}} | }} | ||
| 第18行: | 第18行: | ||
{{!}}- valign="top" | {{!}}- valign="top" | ||
{{!}}width=60%{{!}} | {{!}}width=60%{{!}} | ||
<span class="subheading"> | <span class="subheading"> 要求:</span><br> | ||
{{{requirements|*None}}} | {{{requirements|*None}}} | ||
{{#if:{{{mutually_exclusive|}}} | {{#if:{{{mutually_exclusive|}}} | ||
| <span class="subheading">{{icon|no}} | | <span class="subheading">{{icon|no}} 互斥:</span> | ||
{{{mutually_exclusive|}}} | {{{mutually_exclusive|}}} | ||
}} | }} | ||
{{!}}width=40%{{!}} {{#if:{{{cost|}}} | {{!}}width=40%{{!}} {{#if:{{{cost|}}} | ||
| <span class="subheading">{{icon|research}} | | <span class="subheading">{{icon|research}} 研究花费:</span><br> | ||
{{#switch: {{{tech_department}}} | {{#switch: {{{tech_department}}} | ||
| physics = * {{icon|Physics}} '''{{{cost}}}''' | | physics = * {{icon|Physics}} '''{{{cost}}}''' 物理学研究 | ||
| society = * {{icon|Society}} '''{{{cost}}}''' | | society = * {{icon|Society}} '''{{{cost}}}''' 社会学研究 | ||
| engineering = * {{icon|Engineering}} '''{{{cost}}}''' | | engineering = * {{icon|Engineering}} '''{{{cost}}}''' 工程学研究 | ||
| ''"tech_department"'' | | ''"tech_department"'' 必须填三种研究(physics、society、engineering)之一。 | ||
}} | }} | ||
}} | }} | ||
{{#if:{{{days_to_research|}}} | {{#if:{{{days_to_research|}}} | ||
| <span class="subheading">{{icon|time}} | | <span class="subheading">{{icon|time}} 研究时间:</span><br> | ||
* | * 在 '''{{{days_to_research}}}''' 天内完成<br> | ||
}} | }} | ||
{{#if:{{{time_limit|}}} | {{#if:{{{time_limit|}}} | ||
| <span class="subheading">{{icon|time}} | | <span class="subheading">{{icon|time}} 过期:</span><br> | ||
* | * 在 '''{{{time_limit}}}''' 天后过期<br> | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
{{!}}colspan="2"{{!}}<hr /> | {{!}}colspan="2"{{!}}<hr /> | ||
<div class="subheading">{{icon|yes}} | <div class="subheading">{{icon|yes}} 成功:</div> | ||
{{{on_success}}} | {{{on_success}}} | ||
{{#if:{{{on_fail|}}} | {{#if:{{{on_fail|}}} | ||
| <div class="subheading">{{icon|no}} | | <div class="subheading">{{icon|no}} 失败:</div> | ||
{{{on_fail}}} | {{{on_fail}}} | ||
}} | }} | ||
| 第55行: | 第55行: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
''' | ''' 特殊项目''' (Special project) can be used to display description, requirements, and costs of a special project in a compact infobox. | ||
==Parameter== | ==Parameter== | ||
{| class = "wikitable" | {| class = "wikitable" | ||
| 第206行: | 第206行: | ||
|on_fail = *Gets event | |on_fail = *Gets event | ||
}} | }} | ||
[[Category: | [[Category: 信息框]][[en:{{FULLPAGENAME}}]]</noinclude> | ||
2022年3月9日 (三) 18:46的最新版本
特殊项目(Special project) can be used to display description, requirements, and costs of a special project in a compact infobox.
Parameter[编辑源代码]
| Parameter | Description | Default | Status |
|---|---|---|---|
| version | To specify the major patch for which the event was written or updated. | empty | Required |
| project_key | Special project identification code as it appears in the file to serve as an anchor | empty | Optional |
| header | Header level of the project name. Accepts h2, h3, h4, and h5. | h3 | Optional |
| project_name | Title of the special project. | {{{PROJECT_NAME}}} | Optional, but desired |
| project_text | Ingame description text of the special project. | empty | Optional, but desired |
| requirements | Conditions that must be met to begin the special project, if any. | * None | Optional |
| mutually_exclusive | Other special projects of which only one can be researched. | empty | Optional |
| tech_department | The type of research points the special project costs, if any. Must be one of the following (capitalization matters):
|
empty | Required if using "cost" |
| cost | The cost in research points needed to complete the special project, if any. | empty | One of these two is required |
| days_to_research | The fixed amount of time it takes to complete the special project. | empty | |
| time_limit | The amount of time before the special project expires, if any. | empty | Optional |
| on_success | The effects of completing the special project. | {{{on_success}}} | Optional, but desired |
| on_fail | The effects of failing the special project. | empty | Optional |
Examples[编辑源代码]
For a special project requiring 1000
{{Special_project
|version = Timeless
|project_name = Social Study
|project_text = Studying our population's behaviour should grant us several insights into improving efficiency.
|tech_department = society
|cost = 1000
|on_success = *Gets event
}}
Produces:
Social Study
For a special project requiring a scientist of at least level 1, taking 180 days:
{{Special_project
|version = Timeless
|project_name = Ruined Ship
|project_text = A ruined ship has been spotted and must be investigated.
|requirements =
* At least level 1 scientist in orbit.
|days_to_research = 180
|on_success = *Gets event
}}
Produces:
Ruined Ship
A ruined ship has been spotted and must be investigated.
|
要求:
|
|
| |
For a special project that times out in 180 days and is mutually exclusive with another:
{{Special_project
|version = Timeless
|project_name = Dismantle Station
|project_text = A station in decaying orbit must be dismantled before it can fall.
|requirements =
* At least level 1 scientist in orbit.
|mutually_exclusive =
* Boost Station
|days_to_research = 90
|time_limit = 180
|on_success = *Gets event
|on_fail = *Gets event
}}
Produces:
Dismantle Station
A station in decaying orbit must be dismantled before it can fall.
|
要求:
|
|
| |