Help:AutoTables

From 3kWiki
Jump to navigation Jump to search

How to Add pages to an automatically generated table

So you've looked at a page like Smithing, and found a moulding that needs to be added. You tried to edit the page and just saw:


<dpl>
  uses = Template:Mould
  notcategory= Minor Gems 
  notcategory= Standard Gems 
  notcategory= Major Gems
  include = {Mould}:Min, {Mould}.ptbl, {Mould}:Triv:Bars:Jewels:Frags
  table = class=sortable border = 5 id=0,-,Minimum,Name,Trivial,Bars,Jewels,Fragments
  tablesortcol=1
</dpl>

Making a New Page

It's actually really easy.

The easiest way it to just type in an unused address into your webbrowser. http://3kwiki.info/wiki/index.php/Whatever You Want

Or type the article name on the box on the main page of the wiki.

Using a Template

Templates do most of the work for you. You'll see on each moulding page a little table at the top with stats. That table, and all those stats, are done by using a template. The Autotable generator looks for all pages that use that template, and there ya go...

For an example, let's use the 1-handed Silver Sword page...

{{Mould
|Type= 1-Handed Silver Sword
|Min= 35
|Triv= 39
|Frags=
1 [[Fragment of Knowledge]]

1 [[:category:Minor Gems|minor gem]]
|Bars=
3 silver bar

|Jewels=
1 beryl dust

1 steel shards

}}
[[category:Weapons]]

A template in Wikicode is {{TemplateName }}; A template name inside a pair of braces (curly brackets). Parameters in the template are preceded with a |.

  • {{Mould |Type= Sword Name}}

Linking to other pages are done by simply putting the page name in [[ ]] square brackets. This is how we build the lists of "what uses this fragment" on their pages; by making a list of what links to that page, so please link the fragments.

  • 1 [[Fragment of Knowledge]]

Information on a wiki is only as good as how easy it is to find, so please add a category tag to the article. [[category: ]]. The Mould template in our example already includes a category:Moulds tag in it, so half the work's done for you. The C in category isn't case sensitive, but the Category name, after the :, is Case sensitive.

  • [[Category:Weapons]]

Links [[ ]] also change the displayed text for a page, Smithing, blacksmithing, making stuff all go to the same page. The | inside of a [[ ]] tag separates the Destination from the display. If you actually want to link to a category page, put a : before category in the tag.

  • 1 [[:category:Minor Gems | minor gem]]

The 2 lines between beryl dust and steel shards is to ensure that they're on separate lines in our table. Without a blank line, the 2nd and 3rd jewel ends up on the same line. I preferred to put a blank line bewteen the 1st and 2nd so it's consistent.

Knowing what parameters a template expects is easily figured out. Check out an existing page that uses the template, and edit it. At the bottom of the page you'll see each template listed, you can click the link to see the templates page, where you can look at the source if need be, or most likely, any template you are likely to ues will have usage information on that page.