elanthipedia:Town Green (technical)

From Elanthipedia
Jump to navigation Jump to search



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

Template:SymphaenaTesting
{{#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)