1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-09 06:16:06 +00:00

Change "tw-*" variables to "tv-*"

This commit is contained in:
Jermolene
2014-08-28 22:28:02 +01:00
parent 26f3a27e22
commit 89fd5379dd
46 changed files with 140 additions and 140 deletions

View File

@@ -17,10 +17,10 @@ This is done in `bld.sh` by this command:
It saves the tiddler ReadMe to the file `./readme.md` in the `text/html` format.
By default, tiddler links will be rendered as `<a>` links to a relative URI consisting of the title of the tiddler. This behaviour can be overridden by defining the macro `tw-wikilink-template`, as is done at the top of the tiddler ReadMe:
By default, tiddler links will be rendered as `<a>` links to a relative URI consisting of the title of the tiddler. This behaviour can be overridden by defining the macro `tv-wikilink-template`, as is done at the top of the tiddler ReadMe:
```
\define tw-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
\define tv-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
```
See the LinkWidget for more details.

View File

@@ -13,7 +13,7 @@ The import tiddlers message is usually generated with the DropzoneWidget or the
! Configuration Variables
The variable `tw-auto-open-on-import` controls whether the `tm-import-tiddlers` message automatically triggers the display of the pending import tiddler [[$:/Import]]:
The variable `tv-auto-open-on-import` controls whether the `tm-import-tiddlers` message automatically triggers the display of the pending import tiddler [[$:/Import]]:
* ''no'': The pending import tiddler is not opened in the story
* ''yes'': The pending import tiddler is opened in th story. This is the default

View File

@@ -2,7 +2,7 @@ created: 201308251449
modified: 201308251449
title: ContributingTemplate
\define tw-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
\define tv-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
! Contributing to TiddlyWiki5
{{Contributing}}

View File

@@ -3,7 +3,7 @@ modified: 20131222161808390
title: ReadMe
type: text/vnd.tiddlywiki
\define tw-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
\define tv-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
! Welcome to TiddlyWiki
{{HelloThere}}

View File

@@ -1,5 +1,5 @@
title: TiddlyWiki2ReadMe
\define tw-wikilinks() no
\define tv-wikilinks() no
! Building TiddlyWikiClassic
{{Building TiddlyWikiClassic}}

View File

@@ -14,14 +14,14 @@ The `link` widget generates links to tiddlers. (Use the HTML `<a>` element to ge
The content of the link widget is rendered within the `<a>` tag.
The default value of the tooltip attribute is `<<tw-wikilink-tooltip>>`.
The default value of the tooltip attribute is `<<tv-wikilink-tooltip>>`.
This means that you can control the text of a link tooltip in several ways:
```
<$link to="HelloThere" tooltip="Custom tooltip">Link 1</$link>
<$set name="tw-wikilink-tooltip" value="I'm a link to {{!!title}}">
<$set name="tv-wikilink-tooltip" value="I'm a link to {{!!title}}">
<$link to="HelloThere">Link 2</$link>
</$set>
@@ -31,7 +31,7 @@ Renders as:
<$link to="HelloThere" tooltip="Custom tooltip">Link 1</$link>
<$set name="tw-wikilink-tooltip" value="I'm a link to {{!!title}}">
<$set name="tv-wikilink-tooltip" value="I'm a link to {{!!title}}">
<$link to="HelloThere">Link 2</$link>
</$set>
@@ -40,7 +40,7 @@ Note that the tooltip is rendered with the current tiddler set to the target of
A useful convention is to set the tooltip like this:
```
\define tw-wikilink-tooltip()
\define tv-wikilink-tooltip()
<$transclude field="tooltip"><$transclude field="title"/></$transclude>
\end
```
@@ -60,32 +60,32 @@ This causes the tooltip to be the ''tooltip'' field of the target tiddler. If th
Configuration macros can be used to modify the behaviour of the link widget.
!! tw-wikilinks
!! tv-wikilinks
Links are suppressed if the macro `tw-wikilinks` evaluates to the string `no`. For example:
Links are suppressed if the macro `tv-wikilinks` evaluates to the string `no`. For example:
```
\define tw-wikilinks() no
\define tv-wikilinks() no
```
!! tw-wikilink-template
!! tv-wikilink-template
The target of the link widget defaults to the URL encoded title of the tiddler. The `href` can be templated by defining the configuration macro `tw-wikilink-template`, and including within it the token `$uri_encoded$`. For example:
The target of the link widget defaults to the URL encoded title of the tiddler. The `href` can be templated by defining the configuration macro `tv-wikilink-template`, and including within it the token `$uri_encoded$`. For example:
```
\define tw-wikilink-template() http://tiddlywiki.com/#$uri_encoded$
\define tv-wikilink-template() http://tiddlywiki.com/#$uri_encoded$
```
The token `$uri_doubleencoded$` is replaced by the double encoded title of the tiddler.
Note that in the browser the `<a>` element generated by the link widget has a JavaScript event handler that navigates directly to the target tiddler, ignoring the `href` attribute.
!! tw-wikilink-tooltip
!! tv-wikilink-tooltip
Provides default text for the link tooltip:
```
\define tw-wikilink-tooltip() This is a link to {{!!title}}
\define tv-wikilink-tooltip() This is a link to {{!!title}}
<$link to="HelloThere"/>
```