TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8.04k stars 1.19k forks source link

View Widget Documentation #3422

Open AnthonyMuscio opened 6 years ago

AnthonyMuscio commented 6 years ago

https://tiddlywiki.com/#ViewWidget

Could we please add these additional common forms to the viewWidget documentation on TiddlyWiki.com with the copy to clipboard. These will allow new users to understand more readily and copy text to use in their wiki.

Return the value of a field as plan text <$view field=title format=text/>

Return the Value of a field as a date of format YYYY-0MM-0DD <$view field=modified format=date template="YYYY-0MM-0DD"/>

Return the Value of a field as a relative date <$view field=created format=relativedate />

and perhaps a common example of encoding

The following is the appropriate format as tested on tiddlywiki.com

Return the value of a field as plan text
<<wikitext-example-without-html '
<$view field=title format=text/>

'>>

Return the Value of a field as a date of format YYYY-0MM-0DD
<<wikitext-example-without-html '
<$view field=modified format=date template="YYYY-0MM-0DD"/>

'>>

Return the Value of a field as a relative date
<<wikitext-example-without-html '
<$view field=created format=relativedate />

'>>

Thanks in advance Tony

AnthonyMuscio commented 6 years ago

I fixed a couple of typos in the above, Have I done what is needed to request a small documentation update?

AnthonyMuscio commented 6 years ago

Bump : Have I done what is needed to request a small documentation update?

00SS commented 5 years ago

@AnthonyMuscio Please see my comment in your suggested changes.