elanthipedia:Town Green (technical): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
Line 56: Line 56:


--[[User:Nikpack|Celeiros]] 04:47, 11 April 2008 (CDT)
--[[User:Nikpack|Celeiros]] 04:47, 11 April 2008 (CDT)
:Please read the [[Help:Basic Editing|basic editing page]] on how to add a new article. After that, I'd say probably add it to Category:Geography (might be the best bet).
::--[[User:Naeya|Naeya]] <sup>([[User talk:Naeya|talk]])</sup> 09:05, 11 April 2008 (CDT)


== Corporeal Critters ==
== Corporeal Critters ==

Revision as of 08:05, 11 April 2008



Bug? Table cell data not shown, but is available for calculation

{| |{{Manipulation | Manipulated = yes | InitCost = 6 | InitCost2 = 9 | InitCost3 = 12 | InitCost4 = 15 | InitCost5 = 18 | }} |

{{#if: {{{InitCost2|}}} | 
{{!}}-
! Tier 2
{{!}}- bgcolor="#FFFFFF"
{{!}} Initial Cost
{{!}} {{#switch: {{lc:{{{Manipulated}}} }} {{!}} unknown=N/A {{!}} no={{#ifeq: {{{InitCost2}}} {{!}} {{!}} N/A {{!}} {{{InitCost2}}} }} {{!}} yes={{#ifeq: {{{InitCost2}}}  {{!}} {{!}} N/A {{!}} {{{InitCost2}}} }} {{!}} N/A }}
{{!}}- bgcolor="#FFFFFF"
{{!}} Maint Cost
{{!}} {{#ifeq: {{{InitCost2}}} | | N/A | {{#switch: {{lc:{{{Manipulated}}} }} | unknown=N/A | yes={{#expr:({{{InitCost2}}}/3-0.5round0)}} | no=N/A | N/A}} }}
}}

|}

Sorry about the code block, but I'm not seeing why this should be happening. Everything else is working properly, and aside from replacing the real pipes with the template versions nothing's changed from any of the affected lines. --Symphaena 16:18, 21 June 2007 (CDT)

Hmm I don't know. Going to let someone more skilled in advanced templates field this question. Sorry! Oh and remember to sign your posts!--Naeya (talk) 12:00, 21 June 2007 (CDT)
Hmm, I don't have the time to play with that, but perhaps try to do the {{!}} stuff only for when it is not meant to be used as part of the "currently parsing" template. Such as in cases when you need to pass the | to the real wiki parser (such as for the table). --Callek 00:49, 22 June 2007 (CDT)
Alternatively you could map out exactly how your stuff is expanding, and where, and be sure you haven't made a nesting-level typo somewhere. --Callek 00:49, 22 June 2007 (CDT)

Yay! Problem solved. Turns out that only the table required the special template. The nested parser functions used to dictate the inclusion and content needed the real thing as they were contained in a parsing parser function. Such annoying details (also, edited down the code to show only the relevent details). --Symphaena 22:18, 23 June 2007 (CDT)

Glad you solved it!--Naeya (talk) 22:56, 23 June 2007 (CDT)
Glad I could help track down the issue, syntax issues can be a "pain" but we shall live with them overall ;-) --Callek 11:12, 24 June 2007 (CDT)

Something very funky was going on with how this section was being formatted, and the best way to prevent it was by brute-forcing a nowiki on the call to {{Manipulation}}. --Farman 00:04, 7 February 2008 (CST)

Adding Articles to Categories

I'm sure it is extremely obvious somewhere, but I don't see how to add articles to a category. Specifically I am trying to add the article "Kraelyst" to the category "Player Characters."

--Kraelyst 08:51, 16 October 2007 (CDT)

Nevermind, I figured it out. You have to add the tag to the article to make it show up in the category: [[Category:Player Characters]]

--Kraelyst 15:03, 16 October 2007 (CDT)

I'd also like to discover how to add an article to a category, but this isn't about adding a 'Player Character' article. What I'd like to do is add in the recent census data that was posted on the DR Boards. how would I go about creating a page to put that in and decide on an appropriate area to put it?

--Celeiros 04:47, 11 April 2008 (CDT)

Please read the basic editing page on how to add a new article. After that, I'd say probably add it to Category:Geography (might be the best bet).
--Naeya (talk) 09:05, 11 April 2008 (CDT)

Corporeal Critters

On the Atik'et page I inserted the Critter-At-A-Glance template. Everything looked fine until I put in "Yes" for corporeal, then it started sticking some unformatted category reference at the top of the page. See directly below.

{{Critter at a Glance | 
      Critter Name    = [Golden-|Red-Gold] Scaled Atik'et|
      Image File      = |
      Skinnable       = No|
      Has Coins       = Yes|
      Has Gems        = Yes| 
      Has Boxes       = Yes|
      Evil            = |
      Corporeal       = Yes|
      BackStabbable   = Yes|
      Casts Spells    = Yes|
      Attack Range    = Melee| 
      Stealthy        = No|
      Special         = No|
      MapList         = [[RanikMap14a|Gate of Souls, Map 14a]]|
}}

--Kraelyst 17:03, 17 October 2007 (CDT)

OK after scanning the template code for a bit, I figured it out. You need to define both the Evil and the Corporeal fields at the same time, or neither. If you only define one of them then the code breaks.
It's a pretty weird system being used in the critter template to set all those variables; I think it would be a lot more efficient and easier to debug if it used #ifeq or #switch. --Farman 15:16, 20 October 2007 (CDT)
I have <pre>'d the example template data here, since it put this article into the critter categories. --Farman 15:18, 20 October 2007 (CDT)

Thanks, Farman! I know this next question isn't technical, but can you tell me how a Thief can determine whether a creature is evil or not? --Kraelyst 18:01, 20 October 2007 (CDT)

Ask a cleric? ;)
It seems the intent of the categories is to have corporeal be a sub-quality of evil, so I think the way to handle this is to rewrite the template so it won't evaluate the corporeal field if the evil field is undefined. I'll see if I can squeeze that in in the next few days. The template has a few other problems besides, methinks. --Farman 13:51, 21 October 2007 (CDT)


Poison not showing up in Bestiary

I have noticed that the Poison category in the Critter-At-A-Glance template is not appearing in the information box, nor is it putting that creature into a poison or non-poison category. --Kraelyst 16:13, 30 October 2007 (CDT)

Check out the discussion page: Template talk:Critter at a Glance#Disease. Seems that field has been made dormant for now. I'll add that to my list when I take a look at the template this weekend for updating. Let's continue this thread on that talk page if you wish. --Farman 22:14, 31 October 2007 (CDT)


Adding text to the Image Upload page

Can someone add the following helpful instructions to the Image Upload page? Every time I need to upload an image I have to search through the help section to find out what I'm supposed to put in the "Summary" box.

For official Simutronics images please put {{Simu Image}} in the image summary box.
For Ranik Maps please put {{Ranik Map}} in the image summary box.
--Kraelyst 22:18, 7 December 2007 (CST)

Sure will :) Gimme a few.--Naeya (talk) 22:24, 7 December 2007 (CST)

Ok how does the upload page look now? --Naeya (talk) 22:59, 7 December 2007 (CST)

It looks fantastic! Thanks so much, Naeya! --Kraelyst 23:15, 7 December 2007 (CST)

Extra Tool Bar Buttons

Just letting folks know I've added some extra toolbar buttons for common used code. If you don't see the extra buttons (21 in total including old), you might need to clear your browser's cache (Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror:: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences.).--Naeya (talk) 17:50, 11 December 2007 (CST)

Very nice additions, thanks Naeya --Farman 20:37, 12 December 2007 (CST)

Multiple File upload

I've added the capability to upload up to 5 files/images at once. You can access this page via the Upload File page or here Special:MultipleUpload. let me know if anyone has problems with it. --Naeya (talk) 23:38, 11 December 2007 (CST)

Thank you! Very useful upgrades. --Aetherie 00:05, 12 December 2007 (CST)

Well, I had to disable this extension for now, it seems to be bugged and will not allow uploads... so until further notices, we'll have to stick with the single upload form. I'll be looking into fixing the muliupload extension when I have time.--Naeya (talk) 12:16, 12 December 2007 (CST)

Addding articles to subcategories

I am trying to figure out how to add the Spell articles to the spellbook subcategories so the (+) plus sign drop downs work. Searched and search can anyone lend a hand? --Deke 08:20, 25 January 2008 (CST)

That's the Category Tree extension and unfortunately it doesn't work how you think it does. the (+) only shows subcategories of the subcategories. Since most of the spellbooks do not have subspellbooks, nothing will show up in their trees. IE - Articles don't show up there. You'll have to actually visit the subcategory to see the articles. Sorry :( --Naeya (talk) 09:21, 25 January 2008 (CST)

Using the Undo feature

If I undo something, does it revert just that one particular edit or does it also revert everything that comes after it

scratch that, found out it only removes the specific edit.--Symphaena 19:14, 3 April 2008 (CDT)