Variables

Restructuring the Codex

We are currently moving articles around and changing the general structure of the Codex. Please come back later if you get lost!
 

Comments

Author's Notes

Any questions? Any ideas on how to use these variables? Comment on this article or come to our Discord community.


Please Login in order to comment!
Mar 18, 2021 14:49 by Neil

I love this new feature and am making extensive use of it (mainly for characters, locations and items that do not warrant a full article). It would be really great if, in the future, you could add the ability to move variables from one category to another. Some of my categories are pretty big now!

Mar 18, 2021 19:15

It is a great feature, yes! You would need to make a feature request for that :)   In the meantime, there is a reason I wrote to better have too many collections than too few! ;)

Check out my world World Behind the Veil!
Mar 27, 2021 15:06 by Bob O'Brien

A helpful addition to this guide would be information on the containers used by variables for those of us that have specific CSS for popups such as tooltips, mouseovers.

Check out my latest efforts:
Laurels & Loot is a new, lightweight TTRPG rules system that hearkens back to the early days.
Mar 29, 2021 11:49

Hi, not that would be something added to the CSS guides and then linked. I can see if we get someone to write something up.

Check out my world World Behind the Veil!
Apr 2, 2021 16:53 by Daniel Ryder

I don't suppose this is the kind of thing that could ever go in titles? If they could, this would be the one thing I have always wanted as a guy with a world with too many conlangs, but never had. (Though, I understand there might be technical reasons why not)

Apr 2, 2021 18:13

Putting them into a title is very unlikely as the titles are used to create the URL. As a workaround you can for example add a small footnote (question mark icon) to the article links in the form of a variable (this of course means you have to always insert to values, but its a lot faster than repeating tooltips :))

Check out my world World Behind the Veil!
Apr 3, 2021 10:33 by Daniel Ryder

I figured there might be technical reasons like that :P A shame, but not a huge one, I suppose!

Apr 13, 2021 05:46 by Marc Betbeder-Matibet

These variables are great! They solve one of my biggest issues using WA, needing to explain something small without dedicating an entire article to it. I'm hoping to use them all throughout my world, for small things and for common shorthand.   However, I'm having an issue getting variables to nest properly. This isn't a deal-breaker, but would be handy to have, especially to be able to include shorthand in my other variables. An example of this not working is in this article (Emberstone), where I have placed the 'Garnet' variable, and my nested variables to not show up. They are meant to be in the value column ('gp' should show up after '10'), and the heading of the 4th column ('CC'). Is this because I am embedding them within a BBCode table, or am I doing something else wrong?

Apr 25, 2021 05:18

Hi! Unfortunately, variable nesting support was removed from Advanced Terms, but the documentation has not been updated yet. I made a report to have this changed.

Check out my world World Behind the Veil!
Apr 19, 2021 10:17 by Tengwean

First of all: I love the feature so, so much! It makes so many things so much easier, so thank you!   But, from the sidebar of the Variables-page   "Term, Advanced All form fields required When embeded into an article, the value will appear as a tooltip of the title. The value can include BBCode tags and other variables (one additional level), which will be rendered in the tooltip"   According to the Codex , nesting only works with fragments (which also seems to be the current version). I am however 100% certain that when the feature launched the advanded terms could be used to embed another variable, so I would ask to either change the description on the sidebar or (which I'd prefer if possible) reenable nesting in advanced terms.

We share this world - so make it a better place both for people and the environment. <3
Apr 25, 2021 05:17

Thank you! I submitted a report to change the documentation.

Check out my world World Behind the Veil!
Apr 27, 2021 02:12

Are there barriers to using simple variables within stat blocks? I've been unable to get them to work!

Apr 27, 2021 04:53

Hi. Statblocks do not support variables as those are defined for a World while statblocks are not and can be used in many places.

Check out my world World Behind the Veil!
Jun 29, 2021 16:27 by Allan Reith

I do not understand how to use this feature. Could you post instructions on how to import RPG Awesome? I have tried following the instructions above, to no avail.

Nov 17, 2021 17:50 by M. R. Struble

New to WA and just starting to dip into the possibilities of variables. So far they are really amazing! I do have a question though and maybe variables are not the correct area for this. I was trying to create a template with bbcode in it that I could easily paste into my articles while writing. I am currently just using Notebook and swapping tabs which works fine (if I’m not being lazy). I thought the rendered fragment would do what i wanted but I see now how that functions and a template will not work there. Is there a way to do this? I could type something like [noteTemp] and it would paste editable code [quote] [h2]Title[/h2][br] this is a template | Name [/quote]   I hope this made sense and thank you for any advice :)

Nov 17, 2021 18:46

What you are looking for can be achieved with Custom Templates and Random Generators, both of which are Grandmaster features. Variables can't be used for this.

Check out my world World Behind the Veil!
Nov 17, 2021 19:33 by M. R. Struble

Thank you for the quick response!!! That is good to know and also the reason i have not found it (being only a master). More and more it looks like I might have to go for grandmaster status :D…. Now to convince the wife haha.   Thank you again for the response!