Discuss Especialidades JA

From Pathfinder Wiki
< Talk:Adventist Youth Honors Answer BookTalk:Adventist Youth Honors Answer Book/es /
Revision as of 04:10, 21 October 2015 by Jomegat (talk | contribs) (primary vs secondary)

Quilting in Spanish is showing up with its two variants in the list and I am not sure how to make them not show. I don't remember if it has to do something with primary and secondary categories. How can I get only the one to show up in the list on the main page? --w126jep (talk) 08:15, 20 October 2015 (EDT)

Yes, the Honor_desc/es template isn't handling the primary element correctly. If it's defined, it points to the page that serves as the "primary" anchor for that honor.
The logic for adding the page to either a primary or secondary category (which is what allows or disallow its display by the index) is a bit convoluted because the wiki if syntax is not terribly flexible. I'll give it a go in English (rather than in wiki):
IF the page specifies a primary argument THEN
  add the page to category:AYHAB/Primary
ELSE
  IF the page ends with "/en"
    add the page to category:AYHAB/Secondary
  ELSE
    add the page to category:AYHAB/Primary
    add the page to category:AYHAB/Primary/{{{primary}}}
  ENDIF
ENDIF
The Spanish version of the template lacks all of that. I'd add it, but it's late, I'm tired, and it is a fairly complex operation that will break a lot of stuff if I blow it. The easy work-around until then is to manually add the quilting pages to category:AYHAB/Secondary. --Jomegat (talk) 00:10, 21 October 2015 (EDT)