Template talk:Craft
From FFXIclopedia, the free Final Fantasy XI encyclopedia
Up and working :) --Chrisjander 07:30, 12 June 2006 (PDT)
Contents |
Problematic Changes
Unfortunately adding the skill cap to the template has effected exising pages. My small modification of adding an empty default value for the cap should have worked, but it didn't, possibly because the MediaWiki version is a bit older here. Observe:
{{Craft|Alchemy}} (10) >>>>>>>> Alchemy (10)
{{Craft|Alchemy|(10)}} >>>>>>>> Alchemy (10)
See how this should be working on a page I made on Wikipedia's test wiki
--Enfield 19:52, 22 June 2006 (PDT)
All Better
Excellent, with the MediaWiki upgrade, the template's working for both the new and old usages. --Enfield 15:43, 28 July 2006 (EDT)
I dont understand... Why was the "|" added and what does it do to change it like that... So confuzzled --Nynaeve 16:13, 28 July 2006 (EDT)
The "|" let's you specify a default argument value in a template. I added it in when the new version of the template (which integrated skill cap values) broke pages that used the old version of the template. They would end up looking like "Alchemy {{{2}}} (10)" instead of "Alchemy (10)". Unfortunately, the MediaWiki version used here at the time didn't support the "|" operator. No worries though, now everything's fine. You can use {{Craft|Alchemy}} (10) or {{Craft|Alchemy|(10)}} and they'll have the same result. --Enfield 16:48, 28 July 2006 (EDT)
ooooooo - Sorry... I get the basic formatting but I learn as I go. Thanks for explaining. --Nynaeve 16:52, 28 July 2006 (EDT)
this template is used on pages for materials that are used in craft recipes. Do we want all materials to be in the craft categories? or just the recipes? It is also on a couple of user pages --Chrisjander 14:52, 9 August 2006 (EDT)
Bah - You're right - does't work. I will revert. --Gahoo 15:15, 9 August 2006 (EDT)
Auto-Categorize
I think we should think about adding an auto-categorizing line in the template to make it a little more usefull.
This line should add automatically add the pages to thier craft category, but will have the same problem as the Ex template (see Category Talk:Exclusive):
- <includeonly>[[Category:{{{1}}}]]</includeonly>
~ Karuberu 12:15, 11 August 2006 (EDT)
While it would be nice for alot of pages, this template is too widely used on pages that shouldn't be included in the specified craft page (see above). Gahoo just tried this, then we realized the fatal flaw. --Chrisjander 12:36, 11 August 2006 (EDT)
Yeah the problem ocurred because the template is used in the Used in Recipes section and Obtained From Desynthesis sections - so for exmaple, Bronze Ingot obtained or would obtain the Alchemy, Smithing, Woodworking, Clothcraft, Bonecraft, Goldsmithing and Leathercraft categories. Lol. --Gahoo 13:01, 11 August 2006 (EDT)
Oh, I didn't think about the those sections (I thought the old way was still used for them). What a disaster, lol. ~ Karuberu 00:07, 12 August 2006 (EDT)
I created this template as a shortcut for me, or anyone else to write:
[[:category:craft|Craft]] (##)
I would have made the same for the ([[:category:]]) All Races section of the Statistics as well, but some code didn't follow the same pattern, namely the weapons (i.e. [[:category:Swords|Sword]]) --Chrisjander 00:31, 12 August 2006 (EDT)
New craft templates
This template was made for ease of editing, but it's really not much less to type (a whole 3 characters, if you use wiki markup correctly). So, I was thinking we should make a craft template for each craft, instead of a universal one. Here's an example of what I'm thinking:
Example:
- Usage: {{Alchemy|Skill}}
- Code: [[:Category:Alchemy|Alchemy]] ({{{1}}})
- Looks Like: Alchemy (Skill)

