Re: [MediaWiki-l] [Cargo] How to avoid duplicate records?

2020-03-11 Thread Yaron Koren
Hi Brian, Okay, now it makes more sense - I think your unusual setup is what is causing the problem. A simpler setup would definitely be better: each template should be responsible for declaring and storing its own table. Displaying the data together should be done by joining the tables,

Re: [MediaWiki-l] [Cargo] How to avoid duplicate records?

2020-03-11 Thread Bri
Thank you Yaron. I will try what you suggest. By partial duplicate, I mean that one record would have most of the fields filled out and another one with the same _pageName would have most of the fields empty with only one or two fields filled. Part of the issue is that I was accessing the

Re: [MediaWiki-l] [Cargo] How to avoid duplicate records?

2020-03-08 Thread Yaron Koren
Hi Brian, There are some strange aspects to those calls: the #cargo_store call should not have a "where" parameter (you may be confusing between #cargo_store and #cargo_query). Also there's no need for a "Page_Name" field, because every Cargo table will already have an automatic "_pageName"

[MediaWiki-l] [Cargo] How to avoid duplicate records?

2020-03-07 Thread Bri
I keep getting duplicate (or partial duplicate) records. How can I avoid this? {{#cargo_declare: _table = 5eMonster |Sort_Text = String |Page_Name = Page (unique) |Monster_Name = String ... }} {{#cargo_store: _table = 5eMonster |where= Page_Name = {{FULLPAGENAME}} |Sort_Text = {{#if: