Extreme Wikilinks

approved

by bobstanton

Take your Wikilinks to the eXtreme! by using frontmatter to customize their appearance. - This plugin has not been manually reviewed by Obsidian staff.

ā˜… 1 stars↓ 93 downloadsUpdated 27d agoAGPL-3.0

Extreme Wikilinks

Take your Wikilinks to the eXtreme! by using frontmatter to customize their appearance. EXTREME!

Extreme Wikilinks demo

Using frontmatter such as:

---
Address: 1040 S Washington Ave, Scranton, Pennsylvania 18505
icon: šŸ•
---

With a template like:

{this.icon} {this.wikilink}

Will result in:

šŸ• [[Alfredos Pizza Cafe]]

Or with frontmatter:

---
Distance: 1.57 mi
icon: 🄨
---

And template:

{this.icon} [[{this.linkDestination}|{this.title} {this.Distance}]]

Results in:

🄨 [[Pretzel Day Walk|Pretzel Day Walk 1.57 mi]]

Templates can be conditionally applied based on headings or target links.

Templates

Templates are managed in plugin settings.

Built-in values:

  • {this.title} - linked file basename
  • {this.basename} - linked file basename
  • {this.path} - linked file path
  • {this.wikilink} - Wikilink to the original link destination using the original display text
  • {this.linkDestination} - original link destination, including headings or block anchors
  • {this.linkDisplayText} - original link display text, such as Pizza from [[Alfredos Pizza Cafe|Pizza]]
  • {this.frontmatter} - linked file frontmatter object

Linked file frontmatter is also available directly, such as {this.icon}, {this.Address}.

For frontmatter names with spaces or punctuation, use bracket syntax:

{this['Property With Spaces']}

Template expressions can use JavaScript:

{h.hasTag(this.tags, 'online-ordering') && this.Website ? this.Website : ''}

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.