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 |
Definition Used to show the definition of a word with a tooltip. There are two versions of the word: one lowercase and one capitalized. List of definitions. |
[var:def-aposematism] [var:def-aposematism-cap] |
aposematism Aposematism |
Idiom Used to display an idiom in a simplified blockquote with an explanation below. Mainly used for dragon-themed idioms on dragonkin species articles. List of all dragon-themed idioms. |
[var:idiom-like-a-borewyrm] |
Like a Borewyrm
> Referencing the fact that borewyrms burrow into the ground. An alternative to "drilling" something, like an ideology, into people's heads. |
Nlcheck's username Mostly used in Trivia sections on articles for those who don't know that Nulcheck is the creator of this world. Check out this article for an example. |
[var:util-me] |
Nulcheck |
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 button Just the button alone. Used as a variable in other variables. |
[var:util-follow-button] |
|
Follow world (event) Follow section with event subscriber group checkbox. Used on event pages in the sidebar. (Temporarily Disabled) |
[var:util-follow-event] |
|
Follow world (section) Takes the Follow world (userstate) and wraps it in a follow container to apply CSS, and adds a horizontal bar. Used on articles in the sidebar. |
[var:util-follow-section] |
Login to World Anvil to follow this world for updates!
|
Chevron Down Mainly used for title spoilers. |
[var:util-chev] |
|
Info Icon Mainly used for generic infoboxes. |
[var:util-info-icon] |
|
Pen in Box Icon Mainly used as a "WIP" or "currently working on" checkbox for tasks. |
[var:util-pen] |
|
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. Variable goes 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 Variable is put wherever needed. |
[var:util-wip] |
The information below is still a Work In Progress. |
Stub Article Variable goes in the credits header section. |
[var:util-stub] |
This article is a stub and is still a Work In Progress! |
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. (e.g. This article) 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] |
|
Collapsable Navbox This is for displaying a collapsable navbox at the bottom of an article. The variable has all of the navboxes and CSS determines which navbox displays based on article tags. The variable code is in the Global Article Footer Block section. See the list of Navboxes. |
[var:util-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!