https://bugzilla.wikimedia.org/show_bug.cgi?id=32817
Web browser: ---
Bug #: 32817
Summary: #arraymap separator insertion after occurrence of
variable
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: SemanticForms
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
I've got this arraymap in a template:
{{#arraymap:{{{Type|}}}|,|VariableValue|[[Type::VariableValue]]: {{#show:
VariableValue | ?Type name}} }}
With three items in the "Type" parameter, it produces an output that looks like
this:
CCT30: Panda, CCT228: 1995 1 oz silver panda, CCT260: Fake panda,, , ,
Where CCT30, CCT228, and CCT260 are the values for the "Type" parameter, and
the text strings after their colons are the output from the #show query.
I'm guessing the extra commas at the end are produced because the code looks to
insert a comma after each occurrence of the variable, which is named
"VariableValue" in this case. That's just a guess though.
You can view this result here:
http://www.coincompendium.com/wiki/index.php/CCT29
User: Demo
Password: test
Also, the documentation for #arraymap is very sparse. I think I'm using it
correctly, if perhaps not how it was intended. This is all I could find for
documentation:
http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Semantic_Forms_and_templates
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l