Update ViewWidget.tid to include common variants (#3895)

* Update ViewWidget.tid to include common varients

The provision of common variates to the view widget provides new an experience user examples of the different variants of the ViewWidget. The copy to clipboad method allows each variant to be quickly accessed and pasted into their wiki.

To facilitate this a new macro wikitext-example-compact has being added to 
$:/editions/tw5.com/wikitext-macros

* Update ViewWidget.tid

Two colons added to maintain indenting in new content.
This commit is contained in:
TonyM 2023-12-14 05:16:57 +11:00 committed by GitHub
parent 8051a3dea2
commit cdfa4b6082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -44,6 +44,19 @@ The following formats can be specified in the `format` attribute:
To display the field content as regular WikiText, for example with working links, use the [[TranscludeWidget]] instead.
;The following examples are common variants
!!!!View the value in a field of a named tiddler
:<<wikitext-example-compact '<$view tiddler="ViewWidget" field="caption"/>'>>
!!!!View the value in a date field of the currentTiddler as a relative date
:<<wikitext-example-compact '<$view field=modified format=relativedate/>'>>
!!!!View the value in a date field of the currentTiddler as formated date
:<<wikitext-example-compact '<$view field=created format=date template="[UTC]YYYY-0MM-0DD"/>'>>
!!!!View a date field as its raw value
:<<wikitext-example-compact '<$view field=created format=text />'>>
!!!!See ''String Operators'' in [[Filter Operators]]
:To apply similar formatting within Filters, including from titles and variables
! SubTiddler Access
The view widget allows access to the individual tiddlers stored within a [[plugin|Plugins]].