• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Feature
    • Transclude Article BBCode

    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.

    Issue: Transclude Article BBCode

    • Issue Tools
      • View Changes
    1. issueid=1381 April 5, 2010 3:20 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Transclude Article BBCode
      Transclude Article BBCode

      It would be nice if the ability to transclude an article, or part of an article could be done, perhaps through some form of BBCode ([transclude]?).

      This would help when users wanted to include part of an article, and then allow that article to be edited seperately, but show up in all the instances it has been transcluded.
    Issue Details
    Issue Number 1381
    Issue Type Feature
    Project VaultWiki 4.x Series
    Category BB-Code Parsing
    Status Implemented
    Priority 7 - Minor Features / Enhancements
    Suggested Version 3.x
    Implemented Version 4.1.0 Alpha 1 Preview
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Votes for this feature 0
    Votes against this feature 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 14, 2011 5:40 PM
      pegasus pegasus is offline
      VaultWiki Team
      Moving this to "In Progress", since the page factories have been redesigned to output content unwrapped for inclusion in different containers.

      Since the TRANSCLUDE BB-Code has the potential to generate a large number of queries per use, we also need to create a setting "Max uses of TRANSCLUDE per post?" with a default value of 1. 0 should never disable the limit, as that would open up the site to user-generated DDoS attacks.
      Reply Reply  
    2. November 15, 2011 1:03 PM
      pegasus pegasus is offline
      VaultWiki Team
      See this issue for discussion about the necessary MediaWiki conversion: https://www.vaultwiki.org/issues/2535/
      Reply Reply  
    3. October 13, 2013 1:57 PM
      pegasus pegasus is offline
      VaultWiki Team
      Moved to the VaultWiki 4 tracker. Originally requested for 3.0.0 RC 1.
      Reply Reply  
    4. February 22, 2014 3:24 PM
      pegasus pegasus is offline
      VaultWiki Team
      What you are describing is already possible in VaultWiki 4 using the Template BB-Code. In VaultWiki 4, templates don't need the Template: prefix so you can make any page into a template. The only thing is that you MUST say the page can be used as a template. This saves resources because compiles several caches about the page that are only used by templates.

      As far as transcluding articles outside of the wiki using a transclude BB-Code, I think I must decline this. You can quote articles (though it could certainly be made easier, and it should enable the wiki parser within the QUOTE tags), you can use the wiki parser in normal posts and just include local templates (or templates) that way -- although VaultWiki 4 doesn't have this feature enabled yet, and you can inject entire wiki articles onto virtually any page on the forum (provided you have edit rights to that forum page).
      Reply Reply  
    5. November 24, 2014 12:07 PM
      xorlof xorlof is offline
      New Member
      Quote Originally Posted by pegasus
      ...you can use the wiki parser in normal posts and just include local templates (or templates) that way -- although VaultWiki 4 doesn't have this feature enabled yet, and you can inject entire wiki articles onto virtually any page on the forum (provided you have edit rights to that forum page).
      Two quick questions:

      1) You can include wiki templates in forums posts? Anything special needed to do that?

      2) How do you go about injecting articles into a forum page? Or are you talking about the headers feature?

      Thanks!
      Reply Reply  
    6. November 24, 2014 12:19 PM
      pegasus pegasus is offline
      VaultWiki Team
      1) This function is still missing. We're probably going to keep forgetting until someone who needs it posts a bug. And even then it will probably only be brought back if someone can describe a real-world scenario where it would be useful in regular posts aside from the first post (for the first post, a header could just be used). It's a very complicated function to implement, and very few, if any, customers ever used it in a way that could not be accomplished using other features.

      2) I believe what I was referring to was the headers feature. You can pick any wiki page and put it at the top of a specific forum, thread, group/blog category, user profile, etc. Allowing users to do this in their individual posts might crash your forum if a lot of users take advantage of it in the same thread.
      Reply Reply  
    7. November 24, 2014 12:53 PM
      xorlof xorlof is offline
      New Member
      Thanks for the reply. How did it work before? I want to try it out on a site I frequent that still uses v3. Did you just do a [template]Name_Here[/template] to trigger it because I don't think I've ever seen that work on a VW-associated forum.

      As for use case, mostly as a hack to use in place of direct support for allowing insertion of an article in the middle of a post. Something like, "Here are the currently known foo: [template]Foo_List[template]. You keep things updated in one spot (the template) and all posts get automagically updated when you update that template (when the post cache expires). Yes, you could link to a central source, but it can be nice to put it right in the body of a post.

      I don't want it enough (on the one VW4 test site I have) to distract you from more important things, but if the functionality can be done in VW3 (for a site I frequent, but don't run), it would be nice to get a pointer to how it can be done.

      Thanks again!
      Reply Reply  
    8. November 24, 2014 1:13 PM
      pegasus pegasus is offline
      VaultWiki Team
      From what I remember, there is a setting to turn it on for particular forums "Allow users to post wiki code in regular posts?" or something like that. In a forum with the feature enabled, only usergroups with the appropriate permission can do it. When those usergroups post in that forum, there will be an option in the editor in the "Additional Options" section to use the BB-Code parser or the Wiki Code parser.

      In VaultWiki 4, you can put lists in regular posts, as long as the list corresponds to an existing area, book, category, group, special page, etc.

      For example, to output a list of articles from a category called "Test", you would do the following in VaultWiki 4:
      Code:
      [widget]category|category="Test" count="50"[/widget]
      Which would output the first 50 results from category Test in a list. This should work in both regular posts and wiki posts.
      Reply Reply  
    9. October 27, 2018 2:23 PM
      pegasus pegasus is offline
      VaultWiki Team
      This is implemented in 4.1.x. You would use the following BB-Code:
      Code:
      [inject]name-of-page-to-insert[/inject]
      The page is rendered in isolation from the current context and inserted as a straight insertion. You cannot pass arguments to the page and it has no idea that another page has invoked it. If you need these functions, you must use a real template.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 10:51 AM.
    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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.