• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Auto-Linking not working in templates using variables

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Results 1 to 7 of 7

    Thread: Auto-Linking not working in templates using variables

    • Thread Tools
      • Show Printable Version
    1. June 19, 2021 #1
      Forsaken
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Forsaken is offline
      Junior Member
      Join Date
      June 13, 2013
      Posts
      13
      Rep Power
      0

      Auto-Linking not working in templates using variables

      Not sure if this a bug, so asking here instead.

      I've made a full page template that is being called in another template with the [template] tag and is filled with the available variables so members will only need to fill those out.

      However the text is not automatically linking, so I don't know if it's an issue of how I am doing things, or potentially a bug or setting.
      Reply With Quote Reply With Quote

    2. June 20, 2021 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      My understanding is that the text that is contained within the template is not auto-linked when the template is used. Only the original text of the page that uses it. If you are going so far as to create a template, you may as well just write the desired links into the template.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. June 20, 2021 #3
      Forsaken
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Forsaken is offline
      Junior Member
      Join Date
      June 13, 2013
      Posts
      13
      Rep Power
      0
      Is it at all possible to get an option to auto-link within templates? There are ~400+ pages that will use this template and a lot of the content will link out to other pages.

      I'm also trying to minimize the amount of work for people contributing as much as possible as we're migrating an old Fandom Wiki to the site.
      Reply With Quote Reply With Quote

    4. June 21, 2021 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      If 400+ pages will use the template, then adding a link to the template will automatically push out to those 400 pages. I'm not sure I see the issue.

      Auto-links are more intended for user content like forum posts that aren't generally thinking about whether something should be a link. If you already noticed that an auto-link did not happen, you are in the mindset to add that link yourself.

      Auto-links inherited from templates would be really bad for performance and would be a vector for DOS attack. I also am not even sure whether it would be technically feasible to handle all situations (e.g. variable outputs).
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. June 21, 2021 #5
      Forsaken
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Forsaken is offline
      Junior Member
      Join Date
      June 13, 2013
      Posts
      13
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      If 400+ pages will use the template, then adding a link to the template will automatically push out to those 400 pages. I'm not sure I see the issue.

      Auto-links are more intended for user content like forum posts that aren't generally thinking about whether something should be a link. If you already noticed that an auto-link did not happen, you are in the mindset to add that link yourself.

      Auto-links inherited from templates would be really bad for performance and would be a vector for DOS attack. I also am not even sure whether it would be technically feasible to handle all situations (e.g. variable outputs).
      So what I'm exactling doing is I've made a template that has the page structure/layout in place, and has the variables that can be filled.

      I then have a second template so that uses the template bbcode with all the variables (and some comments to explain their usage) and that is where I would want auto-linking to happen.

      For some things (mainly in the sidebar) I can setup the variables within a wiki bbcode, but for some sections that are paragraphs that are directly copied from game text it's a bit different.

      If it's not possible it's not possible, and I can just have the people I've promoted to editor handle it when they approve pages.
      Reply With Quote Reply With Quote

    6. June 25, 2021 #6
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Actual page:
      Code:
      [template]Outer Template[/template]
      Outer Template:
      Code:
      [template]Inner Template
      |param=text that needs to be autolinked
      [/template]
      Inner Template:
      Code:
      layout with {{{param}}}
      If I am understanding your setup correctly, you would just hardcode the wiki BB-Code inside "Outer Template." e.g.
      Code:
      [template]Inner Template
      |param=text that [wiki]needs[/wiki] to be autolinked
      [/template]
      Alternatively, if you are implementing Outer Template like above (without passing parameters from the actual page), then you can try injecting it instead. Injection renders Outer Template separately, so in this case it would receive autolinks; however, it would not receive variables (such as [var]PAGETITLE[/var]) from "Actual page". Once it is rendered, it is pasted into "Actual page":
      Code:
      [inject]Outer Template[/inject]
      You are limited in the number of injections that will be rendered on each page.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    7. June 28, 2021 #7
      Forsaken
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Forsaken is offline
      Junior Member
      Join Date
      June 13, 2013
      Posts
      13
      Rep Power
      0
      That's pretty much what I ended up doing, as it makes life easier.
      Reply With Quote Reply With Quote

    Similar Threads

    1. Templates, USER variables and hiding content from guests
      By ACL in forum VaultWiki Questions
      Replies: 1
      Last Post: January 3, 2018, 12:37 PM
    2. Two questions: Wiki index synonyms & linking to an anchor section of a particular page
      By ACL in forum General Discussion
      Replies: 2
      Last Post: May 12, 2017, 7:29 AM
    3. Having an issue with [WIKI] bbcode linking to an anchor
      By mickknutson in forum VaultWiki Questions
      Replies: 1
      Last Post: August 3, 2011, 10:58 AM
    4. Limiting auto linking?
      By DChapman in forum General Discussion
      Replies: 3
      Last Post: September 5, 2010, 11:25 AM
    5. Replacement Variables like $vboptions[bburl]
      By kmonty1978 in forum VaultWiki Questions
      Replies: 1
      Last Post: December 14, 2008, 11:31 PM

    Tags for this Thread

    automatically, bug, template

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 2:11 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.