Difference between revisions of "How to contribute"
(Add page with basic information, please extend) |
(→: added reference to templates. How can I link to a category?) |
||
Line 19: | Line 19: | ||
*? | *? | ||
Currently all templates can be found in [[Category:Templates]]. The most ones being: | |||
* [[Template:Infoicon]] act as a link + image reference to something. | |||
* https://wiki.captain-of-industry.com/Category:Infobox_templates are templates used to show the info boxes on the top right of the page. | |||
* [[Template:Recipe_define]] is used to define recipes e.g. on a building page. | |||
* [[Template:Recipe_fetch]] is used to render all the already defined recipes in the building pages, on their respective item pages. I.e. we define recipes on the [[Basic Distiller]] page, and then we can see the recipe in the [[Diesel]] page. | |||
==Best Practices== | ==Best Practices== |
Revision as of 14:49, 24 June 2022
This article or section is being initially created, or is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well. If this article or section has not been edited in several days, please remove this template. If you are the editor who added this template and you are actively editing, please be sure to replace this template with {{in use}} during the active editing session. Click on the link for template parameters to use. |
This page is about the contribution guidelines - Best practices to fill this Wiki with content that is easy to find and create, but is also not missing any important information.
Data Source
- All values in this wiki are with entered default modifiers (Difficulty: Captain). Please remember this when adding new data, possibly you need to calculate the difference between your selected difficulty and the default values.
- All values for Maintenance, Workers, Electricity, Building Cost etc. are sourced by this Git-Repository. The previously mentioned values are sourced by the JSON-Files in this repository, that are exported directly from the game.
- Recipes are created by the Repository and can be copy-pasted right into the source editor for correct display.
Automation
We have planned automated tasks for the API, such as:
- Updating Recipes (inputs and output diagrams for all machines and products)
- Updating Infoboxes (Boxes on the right side of an article, containing an image and general information about the machine/vehicle etc.)
- Updating Navboxes (Boxes at the bottom of an article page containing links to categories and other articles)
- ?
Currently all templates can be found in. The most ones being:
- Template:Infoicon act as a link + image reference to something.
- https://wiki.captain-of-industry.com/Category:Infobox_templates are templates used to show the info boxes on the top right of the page.
- Template:Recipe_define is used to define recipes e.g. on a building page.
- Template:Recipe_fetch is used to render all the already defined recipes in the building pages, on their respective item pages. I.e. we define recipes on the Basic Distiller page, and then we can see the recipe in the Diesel page.
Best Practices
- Articles are called like their ingame counterparts. We start with a capital character for every word: SMOKE STACK (LARGE) -> Smoke Stack (Large)
- Uploaded files are called like their ingame counterparts - except for vehicles, which follow the rule: TruckT1, TruckT2, ExcavatorT1, ExcavatorT2 etc.
- All (or most) mentions of other items, machines or articles in an article are links, easily linking all the content together to create the typical wiki structure
- For references on how to write articles, take a look at Oil Rig, Mixer and Loose Storage. These articles have a good base structure.
- Please note: There is no need to enter all data for recipes manually, as we have Templates for that. See "Automation" for details.
FAQ
Q: How can I contribute useful information to this wiki?
A: Please refer to the outdated articles and stubs to find information you can add. Outdated articles have not yet been updated and might contain information from earlier versions, or are about content that no longer exists. Stubs are articles with missing descriptions or information in general. Feel free to add {{stub}} to a page you see is lacking information.
Q: Help! I edited a page and now all the recipes are just cryptic text?
A: Click on "More" -> "Purge Cache" next to the search function to clear the cache.
Q: What are Templates, and why are they mentioned everywhere?
A: Templates are scripts helping us to unify and organize many things. If you don't know how to use them, you can reference existing articles to get an idea of the parameters or ask for help in the discord.