Difference between revisions of "Stoneshard wiki:Community portal"

From Stoneshard wiki
Jump to navigation Jump to search
old>TheSatanicSanta
m (fix cpbox)
old>Realpsojed
(Expanded, added TOC, described how we do advanced things.)
Line 8: Line 8:
*Check out the [[gphelp:|gamepedia wiki manual]] if you're new to Wiki editing.
*Check out the [[gphelp:|gamepedia wiki manual]] if you're new to Wiki editing.
*See a list of [[Special:RecentChanges|recent changes]].
*See a list of [[Special:RecentChanges|recent changes]].
*Jump right in and start editing. You can start small by fixing spelling, grammar, and other errors you come across. [[:Category:Stubs|Stubs]] are pages already exist and only need expanding. Finally, [[:Special:WantedPages|Wanted Pages]] are pages that do not exist yet, but some other page links to them, so they should be created or the page that links to them should be changed.
*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 [[:Category:Stubs|Stubs]]. These are pages we have already created that need more information.
*Check out the [[:Special:WantedPages|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.




Line 18: Line 20:




Helpful things you can do:
__TOC__
 
 
==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.
* Before uploading new images, check out the respective [[:Category:Images]] or [[Special:UncategorizedFiles]]. Chances are that someone has already uploaded the same picture.
* When [[:Special:Upload|Uploading]] images, name the image file based on the image.
* When [[:Special:Upload|Uploading]] images, name the image file based on the image.
For example, an image of Bread [[File:Bread.png]], should be named "Bread.png". When uploading image of an item's description, name it "<itemname> description.png", etc.
For example, an image of Bread [[File:Bread.png]], should be named "Bread.png". When uploading image of an item's description, name it "<itemname> description.png", etc.<br>
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 <nowiki>[[Category:<category name>]]</nowiki> at the very end of the page.
* Categorize new images and new pages. Simply add <nowiki>[[Category:<category name>]]</nowiki> at the very end of the page.
For example, when I upload a new weapon image, it belongs to <nowiki>[[Category:Weapon images]]</nowiki>. A page about a new NPC would belong to <nowiki>[[Category:NPCs]]</nowiki>, etc.
For example, when I upload a new weapon image, it belongs to <nowiki>[[Category:Weapon images]]</nowiki>. A page about a new NPC would belong to <nowiki>[[Category:NPCs]]</nowiki>, etc.
Check the [[https://stoneshard.gamepedia.com/Special:CategoryTree?target=Category%3AStoneshard+Wiki&mode=categories&namespaces=&title=Special%3ACategoryTree Category tree]] for a complete list of categories.
Check the [[https://stoneshard.gamepedia.com/Special:CategoryTree?target=Category%3AStoneshard+Wiki&mode=categories&namespaces=&title=Special%3ACategoryTree Category tree]] for a complete list of categories.
* When creating a specific item/skill page, we use an infobox on the right side to show the most relevant information. The infobox uses the look and data of our tooltips.
 
# 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 tooltip and place it to the right side of the screen.
==Advanced stuff==
<nowiki><div style="float: right">[[{{ROOTPAGENAME}}/Tooltip|{{:{{ROOTPAGENAME}}/Tooltip}}]]</div></nowiki>
===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.




{| border=1px solid; style="margin: auto;"
{| border=1px solid; style="margin: auto;"
! colspan="2" | COLORS AND TEMPLATES
|-
! colspan="2" | Skills
! colspan="2" | Skills
|-
|-
Line 57: Line 66:
* '''<nowiki>{{Energy|20}}</nowiki>''' appears as {{Energy|20}}
* '''<nowiki>{{Energy|20}}</nowiki>''' appears as {{Energy|20}}
|-
|-
! colspan="2" | Items
! colspan="2" | Items
|-
|-
Line 83: Line 91:
* &nbsp;
* &nbsp;
|-
|-
! colspan="2" | Damage types
! colspan="2" | Damage types
|-
|-
Line 105: Line 112:
* '''<nowiki>{{Frost|10}}</nowiki>''' appears as {{Frost|10}}<br>
* '''<nowiki>{{Frost|10}}</nowiki>''' appears as {{Frost|10}}<br>
|}
|}
===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 <nowiki><includeonly></includeonly></nowiki> statements to make it hidden from the page itself.
* The data is written as parameters of a single #Switch ParserFunction (see [[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##switch 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:
{| border=1px solid; style="margin: auto;"
! Weapon
! Consumable
! Condition
|-
|
<nowiki><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></nowiki>
|
<nowiki><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></nowiki>
|
<nowiki><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></nowiki>
|}
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.
<nowiki><div style="float: right">{{:{{ROOTPAGENAME}}/Tooltip}}</div></nowiki>


<div style="text-align: center; font-size: 100%; font-weight: bold;">Need help? Want something changed or want to debate about something? Feel free to join us at the [https://discord.gg/stoneshard Stoneshard Discord]!</div>
<div style="text-align: center; font-size: 100%; font-weight: bold;">Need help? Want something changed or want to debate about something? Feel free to join us at the [https://discord.gg/stoneshard Stoneshard Discord]!</div>

Revision as of 14:36, 27 May 2020

Stoneshard wiki is a community project run entirely by volunteers to provide information for the game.

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.


Alternatively, just type a new article name in the search box. A link will be provided to start the article at the top of the search results.
<inputbox>

type= create width= 40 </inputbox>



Helpful things you can do

Images and Files

For example, an image of Bread Bread.png, 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
  • #f6bb15 should be the orange-yellow-ish Passive Bonus.
  • #78d199 should be the light-green bonus like -5% Cooldown Reduction on skills.
  • #0ed78e is the more profound light-green in "Active" skill type.
  • #a3b719 lime color in "Passive" skill type.
  • #ffffff for the amount of turns that a stance/effect lasts.
  • #9d9a9a gray for skill description.
  • #71725e for weapon type requirements
  • #9e1b31 should be red for negative bonuses from skills and conditions
  • #21b7ec energy burn or Energy/Max Energy replenish skills
  •  
  • {{Positive|+10%}} appears as +10%
  •  
  •  
  • {{W|Knockback}} appears as Knockback
  •  
  •  
  • {{Negative|-5%}} appears as -5%
  • {{Energy|20}} appears as Template:Energy
Items
  • #c75c5d is the brighter red for negative bonuses on items
  • #824858 is cursed red for cursed items
  • #27b1ea is blue for random enchantment bonuses
  • #59db4c light green for Uncommon item names only
  • #4c7fff is blue for Rare item names only
  • #8248bc is purple for unique item names only
  • #ffb72b is epic items (not yet in-game)
  • #95796a brown for item descriptions
  • #0ed78e for Potions with positive effects
  • #9e1b31 for Potions with negative effects
  •  
  •  
  •  
  • {{Uncommon|Buckler}} appears as Buckler
  • {{Rare|Buckler}} appears as Template:Rare
  • {{Unique|Buckler}} appears as Template:Unique
  •  
  •  
  •  
  •  
Damage types
  • #f28d31 Fire damage / burning effect
  • #9872ec Arcane damage
  • #fff6b5 Sacred and Shock damage
  • #ec4d49 Unholy damage
  • #58af13 Poison damage
  • #0ed78e Caustic damage
  • #504aea Psionic damage
  • #73c0de Frost damage
  • {{Fire|10}} appears as Template:Fire
  • {{Arcane|10}} appears as 10
  • {{Sacred|10}} appears as Template:Sacred
  • {{Unholy|10}} appears as 10
  • {{Poison|10}} appears as 10
  • {{Caustic|10}} appears as 10
  • {{Psionic|10}} appears as 10
  • {{Frost|10}} appears as Template:Frost


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.

  1. Follow the instructions on Template:Tooltip_hover_box to create a Tooltip page.
  2. 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>


Need help? Want something changed or want to debate about something? Feel free to join us at the Stoneshard Discord!
Community Administrator
Psojed talk  •  contribs


Developer Administrator
Wayfinder talk  •  contribs