mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 03:27:18 +00:00
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:
parent
8051a3dea2
commit
cdfa4b6082
@ -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.
|
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
|
! SubTiddler Access
|
||||||
|
|
||||||
The view widget allows access to the individual tiddlers stored within a [[plugin|Plugins]].
|
The view widget allows access to the individual tiddlers stored within a [[plugin|Plugins]].
|
||||||
|
Loading…
Reference in New Issue
Block a user