Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    bruno366
    @bruno366:matrix.org
    [m]
    ah ok, i get it now. your solution adds a text at the end of every tiddler. I just want at the end of the story, once, at the bottom of the page :)
    looking at $:/core/ui/PageTemplate/story I found $:/tags/BelowStory
    qbit
    @qbit:tapenet.org
    [m]
    ah, sorry - i misread
    i am not familiar with stories
    bruno366
    @bruno366:matrix.org
    [m]
    and it was what I wanted 🥳 yaaay :) thank you, your solution wasn't exactly what I wanted, but close enough that I was able to solve it 😄
    qbit
    @qbit:tapenet.org
    [m]
    is that a plugin?
    \o/
    bruno366
    @bruno366:matrix.org
    [m]
    nope no plugin, just like you used a tag to edit the viewTemplate, there apparently was a tag to edit pageTemplate, to put something belowStory which is what I wanted :D
    qbit
    @qbit:tapenet.org
    [m]
    neat
    qbit
    @qbit:tapenet.org
    [m]
    cool!
    qbit
    @qbit:tapenet.org
    [m]
    Does anyone know if it's possible to automatically add a set of feilds to a tiddler that you have transcluded?
    @yanderella:sibnsk.net
    [m]
    Depends on how you have transcluded it? If there is a way to access the name, should be? Can you give a wikitext example where you want to do that?
    qbit
    @qbit:tapenet.org
    [m]
    transcluded with {{||ThingAndStuff}} - I don't have a specific example - more curious
    my current workflow seems to be:
    • make a template with a table that displays a set of feilds
    • transclude said template
    • forget what fields i need to fill out
    • reference template :P
    i'd like to just skip the forget/reference step
    @yanderella:sibnsk.net
    [m]

    I am not sure what you mean exactly.... but that's because I cannot understand it. Anyway... I will try to give you something in hope that it may be what you want.

    Create a new tiddler and put this as contents...

    ''Info'': <$edit-text tiddler="$:/temp/test" field=testfield /> <br />
    ''Msg'': <$edit-text tiddler="$:/temp/test" field=testfield2 /> <br />
    <$button>
    <$action-setfield  info={{$:/temp/test!!testfield1}} />
    <$action-setfield  msg={{$:/temp/test!!testfield2}} />
    <$action-deletefield $tiddler="$:/temp/test" testfield testfield2/>
    Set fields  info and msg of current tiddler.
    </$button>

    and I guess the next time you forget what fields were there, you can just transclude this tiddler with something like {{||ThingsAndStuff}} then you'd be able to set whatever fields you had to set without having to remember anything else but one main field editing template?

    Sorry if that's not remotely related to your answer. I don't understand and probably won't be able to help you.

    qbit
    @qbit:tapenet.org
    [m]
    :D - i'll try it and see - either way it has things I can learn from, so thank you!! <3
    @yanderella:sibnsk.net
    [m]
    Also as a side thing about "forgetting and referencing the template". I actually try to write small "Help" tiddlers that document things briefly and put them in the sidebar (with the tabs macro), so that it is easy to reach and find out in the middle of editing without putting tiddlers in the story river. These "Help" tiddlers are pretty much my conventions used in the current TiddlyWiki. It's kinda tedious to update and maintain them as well as my templates but it pays off to not look up where my template is and the code used unless really needed after not opening it for too long. So I do recommend on thinking about conventions you want to use, write them in the TiddlyWiki as you have them and where in a tiddler and keep personal conventions as consistent as possible. Other than that, I haven't figured out a better way myself.
    qbit
    @qbit:tapenet.org
    [m]
    ok, thanks :D
    my use case for this is still a big experiment - i am trying to formulate a way to keep track of openbsd ports that I maintain.. but i think anything that requires external updating (outside of the openbsd ports tree) will ultimately fail.
    worth experimenting with though !
    @yanderella:sibnsk.net
    [m]

    Yes, I see. This is one problem that I am mentally struggling with too, so I understand the "external updating" will fail, because I do feel like that myself. My personal take on similar problem is to 1) make my TiddlyWiki my central repository of it - like the only copy of that information so that I know it is exactly there when I need to do modifications and open it when I do modifications to the things and it to be as brief and easy to update as possible. and 2) Make the TiddlyWiki more useful to me too so that I can actually "need" it or use it during such thing. Example: as a checklist of things that I must do so that I can just not think what I must do but just look at what I should check and update everywhere else; or additionally like half-baked commands maybe.

    So indeed, experimenting is needed and if you find out something that actually works for you, I'd be happy to hear and hopefully see if I can add it to my own workflow or something.

    Disclaimer: all this is just abstract suggestions and some of my ideas since I have similar problem with my not as frequent as I want TiddlyWiki usage that I am still trying to even out and still far from even my own suggestion.

    qbit
    @qbit:tapenet.org
    [m]
    :D
    bruno366
    @bruno366:matrix.org
    [m]
    @qbit if the problem is that you’re forgetting which fields to set, maybe you can create a template tiddler with dummy fields that you can and then fill in?
    qbit
    @qbit:tapenet.org
    [m]
    that's what i am doing - but i have to reference the template tiddler to remember the fields
    maybe transcluding with {{||ThingStuff}} doesn't add fields from the transcluded tiddler? is there another method to transclude, maybe?
    @yanderella:sibnsk.net
    [m]
    I don't know, but if it is some other Tiddler than the current Tiddler, you can specify it like this {{My Other Tiddler||ThingsStuff}} (this is a shorthand for the transclude widget in WikiText) or try to use the full way which is with the $transclude widget https://tiddlywiki.com/#TranscludeWidget
    Mario Pietsch
    @pmariojo:matrix.org
    [m]

    qbit: I think you are using it wrong. This form of a transclusion is a "template" {{||ThingStuff}} eg:

    Let's say you have a tiddler named: test. eg: If you want to show the "description" field within the test-tiddler you can do this: {{test!!description}}. Since you are already "in" the test-tiddler you can use the "shorthand" instead: {{!!description}}. ... So {{!!description}} internally uses the <<currentTiddler>> variable for the missing tiddler name. ... In the context of the test-tiddler text the <<currentTiddler>> variable is set to "test"

    If you transclude: {{myText}}, it will show the content of the "myText" tiddler within the test-tiddler. If you use {{!!description}} in the "myText" tiddler it will show the description-field form myText and not the description from test-tiddler. The <<currentTiddler>> variable with "{{myText}}" is set to "myText"

    If you use {{||myText}} in the test-tiddler, it will keep the <<currentTiddler>> variable at "test" ... So if you use {{!!description}} in the "myText" tiddler it will show the "description field" of the "test" tiddler. ... So {{||myText}} is called a template-tiddler.

    Mario Pietsch
    @pmariojo:matrix.org
    [m]
    I hope that makes sense
    Mario Pietsch
    @pmario
    ...
    qbit
    @qbit:tapenet.org
    [m]

    pmario: that’s how I am using them, but I was hoping I could also transclude the literal field names into the new tiddler.

    Basically I want to auto populate a new tiddler’s field set (the literal list of fields, not the values from the template) from a transcluded tiddler

    pmario
    @pmariojo:matrix.org
    [m]

    Yea, I thought about that as I did read your posts. ... Fields don't "stack" :). ... What you can do is using the <$tiddler /> widget. eg:

    title: test
    description: test - test

    Transclude the "local" description field: {{!!description}}

    <$tiddler tiddler="myText">
    Transclude the "myText" description field: {{!!description}}
    </$tiddler>

    see: https://tiddlywiki.com/#TiddlerWidget

    David Beijinho
    @davidbeijinho
    Hi everyone,
    I'm trying to create a template to show all the tasks for today, I use the journal title as YYYY-0MM-0DD
    and i would like to filter something like this [sameday:schedule[<currentTiddler>search-replace:g[-],[]]]
    if I hardcode the title it works [sameday:schedule[20210816]]
    qbit
    @qbit:tapenet.org
    [m]
    TIL about sameday, that's neat :D
    @davidbeijinho: i wonder if maybe you set a variable first? and then used that in the schedule[] part?
    David Beijinho
    @davidbeijinho
    iwas trying with wikify, with the search replace
    <$wikify name="result" text="{{{ [[The quick brown fox jumps over the lazy dog]search-replace[dog],[cat]] }}}" >
    <$text text=<<result>> />
    </$wikify>
    but its not working
    @yanderella:sibnsk.net
    [m]

    You cannot nest things like that. Especially you should remember you cannot have "another pair of square brackets inside a another one" except the initial first pair. Sorry, that sounds more confusing than it is, but you can't nest them like that. You must "export" such logic into variables and then use those. Here is a working example of what you want to do

    <$vars thedate={{{ [<currentTiddler>search-replace:g[-],[]] }}}>
    {{{ [sameday:schedule<thedate>] }}}
    </$vars>

    I tested this by creating a tiddler named 2021-08-16 and put the "code" in the tiddler body. While I had created another tiddler with any name but with a field schedule with value of 20210816 and it worked. Good luck!

    @yanderella:sibnsk.net
    [m]
    <$vars thedate={{{ [<currentTiddler>search-replace:g[-],[]] }}} >
    
    {{{ [sameday:schedule<thedate>] }}}
    
    </$vars>
    I think the code snippet broke so I am sending it again.
    qbit
    @qbit:tapenet.org
    [m]
    nice
    @yanderella:sibnsk.net
    [m]
    The code snippet doesn't render properly in my Matrix Client but over at https://gitter.im/TiddlyWiki/public it shows properly.
    David Beijinho
    @davidbeijinho
    i was able to make it work, i notice that i was running version 5.1.22, after updating the snippet is working
    bruno366
    @bruno366:matrix.org
    [m]
    Is it possible to contain several tiddlers in one? I suspect this is what plugins do
    qbit
    @qbit:tapenet.org
    [m]
    you can transclude a number of them into one
    bruno366
    @bruno366:matrix.org
    [m]
    Hmm I suppose but then how do I automatically make several tiddlers. Let me give an example, let’s say I have a document and I want each paragraph to be its own tiddler, any way to do this?
    @yanderella:sibnsk.net
    [m]

    https://tiddlywiki.com/#TiddlerFiles

    Well, you can import/export multiple tiddlers using ".json" format. But you still have to import them manually. The other format like that contain a single tiddler like .tid may also work but you'll still have to manually import them all in a bulk (via drag and drop at the top part of the Tiddlywiki in browser because the import button which brings a window doesn't allow multiple selection) and it should work.

    Alternatively, if you want everything automated. After making a json file that looks like the json TiddlyWiki can export, you may try to construct a TiddlyWiki using node.js commands.