Wiki tables

Post any bugs, problems or feature requests here.
Mercury
Mercury
Brend
Brend

Wiki tables

Post Mercury » Sat Jun 02, 2012 11:30 am
User avatar
Mercury
Storyteller
 
All tables on the wiki have been fixed.
Post Brend » Sat Jun 02, 2012 11:32 am
User avatar
Brend
 
While I appreciate the help -- please leave my user space alone next time. I'll be responsible for my own user:brend: namespace, especially if this means that my tables aren't converted in a way that changes their meaning. OR leaves some of them unconverted... (I'm talking about Technology Overview, that I had to edit to get the original tables back.)

PS. That page is a good example of how a dataaggregation can be converted as well.
Post Brend » Sat Jun 02, 2012 11:41 am
User avatar
Brend
 
It seems you did leave my namespace alone. Except for that one page ~_~

But now I need to know: why did you change that one table?
Post Mercury » Sat Jun 02, 2012 11:50 am
User avatar
Mercury
Storyteller
 
I changed ALL datatables on the wiki, but I couldn't figure out the last one
Post Brend » Sat Jun 02, 2012 11:51 am
User avatar
Brend
 
@Mercury: what last one? (i.e user:brend:pop, user:brend:worlds....)

----

It seems that a manual is in order -- some of the conversion are written down in a less then perfect way :P

Let me give you an example of this (on the Confederacy of Excaria page):

Code: Select all
<table ?race "Species" ?number>
?group is a: population
?group Faction_ref: ?faction
?group race_ref: ?race
?group number: ?number
?faction = confederacy_of_excaria
</table>


Is easier as:
Code: Select all
<table ?race "Species" ?number>
?group is a: population
?group Faction_ref: [[Confederacy of Excaria]]
?group race_ref: ?race
?group number: ?number
</table>


Note the removal of the equal sign. This query is exactly the same -- you can also leave away the [[ and ]] and it'll still work fine. Unfortunately it's still faction-specific.

So to fix that:
Code: Select all
<table ?race "Species" ?number>
?group is a: population
?group Faction_ref: [[]]
?group race_ref: ?race
?group number: ?number
</table>


Note the omission of any link in between the [[ and ]]. This will link to the current page. (This is even correct wiki syntax. just try the [[]] link on any page, and it will link to itself.)

Now the only case is having multiple population segments with the same population. We want those to be summed up.

So to finish:
Code: Select all
<table ?race "Species" ?number@sum>
?group is a: population
?group Faction_ref: [[]]
?group race_ref: ?race
?group number: ?number

group {
  ?race
}
</table>


We add group on the ?race variable, and user @sum to sum up all ?numbers for a single race.

Now you have a generic and correctly-summed population overview.

For more interesting things, the manuals can currently be found at Test-wiki manuals namespace. I will move them to the FWURG wiki tomorrow!
Post Mercury » Sat Jun 02, 2012 12:36 pm
User avatar
Mercury
Storyteller
 
I only fixed datatables, not dataaggregations - your explanation helps though
Post Brend » Sat Jun 02, 2012 12:43 pm
User avatar
Brend
 
Yeah. Sorry about that. I forgot that not everyone had access to the manual...

Chriz did. So I assumed, falsely, that you had also seen them.

Return to Technical

cron