Site Variables

Here are various site variables I use on the site so I don't have to type the same thing every time 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]
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]
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]
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. The information on this page is subject to change!
WIP Section
Variable is put wherever needed.
[var:util-wip]
The information below is a Work In Progress.
WIP Article
Variable goes in the credits header section.
[var:util-article-wip]
This article is 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]

[section:esrb-violence esrb-gore][var:util-esrb][/section]
Content Warning:
Violence Gore Drugs / Alcohol Animal Abuse Self-harm Profanity
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]
Content Warning:
Violence Gore Drugs / Alcohol Animal Abuse Self-harm Profanity
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]
Navbox Image


Cover image: by Nulcheck

Comments

Please Login in order to comment!
Jan 24, 2025 22:11 by Mochi

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

I'm a Comment Caroler! Click to learn more
I hope you have a great day!   Explore the endless planets brimming with life of the Yonderverse! Go after creatures, discover new places, and learn about the people you find along the way. While you're at it, come visit the A to Zoo, the Yonderverse's largest zoo!   Come prep for WorldEmber with me!
Jan 24, 2025 23:00

<3 glad to be an inspiration for others!

Fly high, Guardian. o7
— Nulcheck
Powered by World Anvil