FFXIV Wiki Wednesday: Editing Info In A Template


Welcome back! In our first installment, we showed just how incredibly easy it is to add an image to an item or gear/glamour set.  This time we’re going to branch out ever so slightly and take a look at our templates, so you know how easy it is to add information as well. While we know it can be intimidating to edit a wiki, here we’ve done everything we can to eliminate – or at least significantly reduce – any intimidation.

First, let’s take a quick look at what these templates are doing. Lets’ say you wanted to make a page for a simple key item. If you wanted to code it without a template, the top section alone would look something like:

{{{!}} class=”itembox shadowed” style=”color:white; width:100%; cellpadding=0; cellspacing=1;” border={{{border|0}}}
{{!}}style= “width:75%; height:12px; font-size:18px; font-weight:bold” colspan=”2″ |[[File:{{{Icon|Question_mark_stub.png}}}|{{{Iconsize|48px}}}|{{#if:{{{allowlink|}}}||link=}}]]{{{Title|title}}}{{#if:{{{Icons|}}}|  {{{Icons|icons}}}}}{{#if:{{{Subtitle|}}}|{{{Subtitle|subtitle}}}}}
{{!}}style= “width:25%; height:12px; font-size:18px; text-align:right; font-weight:bold” |{{{Type|geotype}}}
{{#if:{{{Patch|}}}|[[Patch {{{Patch}}}]][[Category:Patch {{{Patch}}}]]}}

Instead, we take all of that code and place it into a background template, and then create what is essentially a simple form that can be filled in with the information like:

{{ARR Infobox Key Item
|Patch = 2.2
|Name = Stuffed Giant Clam
|Description = A giant clam stuffed with a potent concoction of finely chopped megalodon flesh mixed with the juice of pulped seagrass.
|Stack = 3

The result of those simple 5 lines is this:


So what’s going on? In short, the first line is calling the template – here its one we’ve identified as “ARR Infobox Key Item”. The rest of the lines are simply blanks in a form. The text before the = is a field name (you don’t touch this) and the part after the = is the information you add or change. The template will dictate where each piece of information goes and what it looks like. A template is ended with a short }}.

Changing information now becomes as easy as hitting the “Edit this page” button at the top and updating or changing the information after any =. While other types of pages might have more fields than a key item, the format remains the same. Let’s take a look at an item for example:

{{ARR Infobox Item

| Patch = 2.0
| Name = Thermal Alembic
| Subheading = Alchemist’s Primary Tool
| Requires = ALC
| Required Level = 48
| Item Level = 48
| Sells = 96
| Repair Class = Armorer
| Repair Level = 38

| Physical Damage = 18
| Magic Damage = 16
| Auto-attack = 16.80
| Delay = 2.80

| Bonus Craftsmanship = +80
| Bonus Craftsmanship HQ = +91
| Bonus Control = +46
| Bonus Control HQ = +52

| Recipes =
{{ARR Infobox Recipe
|Result = Thermal Alembic
|HQResult =
|Primary Skill = Armorer
|Primary Skill Level = 50
|Durability= 80
|Difficulty= 186
|Ingredient 1 = Ice Shard
|Ingredient 1 Amount = 6
|Ingredient 2 = Earth Shard
|Ingredient 2 Amount = 6
|Ingredient 3 = Iron Ingot
|Ingredient 3 Amount = 1
|Ingredient 4 = Cobalt Plate
|Ingredient 4 Amount = 1
|Ingredient 5 = Cobalt Rivets
|Ingredient 5 Amount = 1

|Notes =

If you notice that an item has the wrong sales value, for example, you’d just change the “96” to the proper value and hit save. You might also notice that some fields will call another template. Here we see that inside the |Recipe = field, another template is called, here “ARR Infobox Recipe”. That template works just like any of the others – you can even see it has its own ending }}. The result of the above can be seen at the Thermal Alembic page. Note that we just add the raw data, and the template takes care of all of the formatting, colors, fonts, images, links, headers, categorization, etc.

We use templates such as these on almost all pages throughout the wiki – anything with a standard layout (items, quests, actions, fates, dungeons, etc.) gets a template. We’ve created a series of template tutorials which step through specific templates, but for simple updates you don’t even need to deal with knowing more than clicking edit, change the offending text, and then clicking save.

Finally, just keep in mind that these templates are also constantly working behind the scenes to add relevant information from elsewhere in the wiki. So when you add the Thermal Alembic recipe, each ingredient page gets updated on its own to note that it is an ingredient used in a Thermal Alembic recipe and the crafting lists will be updated as well. This cross-referencing allows the wiki to stay up-to-date across the various pages, without needing to make multiple edits.