by Former Citizens of the Nimbus System » Thu Jul 28, 2016 6:20 pm
by Imperium Anglorum » Thu Jul 28, 2016 6:29 pm
by Trotterdam » Thu Jul 28, 2016 7:13 pm
It would be considerably easier to write a program that plugs API-retrieved values into a template to produce fully-formed BBCode that can then be manually copy+pasted into a factbook without further manual processing, which is what I assume the original poster was asking about. This shouldn't be hard for anyone with a basic grasp of coding, but unfortunately I can't just supply ready-made code because it depends on your programming environment (my own current scripts are kludge-jobs that are decidedly not portable).Imperium Anglorum wrote:From a coding perspective, this would require a dynamic webpage,
by Former Citizens of the Nimbus System » Fri Jul 29, 2016 2:20 am
by Trotterdam » Fri Jul 29, 2016 11:11 am
by Almonaster Nuevo » Fri Jul 29, 2016 11:23 am
by Former Citizens of the Nimbus System » Fri Jul 29, 2016 1:02 pm
Trotterdam wrote:One problem with completely automatic updating is that it could result in the text not matching the data presented. Like, you might have your Average Income value automatically plugged into your factbook, but if you embellished it with something like "this is a rich country, with an average income of [census=72] SMU", or a more detailed explanation of how your economy works, or something, and then you do something gameside that causes your economy to crash, your factbook will still claim you're a rich country even though the numbers no longer match.
If the factbook really does nothing but quote the game values, with no embellishment, then you might as well not bother. Just link to the game's analysis pages.
by Austria and Bavaria » Fri Jul 29, 2016 1:03 pm
by Ivelboria » Sat Jul 30, 2016 1:39 pm
GOV.NE | About Neviersia | Wikipedia | Politics | States & Territories | Cities
by Former Citizens of the Nimbus System » Mon Aug 08, 2016 3:11 am
by [violet] » Tue Aug 09, 2016 5:54 pm
by Trotterdam » Tue Aug 09, 2016 6:28 pm
Capital and faith but no leader? Is this an oversight?
by Austria and Bavaria » Tue Aug 09, 2016 9:26 pm
[violet] wrote:Actually yes! Still in development, but if you like you can have a play. Dispatches support tags in the format "[data:TAG]", where TAG is one of the keywords below.
They don't work in preview mode at the moment, only in published dispatches.
Tags:
population
animal
currency
capital
faith
region
influence
gdp
tax
income
census-score-N
census-rank-N
census-regionrank-N
With the last three, the N should be replaced with a census ID number, e.g. 3 for population.
Example test dispatch.
by Bears Armed » Wed Aug 10, 2016 3:54 am
Trotterdam wrote:When it comes to very large numbers (population, GDP), there are three formats people might want them in: plain ("123000000000"), comma-separated ("123,000,000,000"), and formatted ("123 billion").
by Former Citizens of the Nimbus System » Wed Aug 10, 2016 6:44 am
[violet] wrote:Actually yes! Still in development, but if you like you can have a play. Dispatches support tags in the format "[data:TAG]", where TAG is one of the keywords below.
They don't work in preview mode at the moment, only in published dispatches.
Tags:
population
animal
currency
capital
faith
region
influence
gdp
tax
income
census-score-N
census-rank-N
census-regionrank-N
With the last three, the N should be replaced with a census ID number, e.g. 3 for population.
Example test dispatch.
by Trotterdam » Wed Aug 10, 2016 8:13 am
Ha, you're lucky! In many countries in Europe, the practice is to use commas to mark fractional parts and dots to separate large numbers, as opposed to the international standard of doing it the other way around. It's annoying.Bears Armed wrote:*<mutters grumpily that when & where I went to school [1965-'78, in England] we were always taught to use apostrophes, not commas: and when using commas, isn't there a risk of large numbers getting mistaken for lists of smaller ones?>*
by Imperium Anglorum » Wed Aug 10, 2016 11:37 am
Bears Armed wrote:Trotterdam wrote:When it comes to very large numbers (population, GDP), there are three formats people might want them in: plain ("123000000000"), comma-separated ("123,000,000,000"), and formatted ("123 billion").
*<mutters grumpily that when & where I went to school [1965-'78, in England] we were always taught to use apostrophes, not commas: and when using commas, isn't there a risk of large numbers getting mistaken for lists of smaller ones?>*
by Almonaster Nuevo » Wed Aug 10, 2016 2:50 pm
by Enfaru » Wed Aug 10, 2016 6:22 pm
by Aclion » Thu Dec 29, 2016 5:20 am
[violet] wrote:I totally forgot I already implemented this:
viewtopic.php?f=15&t=385192&p=29573864
People are supposed to be testing and providing suggestions for more tags.
Enfaru wrote:I know this is a new thing but can we tweak this (pretty please).
I'm not precisely sure what the data tag does but I would like to modify it.
So...
[calc:[data:GDP]/1000] would output the GDP reduced by three places. Using number Special Char number as the format the code behind could easily perform simple calculations that then update automatically.
or event...
[data:gdp&/&1000]
This would be great for role-players.
by New Legland » Tue Jan 09, 2018 3:31 pm
[violet] wrote:Actually yes! Still in development, but if you like you can have a play. Dispatches support tags in the format "[data:TAG]", where TAG is one of the keywords below.
They don't work in preview mode at the moment, only in published dispatches.
Tags:
population
animal
currency
capital
faith
region
influence
gdp
tax
income
census-score-N
census-rank-N
census-regionrank-N
With the last three, the N should be replaced with a census ID number, e.g. 3 for population.
Example test dispatch.
Enfaru wrote:I know this is a new thing but can we tweak this (pretty please).
I'm not precisely sure what the data tag does but I would like to modify it.
So...
[calc:[data:GDP]/1000] would output the GDP reduced by three places. Using number Special Char number as the format the code behind could easily perform simple calculations that then update automatically.
or event...
[data:gdp&/&1000]
This would be great for role-players.
by Ikheria » Fri Jun 26, 2020 10:52 pm
Remember, Ikherian Language is Indonesian, but writed in Cyrillic script!
Ikheria Federal News Agency: ISEA reviewing IGMMS proposal.|Ikheria Navy began patrolling Baltic Sea after NATO 'pranking' Russia there.
by Merni » Sat Jun 27, 2020 12:03 am
Ikheria wrote:Hello, anyway, this macro in factbook ([data:leader]) don't work, so it stil in development or stoped?
[violet] wrote:Actually yes! Still in development, but if you like you can have a play. Dispatches support tags in the format "[data:TAG]", where TAG is one of the keywords below.
They don't work in preview mode at the moment, only in published dispatches.
Tags:
population
animal
currency
capital
faith
region
influence
gdp
tax
income
census-score-N
census-rank-N
census-regionrank-N
With the last three, the N should be replaced with a census ID number, e.g. 3 for population.
Example test dispatch.
Advertisement
Users browsing this forum: 9003, Baharan, Card Cleaver, Dustwind, James_xenoland, Liravia, Micro Gettysburg, Neo-Hermitius, The Koryoan Union, Yuspuize
Advertisement