Difference between revisions of "Category talk:Adventist Youth Honors Answer Book/Family, Origins, and Heritage Master Award/es"

From Pathfinder Wiki
 
(indices)
Line 4: Line 4:
  
 
Let me know if you figure anything out, please --[[User:W126jep|w126jep]] ([[User talk:W126jep|talk]]) 03:04, 7 May 2015 (EDT)
 
Let me know if you figure anything out, please --[[User:W126jep|w126jep]] ([[User talk:W126jep|talk]]) 03:04, 7 May 2015 (EDT)
 +
----
 +
One problem I see is that the switch statements in [[Template:Honor Master/es]] are backwards.  The switch statement compares its argument (in our case, "master" with a list of words on the left.  When it finds a match, it outputs the text to the right of the equal:
 +
 +
Consider this:
 +
<nowiki>
 +
{{#switch:{{{x}}}
 +
| A = apple
 +
| B = bear
 +
| nothing
 +
}}
 +
</nowiki>
 +
What is says in plain language is:
 +
If x equals A, then output "apple".
 +
Else, if x equals B, then output "bear".
 +
Else, output "nothing".
 +
 +
I think you need to reverse A and apple in Master Honor.  I'd jump in and help out more, but I am slammed at work, and by the time I get home, I am exhausted. --[[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) 08:31, 7 May 2015 (EDT)

Revision as of 12:31, 7 May 2015

Getting indices to show

I'm just not getting it. It could be a million tiny things or just one. I cannot make the indices to show in Spanish for the new divisions of the Master Awards. I've been tweaking here and there trying to see what I'm missing.

Let me know if you figure anything out, please --w126jep (talk) 03:04, 7 May 2015 (EDT)


One problem I see is that the switch statements in Template:Honor Master/es are backwards. The switch statement compares its argument (in our case, "master" with a list of words on the left. When it finds a match, it outputs the text to the right of the equal:

Consider this: {{#switch:{{{x}}} | A = apple | B = bear | nothing }} What is says in plain language is: If x equals A, then output "apple". Else, if x equals B, then output "bear". Else, output "nothing".

I think you need to reverse A and apple in Master Honor. I'd jump in and help out more, but I am slammed at work, and by the time I get home, I am exhausted. --Jomegat (talk) 08:31, 7 May 2015 (EDT)