Guides/Page Layout Game: Difference between revisions

From Desynced Wiki
No edit summary
No edit summary
Line 2: Line 2:
This is a first draft of the guide to "easy editing".
This is a first draft of the guide to "easy editing".


Known issues and questions to editors:
Potential issues and questions to editors:
*Can be up to four separate templates needed depending on the page. Is that ok?
*Can be up to four separate templates needed depending on the page. Is that ok?
*Templates have to keep all parameters, and kept blank if not used. Confusing?
*Templates have to keep all parameters, and kept blank if not used. Confusing?


Please give feedback in {{Discord}} #wiki-spoilers.
Please give feedback in {{Discord}} #wiki-spoilers.
Words: (Todo: explain words?)
*Header
*Template
*Parameter
*Navbox
*Infobox
*Category


== Page Layout ==
== Page Layout ==
Try to keep the layout the same for each page. Here's a suggestion:
Try to keep the layout of the game stuff the same for each page. Here's a suggestion for item pages:
*Infobox
*Infobox
*Intro
*Intro
*Description
*Description
*statistics template
*Statistics template
*Sockets and Storage template  
*Sockets and Storage template  
*Recipe & Produced by template
*Recipe & Produced by template
Line 19: Line 27:
*Category template
*Category template
*Magic words
*Magic words
Other pages:
*...?
== Infobox ==
Todo: todo


== Headers ==
== Headers ==
Line 39: Line 53:
If you want to add item stats, you can do so by copying the following:
If you want to add item stats, you can do so by copying the following:


Todo: paste code
Todo: finish this.


== Sockets and Storage ==
=== Sockets and Storage ===
Todo: everything
Todo: everything.


==== Recipe/Produced by ====
==== Recipe/Produced by ====
If you want to add a recipe, you can do so by copying the following:
If you want to add a recipe, you can do so by copying the {{Recipe_Production template below
*Copy and paste '''after stats'''. Insert names and numbers  
*Copy and paste '''after stats'''. Insert names and numbers  
*You must include all the parameters. If there's only 1/2/3 ingredients or production, leave the rest blank.  
*You must include all the parameters. If there's only 1/2/3 ingredients or production, leave the rest blank.  
Line 121: Line 135:
<nowiki>__NOEDITSECTION__</nowiki>
<nowiki>__NOEDITSECTION__</nowiki>
*Use this to disable the edit icon next to all the headers. Recommended.
*Use this to disable the edit icon next to all the headers. Recommended.
== Examples ==
Please look at pages' edit code to see some examples
While the site is getting set up, it's a bit of a mess so if you find a page that doesn't look like this guide, ignore it and find another.
[[A link to the Cub|Cub]] with the layout and recipes from this guide.


[[Category:Guides]]
[[Category:Guides]]
__NOEDITSECTION__
__NOEDITSECTION__

Revision as of 10:24, 12 August 2023

Guide to Easy Editing

This is a first draft of the guide to "easy editing".

Potential issues and questions to editors:

  • Can be up to four separate templates needed depending on the page. Is that ok?
  • Templates have to keep all parameters, and kept blank if not used. Confusing?

Please give feedback in Discord #wiki-spoilers.

Words: (Todo: explain words?)

  • Header
  • Template
  • Parameter
  • Navbox
  • Infobox
  • Category

Page Layout

Try to keep the layout of the game stuff the same for each page. Here's a suggestion for item pages:

  • Infobox
  • Intro
  • Description
  • Statistics template
  • Sockets and Storage template
  • Recipe & Produced by template
  • Tips
  • Category template
  • Magic words

Other pages:

  • ...?

Infobox

Todo: todo

Headers

Pages are separated by ===== Headers =====.
Add the following headers if you need them:

===== Description =====

===== Tips =====

  • Statistics, Sockets and Storage, Recipe & Produced by headers are added automatically if you use the templates below.

Templates

Four templates...

  • Statistics, Sockets and Storage, and 'Recipe & Produced by are optional depending on the page.
  • Category is needed if you want a navbox E.g.


Statistics

If you want to add item stats, you can do so by copying the following:

Todo: finish this.

Sockets and Storage

Todo: everything.

Recipe/Produced by

If you want to add a recipe, you can do so by copying the {{Recipe_Production template below

  • Copy and paste after stats. Insert names and numbers
  • You must include all the parameters. If there's only 1/2/3 ingredients or production, leave the rest blank.
{{Recipe_Production
|name =
|ingredient1 =
|amount1 =
|ingredient2 = 
|amount2 = 
|ingredient3 = 
|amount3 = 
|ingredient4 = 
|amount4 = 
|produced-by1 =
|time1 =
|produced-by2 = 
|time2 = 
}} 

Category

This will add the Navbox and create a category which is important if you want your new page to be added the the navbox automatically. (Eventually)

  • Copy and paste this at the bottom of the page
  • If you only want to use one parameter, leave the others blank.
{{Category
|race =
|item-type =
|material-type =
|entity-type =
|unit-type =
}}

The following parameters are used:

  • race = Aliens / Bugs / Humans / Robots
  • item-type = Components / Resources / Materials / Research / Packages
  • material-type = Simple / Advanced / High-tech
  • entity-type = Building / Unit
  • unit-type = Alien / Bug / Human / Bot / Space
Examples:
Page for Metal Ore Page for Scout
{{Category
|race =
|item-type = Resources
|material-type =
|entity-type =
|unit-type =
}}

{{Category
|race = Robots
|item-type =
|entity-type = Unit
|unit-type = Bot
}}

Magic words

I only know about and use two. You can put them anywhere in the page on their own line.

Please let me know other useful ones on the Discord.

__NOTOC__

  • A table of contents is Added to pages with four or more headers, use NOTOC with two underscores either side to disable the TOC.

__NOEDITSECTION__

  • Use this to disable the edit icon next to all the headers. Recommended.

Examples

Please look at pages' edit code to see some examples While the site is getting set up, it's a bit of a mess so if you find a page that doesn't look like this guide, ignore it and find another.

Cub with the layout and recipes from this guide.