• 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
    • Default 'Template' for New Article

    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: Default 'Template' for New Article

    • Issue Tools
      • View Changes
    1. issueid=1291 March 18, 2010 12:14 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Default 'Template' for New Article
      Have a Default 'Template' or layout for a new Article

      I was thinking (after a discussion with a wiki user) that it'd be nice to have a proper system where a 'page' can be flagged as default, with default content and layout.

      If this was possible, it would allow a new user to simply replace the relevant material, perhaps including a link to an explanation page.
    Issue Details
    Issue Number 1291
    Issue Type Feature
    Project VaultWiki 4.x Series
    Category Text Editor (WYSIWYG, etc)
    Status Implemented
    Priority 8 - Major Features / Enhancements
    Suggested Version 3.x
    Implemented Version 4.1.0 RC 3
    Milestone VaultWiki 4.1
    Software DependencyAny
    License TypePaid
    Votes for this feature 6
    Votes against this feature 0
    Attachments 0
    Assigned Users (none)
    Tags (none)


    Page 1 of 2 12 Next LastLast


    1. March 18, 2010 12:43 PM
      pegasus pegasus is offline
      VaultWiki Team
      Will look at this again when we work on RC 2. In that release we'll be focusing on making changes to the parser.
      Reply Reply  
    2. April 20, 2010 12:01 AM
      pegasus pegasus is offline
      VaultWiki Team
      Another review of this and it's obvious this will require changes to the editor, and not the parser itself. In the interest of getting the parser rewrite complete for RC 2, this feature has been pushed back to RC 3.
      Reply Reply  
    3. March 31, 2011 3:19 AM
      Alan_SP Alan_SP is offline
      Regular Member
      Here's my view, with something similar in my mind:

      Well, the main problem is that sections aren't editable easily, i.e. they aren't editable at all.

      Did you try just to fill new articles with premade contents? I admit that I don't know much about programing but the process I see in my head is:

      1. Admin or users with enough rights create template with some text (of course, text can have BBcodes in it, but BBcodes are just text before they are parsed).
      2. User in process of creating article chooses first which template (kind of template I'm speaking of) to use, or not to use any (create blank article).
      3. This text is just copied in a new article, but it's just plain text (at least from programs point of view, never mind that it has BBcodes in it). As I would paste it from somewhere else, I think you could program somehow that text would be inserted in article. And not some object, code construct, just plain text.
      4. User fills that text with contents, as users do.
      5. When user saves it, text gets parsed, as usually.
      6. Now we have wiki article with working template, correctly parsed, someone else could edit sections and whatever else.

      I think the key is that you treat my kind of template as plain text whole time and let parser do it's magic when time for parser to do its magic comes.

      As I said, I'm not a programmer, but that's how I see it and I think that there are ways that enable you to put some predefined text (of course, admins and users with sufficient rights are responsible for text's meaningfulness) first and let parser to create wiki article later.
      The thread is here: http://www.vaultwiki.org/threads/5028/

      And here's my idea a bit more explained:

      As this calls for different kind of template, I think that they should have different names. Let's say that we can call it drafts, as this is not finished article, but just draft of the future ones.

      Also, user should be able to choose drafts somewhat similar like they now choose thread prefix (as starting wiki article is like starting thread). Only problem is, can you program that draft be erased if user changes draft after he sees that it isn't the one he wanted to use, and replace it with new one, or none, if user chooses so?

      If it's possible, we would have dropdown list of premade drafts and as we choose them like we now choose thread prefixes, they would be put in text area. After user is satisfied with chosen draft, he would go and start writing article.

      Even if you couldn't made drafts to be erased and replaced in text area with new ones just by changing what draft is selected, user could use 2 step process, first to choose draft (or no draft), drafts could have description (so users would know for what purpose drafts are used), and after he chooses his draft, confirms selection and goes to writing article.

      We could also have options that some namespaces (or how would wiki zones be called as I read you'll drop namespaces) have drafts (maybe even preselected ones) and some are without drafts.
      Reply Reply  
    4. October 15, 2013 11:30 AM
      pegasus pegasus is offline
      VaultWiki Team
      Originally requested for 3.0.0 Beta 6. This feature was actually created on one user's system but was never ported to the core product.
      Reply Reply  
    5. September 24, 2015 8:36 AM
      baggy11 baggy11 is offline
      Junior Member
      Im really interested!
      Reply Reply  
    6. October 19, 2015 7:58 AM
      Gossamer Gossamer is offline
      Junior Member
      I'm highly interested as well. Wiki pages I allow my users to create are all supposed to follow a certain format, so allowing the article to pull that in will be incredibly useful and save them the trouble of having to copy/paste from a completely different page.
      Reply Reply  
    7. October 28, 2015 9:52 AM
      elenni elenni is offline
      New Member
      We would also like to do this, with different "draft" wiki page formats based on the Area or Sub-area a user is creating pages in. We have a wiki with a great deal of data and in different table formats and want users to be able to simply user a content template with the tables already in place, and fill in that data for the item they are describing.
      Reply Reply  
    8. November 7, 2015 2:26 PM
      Desita Desita is offline
      Junior Member
      This is something we would like to see as well. We make extensive use of templates recently.
      Reply Reply  
    9. February 26, 2020 12:48 PM
      pegasus pegasus is offline
      VaultWiki Team
      This needs to be bumped into the current branch since the previous solution for doing this on XenForo sites (Liam W's "Post Macros" add-on) is no longer viable, due to Liam W's death earlier this week.
      Reply Reply  
    10. February 27, 2020 10:05 PM
      expanserpb expanserpb is offline
      Junior Member
      There are other post template addons.

      What was great for me about Post Macros (and its still live on my site) is the pop up that asks you to fill in fields and auto populating things.

      We use this on the RP site for creating new characters (as wiki templates and info boxes are a huge barrier to entry on any site)
      Reply Reply  
    11. April 27, 2020 5:51 PM
      pegasus pegasus is offline
      VaultWiki Team
      This is implemented in the next release, expanding on: https://www.vaultwiki.org/issues/1730/
      The following describes the implementation, which should cover most use cases as discussed earlier.

      For each area, via the Area Manager, you can now apply a Template Rule. The area's Template Rule will apply to any page-type content in that area, if that content would have at least 1 template pack (see link) after applying the pack's treat-as filters.

      In each area, you may set 1 of the following rules:
      • No rule
      • Suggest some templates that can be used
        • Copy the template contents rather than invoking the template
      • Require content to invoke at least one of the suggested templates
      • Force content to exactly follow one of the suggested templates
        • But allow users to modify custom field values


      For all of these options, there is now a picker above the editor. First you select a pack (if there is only 1 relevant pack, it is hidden and automatically selected). When a pack is selected, the picker lets you choose the templates in that pack from a drop-down (if there is only 1 possible template, this will also be hidden and automatically selected in non-Suggest modes).

      When you choose a template, the effect varies depending on mode:

      For suggest:
      1. If the template has parameters, a popup opens prompting you to fill in the parameters (similar to the popup if using the TEMPLATE BB-Code editor button discussed in the link), and submitting goes to step 2. If there are no parameters, there is no popup, skip to step 2.
        • If copy was checked, the contents of the template are directly copied into the editor, with the parameters replaced. When using this mode, it is recommended that you don't use much template code in the assigned templates, because most of the codes don't work when copied into a page.
        • If copy was NOT checked, a template BB-Code is inserted into the editor, with the parameters filled out.


      For require:
      1. If the template has parameters, a popup opens prompting you to fill in the parameters (similar to the popup if using the TEMPLATE BB-Code editor button discussed in the link), and submitting goes to step 2. If there are no parameters, there is no popup, skip to step 2.
      2. A template BB-Code is inserted into the editor, with the parameters filled out.

      If you attempt to submit the page without using one of the required templates, an error will occur telling the user they must use one of the templates.

      For exact:
      • The template parameters, if any, appear directly in the current form, as form fields.
      • The main editor is hidden, but if there is previous text that doesn't conform to the rule, it shows the previous text in a disabled textarea for convenience, to copy and paste into any relevant template parameters.
      • If the custom field exception was NOT checked, any custom fields are also hidden, requiring these to be inherited from the template. (If the area has any required fields, make sure the templates in the pack all set values for those required fields).
      Reply Reply  
    12. May 5, 2020 2:05 PM
      expanserpb expanserpb is offline
      Junior Member
      This is huge.

      This means on each area I can set one of my infobox templates as suggested and then when a user goes to create a page there it will provide a pop-up with the parameters to fill in?

      Have you got this running on a demo site yet I could see in action?

      Current I use post macros to add the relevant headers after the infobox, so I guess I still need to add those via a macro unless I want to be completely restrictive over what a user adds. Being able to add a default layout as well as a template to pages by default would be super helpful and I don't think is covered yet.
      Reply Reply  
    13. May 5, 2020 7:34 PM
      pegasus pegasus is offline
      VaultWiki Team
      If you would like a default layout I recommend using suggest+copy with a layout pack. Include the additional template that you want to require, as part of the layout itself (using the TEMPLATE BB-Code), and just add the appropriate fields to the layout like:
      Code:
      layout...
      [template]Deeper Template
      | deepParam = {{{layoutParam}}}
      [/template
      layout...
      This way, when the user gets prompted to fill the layout, they would also get prompted for layoutParam (you may want to make your parameter names more reader-friendly). However, you can't enforce that the user would use the Deeper Template using this method (they could edit it out!)

      We considered allowing rule combinations (like suggesting some templates but requiring different templates in the same area), but it was a lot of extra time to develop, and enforcement of certain combinations proved to be problematic initially. We may revisit it in the future if there is demand. For now, what we now have is leaps ahead of the previous behavior of relying on users to manually do it all.

      This is still under QA review (you'll notice phrases missing for one), but I've pushed it onto the XenForo demo for you to have a look.
      Here's an area that "recommends" templates when creating a page, and copies the template rather than invoking it: https://www.vaultwiki.org/xf-wiki/in...gested-Content
      Here's an area that forces your content to be a template when creating a page:
      https://www.vaultwiki.org/xf-wiki/in...Forced-Content
      If you need more permissions, please let me know.
      Reply Reply  
    14. May 6, 2020 2:51 AM
      expanserpb expanserpb is offline
      Junior Member
      Right I'm with you. So in my case with a monster of an html infobox template I don't wanted pasted, I can make a third layer (eep) of a nested character template that asks for the key parameters, includes the layout and them copies that in?

      Yes, yes that would work very nicely indeed. This is a massive, massive improvement to help new members get a leg up into using the wiki which has always been our biggest barrier to entry on the site.

      I will say if it brings up the full RTE for every field in the template I'll have to pick just a few values from the infobox to include.
      Reply Reply  
    15. May 6, 2020 12:39 PM
      expanserpb expanserpb is offline
      Junior Member
      Just me again to repeat how amazing this is going to be...
      Reply Reply  
    Page 1 of 2 12 Next LastLast
    + 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 8: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.