Getting Started With Contributing

From DeceasedCraft Wiki
Jump to navigation Jump to search

Introduction

If you are reading this, congratulations! You want to contribute to the Deceased Craft Wiki!

To get started you're gonna need to know a few things.

  • Basic Grammar
  • HTML, CSS

Simple right?

Deceased Craft Wiki currently uses MediaWiki. Here are some resources to get started with basic syntax of MediaWiki HTML/Markup shortcuts.

I would like to add that there are some hidden things that you can simply find by viewing the imported CSS sheets via Inspect Element. One of my most widely used one is .mw-message-box

If anyone has more information on resources for MediaWiki. Please put them here.

What are Templates?

A common question some may have. Templates are quite literally templates. You fill out different parameters of information into the template and it'll import it all with that information included. Of course, sometimes you wont need to supply any information. The whole concept of Templates is to basically separate information in pieces, so that it can be imported not into just one place, but many places at once with the option of adding static information (parameters).
You can actually see a Template here.

Here's an example template. Template:WikiExampleTemplate

This was imported via the template.

Welcome to the Contributor Section, view the template!
For more information on Templates visit https://www.mediawiki.org/wiki/Help:Templates

What are Modules?

Modules are extremely useful things that basically extend the functionality of templates to a higher level. They use lua (scripting language) in order to process information. Here is a small example of it. Reference Manual (Lua)

local p = {} --// lets say this Module is called Module:Orange

function p.new(frame)
  return string.format("<span style="color:orange">%s</span>", frame.args.object)
end

return p

--// My Location
{{#invoke:Orange|new|object=water}}

Example usage. (Invoked command, with params [water, bottle])

{{#invoke:Crafting|craft|water| bottle}}

>> Script error: The module returned a nil value. It is supposed to return an export table.

CSS Information

I highly suggest you do not mess with the .css Templates. Only use them as reference!

  • .myclass is a class
  • #myid is an id
  • myelement is an element

Front Page (.fp)

Front Page CSS Template

Vector

Vector CSS Template

NotPaswa :> - Happy Contributing