Difference between revisions of "Stoneshard wiki:Community portal"
old>Realpsojed (→Colors and Templates: added Conditions) |
old>Realpsojed (→Advanced stuff: new template and usage) |
||
Line 57: | Line 57: | ||
| | | | ||
* | * | ||
* '''<nowiki>{{ | * '''<nowiki>{{Color|+|+10%}}</nowiki>''' appears as {{Color|+|+10%}} | ||
* '''<nowiki>{{Color|Active|Text}}</nowiki>''' appears as {{Color|Active|Text}} | |||
* '''<nowiki>{{Color|Passive|Text}}</nowiki>''' appears as {{Color|Passive|Text}} | |||
* '''<nowiki>{{Color|White|Text}}</nowiki>''' appears as {{Color|White|Text}} | |||
* | * | ||
* | * | ||
* '''<nowiki>{{ | * '''<nowiki>{{Color|-|-5%}}</nowiki>''' appears as {{Color|-|-5%}} | ||
* '''<nowiki>{{Color|Energy|+20}}</nowiki>''' appears as {{Color|Energy|+20}} | |||
* '''<nowiki>{{Energy|20}}</nowiki>''' appears as {{Energy|20}} | |||
|- | |- | ||
! colspan="2" | Items | ! colspan="2" | Items | ||
Line 83: | Line 83: | ||
* | * | ||
* | * | ||
* '''<nowiki>{{Uncommon|Buckler}}</nowiki>''' appears as {{Uncommon|Buckler}} | * '''<nowiki>{{Color|Uncommon|Buckler}}</nowiki>''' appears as {{Color|Uncommon|Buckler}} | ||
* '''<nowiki>{{Rare|Buckler}}</nowiki>''' appears as {{Rare|Buckler}} | * '''<nowiki>{{Color|Rare|Buckler}}</nowiki>''' appears as {{Color|Rare|Buckler}} | ||
* '''<nowiki>{{Unique|Buckler}}</nowiki>''' appears as {{Unique|Buckler}} | * '''<nowiki>{{Color|Unique|Buckler}}</nowiki>''' appears as {{Color|Unique|Buckler}} | ||
* | * | ||
* | * | ||
Line 96: | Line 96: | ||
* <span style="color:#f28d31;">#f28d31</span> Fire damage / burning effect | * <span style="color:#f28d31;">#f28d31</span> Fire damage / burning effect | ||
* <span style="color:#9872ec;">#9872ec</span> Arcane damage | * <span style="color:#9872ec;">#9872ec</span> Arcane damage | ||
* <span style="color:#fff6b5;">#fff6b5</span> Sacred | * <span style="color:#fff6b5;">#fff6b5</span> Sacred damage | ||
* <span style="color:#fff6b5;">#fff6b5</span> Shock damage | |||
* <span style="color:#ec4d49;">#ec4d49</span> Unholy damage | * <span style="color:#ec4d49;">#ec4d49</span> Unholy damage | ||
* <span style="color:#58af13;">#58af13</span> Poison damage | * <span style="color:#58af13;">#58af13</span> Poison damage | ||
Line 103: | Line 104: | ||
* <span style="color:#73c0de;">#73c0de</span> Frost damage | * <span style="color:#73c0de;">#73c0de</span> Frost damage | ||
| | | | ||
* '''<nowiki>{{Fire|10}}</nowiki>''' appears as {{Fire|10}}<br> | * '''<nowiki>{{Color|Fire|10}}</nowiki>''' appears as {{Color|Fire|10}}<br> | ||
* '''<nowiki>{{Arcane|10}}</nowiki>''' appears as {{Arcane|10}}<br> | * '''<nowiki>{{Color|Arcane|10}}</nowiki>''' appears as {{Color|Arcane|10}}<br> | ||
* '''<nowiki>{{Sacred|10}}</nowiki>''' appears as {{Sacred|10}}<br> | * '''<nowiki>{{Color|Sacred|10}}</nowiki>''' appears as {{Color|Sacred|10}}<br> | ||
* '''<nowiki>{{Unholy|10}}</nowiki>''' appears as {{Unholy|10}}<br> | * '''<nowiki>{{Color|Shock|10}}</nowiki>''' appears as {{Color|Shock|10}}<br> | ||
* '''<nowiki>{{Poison|10}}</nowiki>''' appears as {{Poison|10}}<br> | * '''<nowiki>{{Color|Unholy|10}}</nowiki>''' appears as {{Color|Unholy|10}}<br> | ||
* '''<nowiki>{{Caustic|10}}</nowiki>''' appears as {{Caustic|10}}<br> | * '''<nowiki>{{Color|Poison|10}}</nowiki>''' appears as {{Color|Poison|10}}<br> | ||
* '''<nowiki>{{Psionic|10}}</nowiki>''' appears as {{Psionic|10}}<br> | * '''<nowiki>{{Color|Caustic|10}}</nowiki>''' appears as {{Color|Caustic|10}}<br> | ||
* '''<nowiki>{{Frost|10}}</nowiki>''' appears as {{Frost|10}}<br> | * '''<nowiki>{{Color|Psionic|10}}</nowiki>''' appears as {{Color|Psionic|10}}<br> | ||
* '''<nowiki>{{Color|Frost|10}}</nowiki>''' appears as {{Color|Frost|10}}<br> | |||
|- | |- | ||
! colspan="2" | Conditions | ! colspan="2" | Conditions | ||
Line 120: | Line 122: | ||
* <span style="color:#4c7fff;">#4c7fff</span> conditions labelled Magical | * <span style="color:#4c7fff;">#4c7fff</span> conditions labelled Magical | ||
| | | | ||
* '''<nowiki>{{State|State}}</nowiki>''' appears as {{State|State}}<br> | * '''<nowiki>{{Color|State|State}}</nowiki>''' appears as {{Color|State|State}}<br> | ||
* '''<nowiki>{{ | * '''<nowiki>{{Color|Physical|Physical}}</nowiki>''' appears as {{Color|Physical|Physical}}<br> | ||
* '''<nowiki>{{ | * '''<nowiki>{{Color|Mental|Mental}}</nowiki>''' appears as {{Color|Mental|Mental}}<br> | ||
* '''<nowiki>{{ | * '''<nowiki>{{Color|Magical|Magical}}</nowiki>''' appears as {{Color|Magical|Magical}}<br> | ||
|} | |} | ||
Revision as of 18:35, 28 May 2020
Our community of editors is open to anyone. If you would like to join in:
- While you can edit anonymously, Registering a free account makes it easier to keep track of your own edits.
- Check out the gamepedia wiki manual if you're new to Wiki editing.
- See a list of recent changes.
- Jump right in and start editing. You can start small by fixing spelling, grammar, and other errors you come across.
- Edit and expand pages marked as Stubs. These are pages we have already created that need more information.
- Check out the Wanted Pages. These are pages that don't exist yet, but some other page links to them. You can see how many pages link to a given page name. Pages with many links are the ones that should be created first. Pages with only a single link could be wanted pages too, but they could also be a typo and only need to repair the link.
- <inputbox>
type= create width= 40 </inputbox>
Helpful things you can do
Images and Files
- Before uploading new images, check out the respective Category:Images or Special:UncategorizedFiles. Chances are that someone has already uploaded the same picture.
- When Uploading images, name the image file based on the image.
For example, an image of Bread , should be named "Bread.png". When uploading image of an item's description, name it "<itemname> description.png", etc.
We use strict File naming scheme, because our Templates rely on using names identical to pagenames. More on that in the #Advanced stuff section.
Categories
- Categorize new images and new pages. Simply add [[Category:<category name>]] at the very end of the page.
For example, when I upload a new weapon image, it belongs to [[Category:Weapon images]]. A page about a new NPC would belong to [[Category:NPCs]], etc. Check the [Category tree] for a complete list of categories.
Advanced stuff
Colors and Templates
We adhere to the ingame color palette and use either CSS styling or simple Templates to colorize texts on the wiki. Below is a table of all current colors from the game and respective Templates we have created with example usage.
Skills | |
---|---|
|
|
Items | |
|
|
Damage types | |
|
|
Conditions | |
|
|
Item Properties and Descriptions
To display the different properties of Items, we use data structures placed on the respective item pages. We use the same system for Conditions.
- The data is written inside of <includeonly></includeonly> statements to make it hidden from the page itself.
- The data is written as parameters of a single #Switch ParserFunction (see [Help:Extension:ParserFunctions] for more info) to allow different Templates to call for different pieces of data.
- Different item types may use different parameters. Here are examples of data structures we use:
Weapon | Consumable | Condition |
---|---|---|
<includeonly>{{#switch: {{{1}}} |WeaponType = Sword |Damage1 = 30 |DamageType1 = Slashing |Damage2 = {{Sacred|2}} |DamageType2 = {{Sacred|Sacred}} |Properties1 = Armor Penetration |Values1 = {{Positive|+20%}} |Properties2 = Accuracy |Values2 = {{Positive|+3%}} |Properties3 = Magic Power |Values3 = {{Positive|+5%}} |Properties4 = Block Chance |Values4 = {{Positive|+5%}} |Properties5 = Skills Energy Cost |Values5 = {{Negative|+15%}} |Durability = 400 |Description = desc. |Price = 7200 |#default = }}</includeonly> |
<includeonly>{{#switch: {{{1}}} |ItemType = Ingredient |Properties1 = Energy Replenishment |Values1 = {{Positive|+5}} |Properties2 = Health Restoration |Values2 = {{Positive|+0.50% (45x)}} |Properties3 = Immunity |Values3 = {{Positive|+1%}} |PropertyText = text |Description = desc. |Price = 10 |#default = }}</includeonly> |
<includeonly>{{#switch: {{{1}}} |ConditionType = {{neg|Physical}} |Properties1 = Deals Damage |Values1 = {{neg|+2}} |Properties2 = Energy Restoration |Values2 = {{neg|-5%}} |Properties3 = Healing Efficiency |Values3 = {{neg|-30%}} |PropertyText = text |Description = desc. |#default = }}</includeonly> |
Skills currently don't have data on the Skill pages, instead they have the data written inside the Skill Tooltip pages. We may change that in the future to be in line with the way Items and Conditions are created.
Tooltips
When creating a specific item or skill page, most wikis display an infobox on the right side to show the most relevant information about an item or skill. Our wiki simply shows the tooltips of said item or skill.
- Follow the instructions on Template:Tooltip_hover_box to create a Tooltip page.
- Add this code into the item/skill page. This will automatically display whatever is written in the page's tooltip page and place it to the right side of the screen.
<div style="float: right">{{:{{ROOTPAGENAME}}/Tooltip}}</div>