Caption not setting up correctly

I am truing to have the caption of a gun entry be setup by the concatenation of three fields in the gun entry tiddler: state name, citytown and commonname.

I am using the code {{!!statename}} : {{!!citytown}} - {{!!commonname}} when setting up the caption field.

all this does is show the caption as “{{!!statename}} : {{!!citytown}} - {{!!commonname}}”

This format works perfectly well for filling the technical table template (at least for table fields). Is the caption field sacrosanct in some way? Its almost as if the caption field is not processed prior to renderring it on the gun entry display where it provides a title for a gun (not the title field, just a user friendly title string).

bobj

Bob,

This of cource needs to be wikified, and depending on the content in each of those fields the result may vary. If however it is only plane text you could also do this {{{ [{!!statename}] [{!!citytown}] [[-]] [{!!commonname}] +[join[ ]] }}} and if that contains unwanted links use <$text text={{{ [{!!statename}] [{!!citytown}] [[-]] [{!!commonname}] +[join[ ]] }}}/> or do you want something else?

How are you displaying the caption field? I’m assuming you ended up with the field reference inside quotes or straight brackets, so that the plain text is being transcluded instead of the wikified result. Simple transclusion should work just fine:

caption-transclusion

I have set up the caption field in editing the tiddler and typed this into its value field

{{!!statename}} : {{!!citytown}} - {{!!commonname}}

I expected this to be replaced by

South Australia : Elizabeth - a big gun indeed

However what I am seeing is

{{!!statename}} : {{!!citytown}} - {{!!commonname}}

So I am not running a filter, I am just displaying the tiddler.

In a table template, if I use the {{…}} syntax into a table entry, when the template is displayed the cell value is the transcluded value not the {{…}} text.

Hope this makes sense

Bobj

Is this a one off tiddler? Other wise you are placing code in a specific field and will need to duplicate this for multiple tiddlers. When you could display this from a template.

By caption do you want it to appear differently in lists?

Show us how and where you are doing what to make it appear?

I am trying this on a one off to see if it would work. If it did,then i would do it this way on all gun tiddlers.

I don’t think it can be done via a template as we want the friendly title to be displayed whenever the tiddler is displayed, after editing, searching, listing in toc, etc.

Sounds to me it needs to be hardcoded with final values rather than the transclusion version. I was hoping for the transclusion version so that if the wiki master edited the tiddler and changed one of the target fields, the caption would be automatically updated.

Still, no loss, just not as nice as I hope

Bo

Here are some screen grabs

The displayed tiddler

Playing around with brackets to see what combination works, and nothing I try does.

Try just having {{!!A}}{{!!B}} in the caption, noting that in any list widget you must be setting the default variable for currentTiddler.

For example {{!!caption}} works with the above.

The caption must be transcluded for this to work, as it will also transclude the transcludes of A and B

the problem must be in the stylesheet modifying the title of the tiddler to show the caption field when used in a tiddler.

@Thomas_Chuffart , i get the same behaviour with the tiddler’s title which seems to confirm your suggestion. Although i can understand if the title does not behave like that since it is the identifying attribute of the tiddler.

Bobj