Your image is too small for me to make out the fields, but I can guess some
of them.
This is the whirlwind overview of using templates.
Let's say you have a tiddler with some fields:
image_url: simian.jpg
terrain: any
intelligence: 11
matrix: 3x3
Then you might set up a template tiddler, TEMPLATE that uses these fields:
<image src={{!!image_url}} float="left"/>
<table>
<tr>
<td>Terrain</td><td>{{!!terrain}}</td>
</tr><tr>
<td>Intelligence</td><td>{{!!intelligence}}</td>
</tr><tr>
<td>Matrix</td><td>{{!!matrix}}</td>
</tr>
</table>
Then let's say that all these (avatar?) tiddlers have something to identify
them, like tag "Avatar".
Then you can make a tiddler, tag it with $:/tags/ViewTemplate, with
contents:
<$list filter="[all[current]]">
{{||TEMPLATE}}
</$list>
And each tiddler tagged with Avatar will present your formatted data.
A general tip about database fields is that they should always only
represent one thing. For instance, an intelligence field of 11-15 will be
hard to parse and compare with other avatars because it has a range. So if
you ever expect to want to compare intelligence values you should have
intelligence_low and intelligence_high, or "intelligence" and
"intelligence_range".
There's a lot more to say about templates and their use in TW5, but as I
said, that's the whirlwind version.
-- Mark
On Sunday, September 30, 2018 at 1:55:22 PM UTC-7, PWL wrote:
>
> [image: example.jpg]
> The stats are static, they will never change. Like I said it is a
> knowledge data base. Almost like a specialized encyclopedia. I have
> attached a capture of one of the entries so you can see what I am doing.
> The only thing I really want to do with the stats is make the three that
> are highlighted searchable. But I thought I would deal with that once I
> got the appearance the way I wanted. I have that, but like I said building
> the table for each entry as I make it is somewhat time consuming.
>
> On Sunday, 30 September 2018 16:30:21 UTC-3, Mark S. wrote:
>>
>> How are you storing the stats? As fields? As data dictionary entrees? In
>> separate tiddlers?
>>
>> In general, it's not a good idea to directly put the numbers into tables
>> in TW5 tiddlers unless you only want to display them as static tables.
>> Forever. In TW5 there are no sections or slices for extracting the data
>> later.
>>
>> Whatever the data storage approach, as long as the data is consistent, it
>> should be possible to create a view template that will display the data.
>>
>> It's always good at the start of a project like this to consider what
>> outputs you are expecting. Then you can write routines that work with a
>> handful of tiddlers to verify that things work before scaling up the
>> project.
>>
>> -- Mark
>>
>> On Sunday, September 30, 2018 at 10:24:23 AM UTC-7, PWL wrote:
>>>
>>> Every entry has the same 14 stats, a gif and a significant amount of
>>> text. The Pattern of the stats is consistent. There are some exceptions
>>> but for the majority of the entries it will be the same pattern
>>>
>>> STAT1 | value (alpha numeric)
>>>
>>> Floating 100kb Gif
>>>
>>>
>>> approx 400px X 400px
>>> .
>>> .
>>> .
>>> .
>>> STAT14| Value
>>>
>>> Average 50 to 100 lines of formatted text.
>>>
>>> On Sunday, 30 September 2018 12:37:10 UTC-3, @TiddlyTweeter wrote:
>>>>
>>>> Is this data intensive? Is the data structured, I mean with a
>>>> consistent pattern?
>>>>
>>>> On Sunday, 30 September 2018 16:38:23 UTC+2, PWL wrote:
>>>>>
>>>>> Hello all,
>>>>>
>>>>> I have recently started using Tiddly wiki to build a knowledge
>>>>> database and I am having difficulty figuring a few things out. I am
>>>>> hoping
>>>>> somebody can help.
>>>>>
>>>>> Like I said, I have run into several things that I can no figure out
>>>>> so I will start with what I figure will probably be the easiest problem.
>>>>>
>>>>> This wiki is going to be huge when it is done (4500+) entries. Each
>>>>> entry has a list of 14 stats that need to be displayed as a table. I
>>>>> found
>>>>> how to build tables, the work perfectly, and I like the look.
>>>>> But I have found that it is rather labour intensive to do this every
>>>>> time I make a new entry. Is there a macro, or some code, or anything
>>>>> that
>>>>> can make this easier for me?
>>>>>
>>>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/6c5a56b1-8065-4aeb-9aa5-511072cc2339%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.