From: JIRA (f. E. C. S. ) <ji...@pc...> - 2010-12-22 22:36:10
|
[ http://jira.pcgen.org/browse/NEWTAG-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric C. Smith updated NEWTAG-14: -------------------------------- Status: Doco (was: Implemented) > CHOOSE:LANG > ----------- > > Key: NEWTAG-14 > URL: http://jira.pcgen.org/browse/NEWTAG-14 > Project: New Tag > Issue Type: Modify Token > Components: LST Tag > Affects Versions: 5.17.1, 5.17.2 > Reporter: Tom Parker > Assignee: Eric C. Smith > Fix For: 5.17.4 (Alpha) > > > SUBTOKEN: LANGUAGE (deprecated) SUBTOKEN: LANG (new) > [edit] Syntax > CHOOSE:LANG|x|y|y[x]|y[x,x]|x,y,y[x],y[x,x] > x is a Language PRIMITIVE > A PRIMITIVE is an identifier of objects, and may include any number of specifications. In the case of Language objects, there are are the three global PRIMITIVES: > x = an Language (specified by key) > x = TYPE=w (w is a TYPE identifier for a Language) > x = !TYPE=w (w is a TYPE identifier for a Language that would be prohibited) > x = ALL (allow the choice of any Language) > y is a QUALIFIER > A QUALIFIER is a special keyword that identifies a subset of objects that should be returned. Valid qualifiers for Language objects are any of the Global Qualifiers. > A comma represents "AND", meaning multiple items are evaluated independently and then any item that appears in ALL of the items is added to the list. > CHOOSE:LANG|Common,Goblin > will result in NO choices because no Language is both Common and Goblin. > CHOOSE:LANG|TYPE=Foo,PC > would test for any Language that has the Foo type (as defined in the Language LST file) which is ALSO already selected by the PlayerCharacter > This could also be written (probably more clearly): > CHOOSE:LANG|PC[TYPE=Foo] > A pipe represents "OR", meaning multiple items are evaluated independently and then any item that appears in any of the items is added to the list: > CHOOSE:LANG|Common|Goblin > will result in a choice between Language Common and Language Goblin. > All commas (ANDs) are evaluated before pipes (ORs), so something like: > CHOOSE:LANG|Common|TYPE=Foo,PC > would include Common unconditionally, in addition to any Language that has the Foo type (as defined in the Language LST file) which is ALSO already selected by the PlayerCharacter > [edit] Conversion > CHOOSE:LANGAUGE|Spoken becomes CHOOSE:LANG|TYPE=Spoken (also uses AUTO:LANGUAGE|%LIST) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.pcgen.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |