FANDOM


Adding Infobox Templates to Pages Edit

Templatetut1

What you should see after creating a new template page

Infoboxes are a space-efficient, orderly way of presenting small tables or lists of attributes. Unfortunately, they can be daunting to use without prior knowledge of their workings. No problem! Let's go over it.

Infoboxes are a kind of template-- a piece of code that expects certain input and formats it in a particular way. The first step in creating a new template is to create a page that will host that template's format. All template pages have names in the format "Template:Name"

Once you have created a new template page, it's time to create the framework of your template! This is not actually the template itself, it is the "format" of the template-- a page that tells the wiki what to do when you invoke a template of that kind somewhere else.

Here is an example of template code:

<infobox>
    <title source="name"><default>{{PAGENAME}}</default></title>
    <image source="image" />
    <data source="Health"><label>Health</label></data>
    <data source="Damage"><label>Damage</label></data>
    <data source="Attack"><label>Attack</label></data>
    <data source="Defense"><label>Defense</label></data>
    <data source="Speed"><label>Speed</label></data>
    <data source="Magic Resist"><label>Magic Resistance</label></data>
    <data source="Spells & Abilities"><label>Spells & Abilities</label></data>
</infobox>
A piece of text with < >'s around it is called a tag. All tags come in pairs-- an opening and closing tag. These are used to define the text between them.

Example: "<infobox> </infobox>" tells the wiki that everything between those two tags is an infobox.

Here's a really simple infobox template and explanation:

<infobox>
    <title source="name"><default>{{PAGENAME}}</default></title>
    <image source="image" />
    <data source="attack"><label>Attack</label></data>
    <data source="defense"><label>Defense</label></data>
</infobox>
In this infobox template code, we have an <infobox> tag, telling us that this is an infobox, followed by a <title source="name"></title> tag, which creates the space for name at the top of the infobox, an <image source="image/> tag, which creates the space for the image in the infobox, and two parameters-- "attack" and "defense."

Back to the example from earlier! After we've created our infobox template (in this case, the "Monster" template, we can call it on a page by typing the following in source mode:

{{Monster
|name = Asterion
|image = Asterion_icon.png
|Damage = 3-8
|Attack = 13
|Defense = 13
|Speed = 12
|Health = 37-39 (Normal), 40 (Hard, Suicide)
|Magic Resist = 35% (Normal, Hard), 45% (Suicide)}}

Alternatively, in visual mode, hit "Insert>Template>and search "Monster" to bring up the infobox, which you can then type the values into using a pop-up. Either way you do it, this will create an infobox on the page the template is added that looks like the one below.


Hope this was helpful!

Ripping Images Edit

How to extract images from screenshots using GIMP to create clean, standardized icons.

  1. Download GIMP from the official website.
  2. Open GIMP, then select "File>Open" and select the screenshot you want to rip from.
  3. Go to "Layers>Transparency and select "Add Alpha Channel." This will make the background of your image transparent instead of white.
  4. Cut out your image. Depending on the background of the screenshot, you may want to use either the rectangular selection tool (for backgrounds with multiple colors) or the color selection tool (when the image you are attempting to rip is set against a background of a single, uniform color.)
    1. After making a selection using one of these tools, hit "delete" and it should clear that part of the image.
  5. Once the part of the image you want is isolated against a transparent background, go up and select "Image>Autocrop." This will crop the size of the image to closely fit the actual picture you have cut out.
  6. Go to "File>Overwrite" and overwrite your original image with the edited version. Done! Your ripped icon can now be uploaded to the wiki.

Image Stitching Edit

Creating maps or large composite images using GIMP.

-In progress!

Displaying Images Edit

The "[img]" syntax can be difficult to understand, especially if you aren't used to using Source Mode. No sweat! It's actually a lot easier to do than it seems at first.

-In progress!

Linking to Page Subsections Edit

Ever wanted to create a link to a specific section of a page, like the "Gear" section of Wizard? Learn how!

-In progress!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.