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 block (userstate) This varies depending on the userstate. (Not logged in / logged in and not following / logged in and following) |
[var:util-follow] |
Login to Wolrd Anvil to follow this world for updates!
|
Follow world button Just the button alone. |
[var:util-follow-button] |
(You will only see this if you're not following the world) |
Chevron Down Mainly used for title spoilers. |
[var:util-chev] |
|
Info Icon Mainly used for generic infoboxes. |
[var:util-info-icon] |
|
Content Warning Tags The article has to be tagged with content warning tags for it to show up; put the variable code in the credits header section. See Tag Overview for a list of content warning tags. |
[var:util-esrb] |
|
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 |
---|---|
Worldbuilding Awards End of January - March |
[p][b]Worldbuilding Awards[/b] event 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]Check it out [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/scYY-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]Check it out [section:fas fa-sm fa-chevron-right] [/section][/url][/container] |
Summer Reading August |
[p][b]Summer Reading[/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-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]Check it out [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 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] |
Comments