Template:Project: Difference between revisions
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
category=techCategory, | category=techCategory, | ||
rcost=researchCost, | rcost=researchCost, | ||
onetime=oneTimeGlobally, | |||
repeatable=repeatable, | |||
achance=factionAvailableChance, | |||
iuchance=initialUnlockChance, | |||
duchance=deltaUnlockChance, | |||
muchance=maxUnlockChance, | |||
freq0=factionPrereq/0, | |||
freq1=factionPrereq/1, | |||
freq2=factionPrereq/2, | |||
freq3=factionPrereq/3, | |||
freq4=factionPrereq/4, | |||
freq5=factionPrereq/5, | |||
falways=factionAlways, | |||
preq0=prereqs/0, | preq0=prereqs/0, | ||
preq1=prereqs/1, | preq1=prereqs/1, | ||
| Line 40: | Line 53: | ||
| colspan=4| {{TIProjectTemplateEN|TIProjectTemplate.description.{{{1}}} }} | | colspan=4| {{TIProjectTemplateEN|TIProjectTemplate.description.{{{1}}} }} | ||
|- | |- | ||
! colspan=4|Prerequisites{{#get_inline_data:text= | {{#switch: true | ||
| {{#external_value: repeatable}} = ! <big>Repeatable Project</big> | |||
{{!}} style="text-align:left;" colspan=3 {{!}} Can be researched an unlimited number of times, but research cost is multiplied by (1 + number of times researched). | |||
| {{#external_value: onetime}} = ! <big>Global Project</big> | |||
{{!}} style="text-align:left;" colspan=3 {{!}} Can be researched by only one faction. As soon as a faction researches this project, it is removed from all factions. Global projects usually give a global bonus (such as nation claims) that all factions can potentially benefit from, but may also have smaller bonuses that are only given to the faction that researches the project. | |||
}} | |||
|- | |||
! rowspan=2| Base Unlock Chance !! colspan=3| Monthly Available Chance | |||
|- | |||
! Initial !! Monthly Increase !! Maximum | |||
|- | |||
| style="width: 25%;" | {{#if: {{#external_value:achance}} | {{#external_value:achance}}% | 100%}} | |||
| style="width: 25%;" | {{#if: {{#external_value:iuchance}} | {{#external_value:iuchance}}% | 100%}} | |||
| style="width: 25%;" | {{#if: {{#external_value:duchance}} | {{#external_value:duchance}}% | 0%}} | |||
| style="width: 25%;" | {{#if: {{#external_value:muchance}} | {{#external_value:muchance}}% | 100%}} | |||
|- | |||
! colspan=2| Available to Faction(s) | |||
! colspan=2| Guaranteed for Faction{{#get_external_data:text= | |||
DestroyCouncil=destroy | |||
ResistCouncil=resist | |||
EscapeCouncil=escape | |||
ExploitCouncil=exploit | |||
CooperateCouncil=cooperate | |||
AppeaseCouncil=appease | |||
SubmitCouncil=submit | |||
}} | |||
|- | |||
| colspan=2| {{#if: {{#external_value:freq0}} | {{icon | {{#external_value: {{#external_value:freq0}} }} }} | All}} {{#if: {{#external_value:freq1}} | {{icon | {{#external_value: {{#external_value:freq1}} }} }} }} {{#if: {{#external_value:freq2}} | {{icon | {{#external_value: {{#external_value:freq2}} }} }} }} {{#if: {{#external_value:freq3}} | {{icon | {{#external_value: {{#external_value:freq3}} }} }} }} {{#if: {{#external_value:freq4}} | {{icon | {{#external_value: {{#external_value:freq4}} }} }} }} {{#if: {{#external_value:freq5}} | {{icon | {{#external_value: {{#external_value:freq5}} }} }} }} | |||
| colspan=2| {{#if: {{#external_value:falways}} | {{#ifeq: {{#external_value:falways}} | Random | Random Faction | {{icon | {{#external_value: {{#external_value:falways}} }} }} }} }} | |||
|- | |||
! colspan=4| Tech and Project Prerequisites{{#get_inline_data:text= | |||
added:1 | added:1 | ||
}} | }} | ||
| Line 953: | Line 996: | ||
}}{{#for_external_table:| {{#iferror: ({{{pchance}}}%) [[{{{postreq}}}|{{#external_value:{{{postreq}}} }}]] • }} }}{{#clear_external_data:postreq|pchance}}{{#get_web_data: | }}{{#for_external_table:| {{#iferror: ({{{pchance}}}%) [[{{{postreq}}}|{{#external_value:{{{postreq}}} }}]] • }} }}{{#clear_external_data:postreq|pchance}}{{#get_web_data: | ||
|url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIProjectTemplate_CSV?prereqs/4={{{1}}}&disable= | |url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIProjectTemplate_CSV?prereqs/4={{{1}}}&disable= | ||
|data= | |||
postreq=dataName, | |||
pchance=factionAvailableChance, | |||
|format=CSV with Header | |||
}}{{#for_external_table:| {{#iferror: ({{{pchance}}}%) [[{{{postreq}}}|{{#external_value:{{{postreq}}} }}]] • }} }}{{#clear_external_data:postreq|pchance}}{{#get_web_data: | |||
|url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIProjectTemplate_CSV?altPrereq0={{{1}}}&disable= | |||
|data= | |data= | ||
postreq=dataName, | postreq=dataName, | ||
| Line 974: | Line 1,023: | ||
== Usage == | == Usage == | ||
To get the | To get the Project_CommercialRocketCompanies project for example: | ||
<pre>{{project| | <pre>{{project|Project_CommercialRocketCompanies|notes=}}</pre> | ||
Named parameters are optional. | Named parameters are optional. | ||
| Line 985: | Line 1,034: | ||
== Example == | == Example == | ||
{{project| | {{project|Project_CommercialRocketCompanies|notes=}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 07:29, 28 June 2025
A template for projects.
Usage
To get the Project_CommercialRocketCompanies project for example:
{{project|Project_CommercialRocketCompanies|notes=}}
Named parameters are optional.
Note: You have to use the project's Data Name, not its Display Name.
Note: For some reason, attempting to display the project on this template page causes strange issues with the prereqs not showing up or being added up correctly. But the template seems to work fine on the real project pages...
Example
Error while fetching data from URL https://wiki.hoodedhorse.com/Terra_Invicta/index.php?title=RawTechDisplayName&action=raw: $2.There was a problem during the HTTP request: 403 Forbidden
Error while fetching data from URL https://wiki.hoodedhorse.com/Terra_Invicta/index.php?title=RawTechDisplayName&action=raw:
<!DOCTYPE html>
<html class="no-js" lang="en-US">
<head>
<title>Attention Required! | Cloudflare</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" />
<style>body{margin:0;padding:0}</style>
<script type="6ee01c875ffba7c487537a6c-text/javascript">
if (!navigator.cookieEnabled) {
window.addEventListener('DOMContentLoaded', function () {
var cookieEl = document.getElementById('cookie-alert');
cookieEl.style.display = 'block';
})
}
</script>
</head>
<body>
Sorry, you have been blocked
You are unable to access hoodedhorse.com
Why have I been blocked?
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
What can I do to resolve this?
You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.
<script type="6ee01c875ffba7c487537a6c-text/javascript">
window._cf_translation = {};
</script>
<script src="/cdn-cgi/scripts/7d0fa10a/cloudflare-static/rocket-loader.min.js" data-cf-settings="6ee01c875ffba7c487537a6c-|49" defer></script><script>(function(){function c(){var b=a.contentDocument||(a.contentWindow&&a.contentWindow.document);if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a42de6edd9c9d26d',t:'MTc5MDcxNTQ2NQ=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script><script type="module" src="https://static.cloudflareinsights.com/beacon.min.js/v31edd6df95cf4e85bb4c19e7a9bdbcba1788362987495" integrity="sha512-iIg7k2xntmwu6/uSb5tpc/hySgZc4eoL31yB29W6tJFo2akwjPWcEqnCEdJvGexCL0KEQwVYv5BlowfhVz26hg==" data-cf-beacon='{"version":"2024.11.0","token":"51862476f1994747843f52d73cd5e123","spa":2}' crossorigin="anonymous"></script>
</body>
</html>.
| Commercial Rocket Companies | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Summary | |||||||||||||||
| We fund private industry to move our assets into orbit and beyond. | |||||||||||||||
| Description | |||||||||||||||
| Repeatable Project | Can be researched an unlimited number of times, but research cost is multiplied by (1 + number of times researched). | ||||||||||||||
| Base Unlock Chance | Monthly Available Chance | ||||||||||||||
| Initial | Monthly Increase | Maximum | |||||||||||||
| 75% | 5% | 5% | 75% | ||||||||||||
| Available to Faction(s) | Guaranteed for Faction | ||||||||||||||
| All | |||||||||||||||
| Tech and Project Prerequisites | |||||||||||||||
| |||||||||||||||
| Total | |||||||||||||||
| Category | From Projects | From Techs | Category Subtotal | ||||||||||||
| 2000 | 0 | 2000 | |||||||||||||
| 0 | 0 | 0 | |||||||||||||
| 0 | 0 | 0 | |||||||||||||
| 0 | 1000 | 1000 | |||||||||||||
| 0 | 0 | 0 | |||||||||||||
| 0 | 0 | 0 | |||||||||||||
| 0 | 0 | 0 | |||||||||||||
| 0 | 0 | ||||||||||||||
| Total | 2000 | 1000 | 3000 | ||||||||||||
| Direct Prerequisite For Projects: | |||||||||||||||
| Notes | |||||||||||||||
| Data Sources | |||||||||||||||
| TITechTemplate_CSV • TIProjectTemplate_CSV • RawTechDisplayName • RawProjectDisplayName | |||||||||||||||


