Site Variables
Here are various site variables I use on the site so I don't have to type the same thing everytime I need one of these elements.
Item | Code | Output |
---|---|---|
Character Trait Used in the sidebar infobox on character pages. List of character traits. |
[var:trait-aloof] |
Aloof |
Follow world (userstate) This varies depending on the userstate. (Not logged in / logged in and not following / logged in and following) (Used in other variables, which is why it's not wrapped in a follow container) |
[var:util-follow] |
Login to World Anvil to follow this world for updates!
|
Follow world (event) Follow section with event subscriber group checkbox. |
[var:util-follow-event] |
|
Follow world button Just the button alone. Used in the footer. |
[var:util-follow-button] |
|
Chevron Down Mainly used for title spoilers. |
[var:util-chev] |
|
Info Icon Mainly used for generic infoboxes. |
[var:util-info-icon] |
|
Spoiler Warning Box | [var:util-spoiler-warning] |
There may be potential story spoilers below! |
Outdated Article The article has to be tagged with outdated for it to show up. Put the variable code in the credits header section. |
[var:util-outdated] |
This article has been labeled as outdated. Information on this page may change at a later date! |
WIP Section Put the variable code wherever needed. |
[var:util-wip] |
The information below is still a Work In Progress (WIP). |
Content Warning Tags Either the article is tagged with content warning tags, or the variable is wrapped in a section tag with all ESRB tags that apply. Put the variable code in the credits header section if for the article, otherwise put it where it's needed. See Tag Overview for a list of content warning tags. |
[var:util-esrb] |
|
Content Warning Tags (section) This is specifically if the article is tagged for ESRB tags, and I want a specific section to be labeled separately. The variable has to be wrapped in a section tag with all ESRB tags that apply. See Tag Overview for a list of content warning tags. |
[section:esrb-violence esrb-gore][var:util-esrb-section][/section] |
|
Event Global Announcement This is for displaying a global "announcement" that there is an ongoing World Anvil event, and links to the LotD's event page. The variable code is in the Global World Header Block section. If there is no ongoing event, the variable is commented out. The details of this box are edited on the variable page every time a new event starts. All variations are listed in the table below. |
[var:util-event] |
|
Navbox This is for displaying a navbox at the bottom of an article. Which navbox shows is dependent on article tags. The variable code is in the Global Article Footer Block section. |
[var:navbox] |
Event Announcement Templates
This is a list of the BBCode for all the event announcements. These are currently only World Anvil events and not Legends of the Dragonguard community events.
Note: The code listed in the table below is the specific content of the announcement banner, not the whole thing. The BBCode below is put within the "content" container.
Another Note: The button link also needs the correct year. The template has it as "20YY'.
Event | BBCode |
---|---|
New Year's Resolutions January |
[p]Check out the [b]New Year's Resolutions[/b]![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/nyr-20YY]Read resolutions [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
Worldbuilding Awards (First round) Mid February |
[p]First round of [b]Worldbuilding Awards[/b] voting is going on right now![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/worldbuilding-awards-20YY]View submissions [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
Worldbuilding Awards (Second round) (If shortlisted) March |
[p]Second round of [b]Worldbuilding Awards[/b] voting is going on right now![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/worldbuilding-awards-20YY]View submissions [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
Summer Camp Prep June |
[p][b]Summer Camp[/b] event preparations are going on right now![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/summer-camp-20YY-prep]Check it out [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
Summer Camp July |
[p][b]Summer Camp[/b] event is going on right now![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/summer-camp-20YY]View the prompts [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
Summer Reading August |
[p][b]Summer Reading[/b] challenge is going on right now![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/summer-reading-20YY]Check it out [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
Spooktober October |
[p][b]Spooktober[/b] event is going on right now![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/spooktober-20YY]View the prompts [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
NovelEmber November |
[p][b]NovelEmber[/b] event is going on right now![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/novelember-20YY]Check it out [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
WorldEmber Prep November (if not doing NovelEmber) |
[p][b]WorldEmber[/b] event preparations are going on right now![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/worldember-20YY-prep]Check it out [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
WorldEmber December |
[p][b]WorldEmber[/b] event is going on right now![/p] [container:btn btn-primary btn-event wa-button][url:https://www.worldanvil.com/w/dragonguard/a/worldember-20YY]Check it out [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
I am in awe at how organised your world is! It's super inspiring, and really makes me want to work harder on my own worlds <3
<3 glad to be an inspiration for others!