Difference between revisions of "Template:SymbiosisData"

From Reus
Jump to: navigation, search
m
 

Latest revision as of 10:30, 19 August 2013

[view] [edit] [history] [purge] Documentation icon Template documentation

Contents

[edit] Description

[edit] Parameters

{{Symbiosis
|level       = <!-- the level to show -->
|name        = <!-- -->
|food1       = <!-- -->
|food2       = <!-- -->
|food3       = <!-- -->
|technology1 = <!-- -->
|technology2 = <!-- -->
|technology3 = <!-- -->
|wealth1     = <!-- -->
|wealth2     = <!-- -->
|wealth3     = <!-- -->
|natura1     = <!-- -->
|natura2     = <!-- -->
|natura3     = <!-- -->
|danger1     = <!-- -->
|danger2     = <!-- -->
|danger3     = <!-- -->
|awe1        = <!-- -->
|awe2        = <!-- -->
|awe3        = <!-- -->
|range1      = <!-- -->
|range2      = <!-- -->
|range3      = <!-- -->
|condition   = <!-- -->
|conditionDE = <!-- -->
|conditionES = <!-- -->
|conditionFR = <!-- -->
|conditionKO = <!-- -->
|conditionNL = <!-- -->
|conditionPL = <!-- -->
|conditionPT = <!-- -->
|conditionSV = <!-- -->
|conditionRU = <!-- -->
|lang        = <!-- -->
}}

[edit] Examples

Example Description Code to use Output
The symbiois definition for a Blueberry (only level 1 is shown)
{{Symbiosis|name=Grove|food1=10|condition=if next to [[Strawberry]], [[Apple Tree]] or [[Dandelion]]}}
Grove: +10 Food if next to Strawberry, Apple Tree or Dandelion
The symbiosis definition for a Strawberry (only level 1 is shown). Note that two templates are used to describe the different effects of this symbiosis. For the second template the name parameter is omitted.
{{Symbiosis|name=Adaption|food1=3|condition=if next to [[Blueberry]] or [[Strawberry]]}}
{{Symbiosis|awe1=5|condition=if next to [[Dandelion]] or [[Strawberry]]}}
Adaption: +3 Food if next to Blueberry or Strawberry +5 Awe if next to Dandelion or Strawberry
The Blueberry symbiosis with the specific template
{{Grove}}
or
{{Grove|1}}
Grove: +10 Food if next to an Apple Tree, Dandelion or Strawberry
The Blueberry symbiosis for level 2 with the specific template
{{Grove|2}}
Grove: +20 Food if next to an Apple Tree, Dandelion or Strawberry
The Blueberry symbiosis with the specific template in German
{{Grove|2=de}}
or
{{Grove|1|de}}
Hain: +10 Nahrung falls neben einem Apfelbaum, Löwenzahn oder einer Erdbeere
The Blueberry symbiosis for level 2 with the specific template in German
{{Grove|2|de}}
Hain: +20 Nahrung falls neben einem Apfelbaum, Löwenzahn oder einer Erdbeere
The Blueberry symbiosis with the specific template in Korean. Note that there currently isn't a translation for this language so the text will default to english and the whole page will be categorized as Missing Translation/ko.
{{Grove|2=ko}}
Grove: +10 sub link=Food/ko if next to an Apple Tree, Dandelion or Strawberry

[edit] Creating new Symbiosis Data Templates

Creating new Symbiois data templates is fairly easy. Here is a step by step guide.

  • Create a new template page and name it after the symbiosis (e.g. Meadow).
    • Do this by editing an existing page and input {{<Name of the Symbiois>}} (e.g. {{Meadow}}), view the preview and click on the new red link.
    • Or simply input the link http://wiki.reusgame.com/index.php?title=Template:<Name of Symbiosis> (e.g. http://wiki.reusgame.com/index.php?title=Template:Meadow) into your browser.
  • Copy the blank template code below and paste it into the new template page.
  • Fill out the information about the symbiois for all three levels. Parameters that are not needed (e.g. if the symbiosis doesn't produce technology) can be deleted or just left empty. See the second code block for an example.
  • Save the template page
  • The new page now looks like this: TemplateExample.PNG
  • Click on the red /doc link on this page to create the documentation page for this template.
  • Copy the code <includeonly>[[Category:Symbiosis Data Templates]]</includeonly> and paste it into the documentation tempalte page. This categorizes the template.
  • (Optional) Copy the content of the template page into the documentation page and surround if with <pre></pre> tags. Remove the <includeonly>, <noinclude> tags, the {{Documentation}} template, as well as the first two parameter lines and the comments. It would then look like the example in the third code block from below. This is to directly show the information of the symbiosis on the template page and increases the readability by ommitting unecessary text.

The blank template:

<includeonly>{{Symbiosis
<!-- the parameters that are only passed, don't change! -->
|level = {{{1|}}}
|lang  = {{{2|}}}
<!-- the actual symbiosis data values -->
|name        = 
|food1       =
|food2       = 
|food3       = 
|technology1 = 
|technology2 = 
|technology3 = 
|wealth1     = 
|wealth2     = 
|wealth3     = 
|natura1     = 
|natura2     = 
|natura3     = 
|danger1     = 
|danger2     = 
|danger3     = 
|awe1        = 
|awe2        =
|awe3        = 
|range1      = 
|range2      = 
|range3      =
|condition   = 
}}</includeonly><noinclude>

{{Documentation}}
</noinclude>

The filled out Meadow template page:

<includeonly>{{Symbiosis
<!-- the parameters that are only passed, don't change! -->
|level = {{{1|}}}
|lang  = {{{2|}}}
<!-- the actual symbiosis data values -->
|name        = Meadow
|food1       = 8
|food2       = 16
|food3       = 32
|natura1     = 2
|natura2     = 4
|natura3     = 8
|condition   = for each [[Animals|Animal Nest]] next to it
}}</includeonly><noinclude>

{{Documentation}}
</noinclude>

The filled out Meadow template documentation page:

{{Symbiosis
|name        = Meadow
|food1       = 8
|food2       = 16
|food3       = 32
|natura1     = 2
|natura2     = 4
|natura3     = 8
|condition   = for each [[Animals|Animal Nest]] next to it
}}

<includeonly>
[[Category:Symbiosis Data Templates]]
</includeonly>
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox