Template:Infobox/sandbox: Difference between revisions
space-age variants of required tech, allows and effects. Not happy with location of required techs for recipes |
Keep (research) suffix in technology infoboxes |
||
(38 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
| Production = production | | Production = production | ||
| Intermediate products = intermediates | | Intermediate products = intermediates | ||
| Space = space | |||
| Combat = combat | | Combat = combat | ||
| Technology = technology | | Technology = technology | ||
Line 12: | Line 13: | ||
{| style="padding: 5px 0;" | {| style="padding: 5px 0;" | ||
| valign="top" style="width:32px;" |{{Icon|{{{icon|{{No language suffix/No namespace}}}}}|||space-age={{{space-age|}}}}} | | valign="top" style="width:32px;" |{{Icon|{{{icon|{{No language suffix/No namespace}}}}}|||space-age={{{space-age|}}}}} | ||
| class="infobox-header-text" | <span>{{Translation|{{{name| | | class="infobox-header-text" | <span>{{Translation|{{{name|{{No language suffix/No namespace}}}}} }}</span> | ||
|class="plainlinks infobox-edit-link" valign="top" style="display: none;" | [{{fullurl:{{ns:3002}}:{{#replace:{{No language suffix/No namespace}}| |_}}|action=edit}} {{Translation|Edit}}] | |class="plainlinks infobox-edit-link" valign="top" style="display: none;" | [{{fullurl:{{ns:3002}}:{{#replace:{{No language suffix/No namespace}}| |_}}|action=edit}} {{Translation|Edit}}] | ||
|} | |} | ||
Line 20: | Line 21: | ||
[[File:{{{image}}}{{#ifeq: {{#explode: {{{image}}}|.|1}}||.png}}]] | [[File:{{{image}}}{{#ifeq: {{#explode: {{{image}}}|.|1}}||.png}}]] | ||
</div> | </div> | ||
}} | }} | ||
{{#if: {{{changed-by-space-age-mod|}}} | | {{#if: {{{changed-by-space-age-mod|}}} | | ||
<tabber> | <ul class="tabber"><li class="tab-head tab-head-1 tab-head-active" data-name="{{Translation|Base game}}">{{Translation|Base game}}</li> <li class="tab-head tab-head-2" data-name="{{Translation|Space Age mod}}">{{Translation|Space Age mod}}</li></ul> | ||
{{Translation|Base game}} | <table class="tab tab-1"> | ||
{{#invoke:Infobox/sandbox|base_tab}} | |||
{{ | |||
</table> | </table> | ||
<table class="tab tab-2 hidden"> | |||
{{#invoke:Infobox/sandbox|space_age_tab}} | |||
<table | |||
</table> | </table> | ||
| | | | ||
<table> | <table> | ||
{{#invoke:Infobox/sandbox|base_tab}} | |||
</table> | </table> | ||
}} | }} | ||
</div>{{#ifeq: {{{space-age|}}} | yes | {{#ifeq: {{NAMESPACE}} | Infobox | | {{#ifeq: {{NAMESPACE}} | Template | | {{Category|Space Age}} }} }} }}{{#seo: | |||
< | |||
|og:site_name=Official Factorio Wiki | |og:site_name=Official Factorio Wiki | ||
|og:type=article | |og:type=article | ||
|title={{Translation|{{No_language_suffix/No_namespace}}}} - Factorio Wiki | |title={{Translation|{{No_language_suffix/No_namespace}}}} - Factorio Wiki | ||
|og:image={{#if:{{{image|}}}|https://{{SERVERNAME}}/images/{{ucfirst:{{#replace:{{#if:{{{image|}}}|{{{image}}}{{#ifeq:{{#explode:{{{image}}}|.|1}}||.png}}|}}| |_}}}}|https://{{SERVERNAME}}/images/{{ucfirst:{{#replace:{{ConvertName|{{{icon|{{No_language_suffix/No_namespace}}}}}}}| |_}}}}.png}} | |og:image={{#if:{{{image|}}}|https://{{SERVERNAME}}/images/{{ucfirst:{{#replace:{{#if:{{{image|}}}|{{{image}}}{{#ifeq:{{#explode:{{{image}}}|.|1}}||.png}}|}}| |_}}}}|https://{{SERVERNAME}}/images/{{ucfirst:{{#replace:{{ConvertName|{{{icon|{{No_language_suffix/No_namespace}}}}}}}| |_}}}}.png}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
{{Infobox/sandbox | {{Infobox/sandbox | ||
|extra1 = foo | |||
|space-age-extra1 = foo-changed | |||
|prototype-type = item | |prototype-type = item | ||
|internal-name = item-that-is-in-both-mods | |internal-name = item-that-is-in-both-mods | ||
|icon = rocket silo | |icon = rocket silo | ||
|health = 350 | |||
|science-capacity={{Quality|100%|200%|300%|400%|600%}} | |||
|changed-by-space-age-mod=yes | |changed-by-space-age-mod=yes | ||
|space-age-total-raw = Time, 5 + Superconductor, 2 + Holmium ore, 234 + Iron plate, 3 | |space-age-total-raw = Time, 5 + Superconductor, 2 + Holmium ore, 234 + Iron plate, 3 | ||
|space-age-recipe = Time, 0.5 + Superconductor, 234 + Steel plate, 5 + Rail ramp, 3 | |space-age-recipe = Time, 0.5 + Superconductor, 234 + Steel plate, 5 + Rail ramp, 3 | ||
|category = Intermediate products | |category = Intermediate products | ||
|stack-size=200 | |stack-size=2000 | ||
|space-age-stack-size=200 | |||
|recipe = Time, 0.5 + Copper cable, 3 + Iron plate, 1 = Electronic circuit, 3 | |recipe = Time, 0.5 + Copper cable, 3 + Iron plate, 1 = Electronic circuit, 3 | ||
|total-raw = Time, 1.25 + Copper plate, 1.5 + Iron plate, 1 | |total-raw = Time, 1.25 + Copper plate, 1.5 + Iron plate, 1 | ||
|producers = Assembling machine + Player + Foundry | |producers = Assembling machine + Player | ||
|space-age-producers = Assembling machine + Player + Foundry | |||
|consumers = Advanced circuit + Arithmetic combinator + Foundation | |consumers = Advanced circuit + Arithmetic combinator + Foundation | ||
|required-technologies = Production science pack + Rocket fuel + Uranium processing | |required-technologies = Production science pack + Rocket fuel + Uranium processing | ||
Line 179: | Line 65: | ||
}} | }} | ||
{{Infobox/sandbox | {{Infobox/sandbox | ||
|extra1 = foo | |||
|prototype-type = item | |prototype-type = item | ||
|internal-name = satellite | |internal-name = satellite | ||
|icon = satellite | |icon = satellite | ||
|space-age=no | |space-age=no | ||
|category = | |category = Space | ||
|stack-size=200 | |stack-size=200 | ||
|recipe = Time, 0.5 + Copper cable, 3 + Iron plate, 1 = Electronic circuit, 3 | |recipe = Time, 0.5 + Copper cable, 3 + Iron plate, 1 = Electronic circuit, 3 | ||
Line 191: | Line 78: | ||
}} | }} | ||
{{Infobox/sandbox | {{Infobox/sandbox | ||
|extra1 = foo | |||
|spoil-time = {{Quality|2h 5m 50s|2h 43m 34s|3h 21m 20s|3h 59m 5s|5h 14m 35s}} | |||
|health={{Quality|200|300|400|500|600}} | |||
|spoil-result = spoilage | |||
|crafted-on = vulcanus | |||
|buildable-on = gleba | |||
|recycling-results = Iron plate, 2 + Copper plate, 0.25 | |||
|rocket-capacity = 50 | |||
|prototype-type = item | |prototype-type = item | ||
|internal-name = space-age-only | |internal-name = space-age-only | ||
|icon = foundry | |icon = foundry | ||
|storage-size = 20 | |||
|space-age-storage-size = 100 | |||
|space-age=yes | |space-age=yes | ||
|total-raw = Time, 5 + Superconductor, 2 + Holmium ore, 234 + Iron plate, 3 | |total-raw = Time, 5 + Superconductor, 2 + Holmium ore, 234 + Iron plate, 3 | ||
Line 203: | Line 100: | ||
}} | }} | ||
{{Infobox/sandbox | {{Infobox/sandbox | ||
|extra1 = foo | |||
|allows = Atomic bomb | |allows = Atomic bomb | ||
|space-age-allows = Atomic bomb+Atomic bomb+Atomic bomb | |space-age-allows = Atomic bomb+Atomic bomb+Atomic bomb | ||
|prototype-type = technology | |prototype-type = technology | ||
|internal-name = kovarex-enrichment-process | |internal-name = kovarex-enrichment-process | ||
|category = | |category = Combat | ||
|changed-by-space-age-mod=yes | |changed-by-space-age-mod=yes | ||
|cost = Time, 30 + Automation science pack, 1 + Logistic science pack, 1 + Chemical science pack, 1 + Production science pack, 1 | |cost = Time, 30 + Automation science pack, 1 + Logistic science pack, 1 + Chemical science pack, 1 + Production science pack, 1 | ||
Line 217: | Line 115: | ||
|effects = Kovarex enrichment process + Nuclear fuel | |effects = Kovarex enrichment process + Nuclear fuel | ||
|space-age-effects = Nuclear fuel + Nuclear fuel + Nuclear fuel | |space-age-effects = Nuclear fuel + Nuclear fuel + Nuclear fuel | ||
}} | |||
{{Infobox/sandbox | |||
|prototype-type = item | |||
|internal-name = advanced-circuit | |||
|category = Intermediate products | |||
|stack-size=200 | |||
|recipe = Time, 6 + Copper cable, 4 + Electronic circuit, 2 + Plastic bar, 2 | |||
|total-raw = Time, 9.5 + Copper plate, 5 + Iron plate, 2 + Plastic bar, 2 | |||
|required-technologies = Advanced circuit | |||
|producers = Assembling machine + Player | |||
|consumers = Active provider chest + Artillery turret + Artillery wagon + Beacon + Belt immunity equipment + Buffer chest + Bulk inserter + Centrifuge + Chemical science pack + Distractor capsule + Efficiency module + Efficiency module 2 + Efficiency module 3 + Electric furnace + Energy shield + Express splitter + Logistic robot + Modular armor + Nightvision + Nuclear reactor + Passive provider chest + Personal roboport + Processing unit + Productivity module + Productivity module 2 + Productivity module 3 + Requester chest + Roboport + Selector combinator + Portable solar panel + Speed module + Speed module 2 + Speed module 3 + Storage chest + Substation + Tank | |||
|changed-by-space-age-mod=yes | |||
|space-age-consumers = Active provider chest + Beacon + Belt immunity equipment + Big mining drill + Buffer chest + Bulk inserter + Centrifuge + Chemical science pack + Distractor capsule + Efficiency module + Efficiency module 2 + Efficiency module 3 + Electric furnace + Energy shield + Express splitter + Logistic robot + Modular armor + Nightvision + Nuclear reactor + Passive provider chest + Personal roboport + Processing unit + Productivity module + Productivity module 2 + Productivity module 3 + Quality module + Quality module 2 + Quality module 3 + Requester chest + Roboport + Selector combinator + Portable solar panel + Speed module + Speed module 2 + Speed module 3 + Storage chest + Substation + Tank + Toolbelt equipment | |||
}} | |||
{{Infobox/sandbox | |||
|prototype-type = technology | |||
|internal-name = speed-module-3 | |||
|category = Technology | |||
|cost = Time, 60 + Automation science pack, 1 + Logistic science pack, 1 + Chemical science pack, 1 + Production science pack, 1 | |||
|cost-multiplier = 300 | |||
|required-technologies = Production science pack + Speed module 2, 2 | |||
|allows = Rocket silo | |||
|effects = Speed module 3 | |||
|changed-by-space-age-mod=yes | |||
|space-age-cost = Time, 60 + Automation science pack, 1 + Logistic science pack, 1 + Chemical science pack, 1 + Space science pack, 1 + Metallurgic science pack, 1 | |||
|space-age-cost-multiplier = 2000 | |||
|space-age-required-technologies = Metallurgic science pack + Speed module 2, 2 | |||
|space-age-allows = none | |||
}} | |||
{{Infobox/sandbox | |||
|prototype-type = technology | |||
|internal-name = speed-module-3 | |||
|category = Logistics | |||
|cost = Time, 60 + Automation science pack, 1 + Logistic science pack, 1 + Chemical science pack, 1 + Production science pack, 1 | |||
|cost-multiplier = 300 | |||
|required-technologies = Production science pack + Speed module 2, 2 | |||
|allows = Rocket silo | |||
|effects = Speed module 3 | |||
|changed-by-space-age-mod=yes | |||
|space-age-technology-trigger = build-entity: asteroid collector | |||
|space-age-cost = none | |||
}} | |||
{{Infobox/sandbox | |||
|prototype-type = technology | |||
|internal-name = speed-module-3 | |||
|category = Production | |||
|required-technologies = Production science pack + Speed module 2, 2 | |||
|allows = Rocket silo | |||
|effects = Speed module 3 | |||
|technology-trigger = capture-spawner | |||
}} | |||
{{Infobox/sandbox | |||
|prototype-type = technology | |||
|internal-name = speed-module-3 | |||
|category = Technology | |||
|changed-by-space-age-mod=yes | |||
|technology-trigger = capture-spawner | |||
|space-age-technology-trigger = craft-item: iron plate, 50 | |||
}} | |||
{{Infobox/sandbox | |||
|mining-time = 0.5 | |||
|map-color = 006090 | |||
|total-raw = Time, 16 + Concrete, 20 + Copper plate, 100 + Iron plate, 8 + Steel plate, 50 + Stone, 10 | |||
|category = Production | |||
|health = {{Quality|500|650|800|950|1250}} | |||
|image = heating_tower_entity.png | |||
|dimensions = 3×3 | |||
|stack-size = 20 | |||
|energy = 16 MW burner | |||
|heat-output = 40 {{Translation|MW}} heat | |||
|maximum-temperature = 1000 °C | |||
|valid-fuel=Wood + Coal + Solid fuel + Carbon + Rocket fuel + Nuclear fuel + Yumako seed + Jellynut seed + Tree seed + Yumako + Jellynut + Spoilage + Yumako mash + Biter egg + Pentapod egg | |||
|recipe = Time, 10 + Concrete, 20 + Boiler, 2 + Heat pipe, 5 | |||
|required-technologies=Heating tower | |||
|producers = Assembling machine + Player | |||
|rotation-speed= 390 {{Translation|°/s}} | |||
|asteroid-collection-area = 9×9 | |||
|asteroid-collection-arm-speed = 42 {{Translation|km/h}} | |||
|asteroid-collection-arm-count = 5 | |||
|resource-drain = 20% | |||
|science-pack-drain = 40% | |||
|base-productivity = 30% | |||
|radar-coverage-distance = {{Quality|1|2|3|4|6}} | |||
|research-speed = 1 | |||
|name= Best tech (research) | |||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 11:10, 7 February 2025
[View] [Edit] [Page history]
DocumentationThis template is designed to be used to describe an item or machine, using a box of info.
This template uses functions from Module:Infobox.
Usage
To use, create a page in the infobox namespace by prepending Infobox: to the page you are trying to add an infobox to, so that the new pages is called Infobox:(whatever the page name is). Then, on the page, add the line {{:Infobox:Page_name}}
. This will "copy" the infobox you create on Infobox:... to the page itself. Of course, replace Page_name with the name of the page.
As for the infobox on Infobox:..., start with the line: {{Infobox
. Then, on the next few lines, start with the pipe character, |, then place a parameter, and set it equal to the value you wish it to be. Then, end the parameter lines with two curly-brackets. "}}", and the line <noinclude>[[Category:Infobox page]]</noinclude>
.
Example working box:
{{Infobox |category = Logistics |health=100 |stack-size=50 |wire-reach=9 |supply-area=7×7 |recipe=Time, 0.5 + Steel plate, 2 + Copper plate, 2 |required-technologies=Electric energy distribution 1 |producers=Player + Assembling machine }} <noinclude>[[Category:Infobox page]]</noinclude>
Additionally, the infobox will automatically translate. Just "copy" the infobox (the same way, from Infobox:...) to the page, as done for the English page. ({{:Infobox:Page name}}
)
If you need further help, contact a wiki admin or look at existing examples, on actual pages.
Syntax
Recipe
The "recipe" parameter should be used as follows:
|recipe = wood, 4 = wooden chest, 1
Basically,
item1, quantity = output item, quantity.
Separate multiple items with +.
Technology trigger
The "technology-trigger" parameter should be used as follows:
|technology-trigger = trigger-type: Item, count
The trigger type can be one of the following:
mine-entity
build-entity
craft-item
capture-spawner
create-space-platform
send-item-to-orbit
The items and counts are optional, when they are left out then the colon after the trigger-type should also be removed.
|technology-trigger = capture-spawner
Quality
If a property is affected by quality, add the quality template around the different numbers for the quality levels. For example, the max health of an entity is affected by quality and formatted as follows:
|health = {{Quality|200|260|320|380|500}}
Because quality solely adds information to base game items and does not override or remove values, it is applied directly to the base properties (without space-age) and does not require "changed-by-space-age-mod" to be set.
Parameters
A list of valid parameters is provided below. Since this infobox is general purpose, not all must be used, however some are required. Required parameters are shown in red. Please be as descriptive as possible when making infoboxes.
Tip: This is a large table. After expanding, use CTRL
+ F
in most browsers to search through this table easily.
Available Parameters
Infobox/sandbox |
- Base game
- Space Age mod
Infobox/sandbox |
Recipe |
|
+ + → | |
Total raw |
|
+ + | |
foo |
|
Stack size |
200 |
Prototype type |
|
Internal name |
satellite |
Produced by |
|
Consumed by |
|
Infobox/sandbox |
Recipe |
|||||||||||||
+ + + → | |||||||||||||
Total raw |
|||||||||||||
+ + + | |||||||||||||
foo |
|||||||||||||
Storage size |
20 |
||||||||||||
Health |
|
||||||||||||
Stack size |
200 |
||||||||||||
50 |
|||||||||||||
|
|||||||||||||
Prototype type |
|||||||||||||
Internal name |
space-age-only |
||||||||||||
Produced by |
|||||||||||||
Consumed by |
|||||||||||||
Infobox/sandbox |
- Base game
- Space Age mod
Cost |
|
✖ 1500 | |
foo |
|
Prototype type |
|
Internal name |
kovarex-enrichment-process |
Required technologies |
|
Allows |
|
Effects |
|
Infobox/sandbox |
- Base game
- Space Age mod
Recipe |
|
+ + + → | |
Total raw |
|
+ + + | |
Stack size |
200 |
Prototype type |
|
Internal name |
advanced-circuit |
Required technologies |
|
Produced by |
|
Consumed by |
|
Infobox/sandbox |
- Base game
- Space Age mod
Cost |
|
✖ 300 | |
Prototype type |
|
Internal name |
speed-module-3 |
Required technologies |
|
Allows |
|
Effects |
|
Infobox/sandbox |
- Base game
- Space Age mod
Cost |
|
✖ 300 | |
Prototype type |
|
Internal name |
speed-module-3 |
Required technologies |
|
Allows |
|
Effects |
|
Infobox/sandbox |
Researched by |
|
Capture any spawner. |
|
Prototype type |
|
Internal name |
speed-module-3 |
Required technologies |
|
Allows |
|
Effects |
|
Infobox/sandbox |
- Base game
- Space Age mod
Researched by |
|
Capture any spawner. |
|
Prototype type |
|
Internal name |
speed-module-3 |
Best tech (research) |
Recipe |
|||||||||||||
+ + + → | |||||||||||||
Total raw |
|||||||||||||
+ + + + + | |||||||||||||
Map color |
|||||||||||||
Health |
|
||||||||||||
Stack size |
20 |
||||||||||||
Radar coverage distance |
|
||||||||||||
Dimensions |
3×3 |
||||||||||||
Energy consumption |
16 MW (burner) |
||||||||||||
Rotation speed |
390 °/s |
||||||||||||
Collection area |
9×9 |
||||||||||||
Collection arm speed |
42 km/h |
||||||||||||
Collection arm count |
5 |
||||||||||||
Heat output |
40 MW heat |
||||||||||||
Maximum temperature |
1000 °C |
||||||||||||
Research speed |
1 |
||||||||||||
Mining time |
0.5 |
||||||||||||
Resource drain |
20% |
||||||||||||
Science pack drain |
40% |
||||||||||||
Base productivity |
30% |
||||||||||||
Required technologies |
|||||||||||||
Produced by |
|||||||||||||
Valid fuel |
|||||||||||||