1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Rename $:/core/templates/canonical-uri-external-image

As per @pmario’s suggestion.
This commit is contained in:
Jermolene 2014-06-13 10:04:31 +01:00
parent db147e3673
commit ca34cc437c
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
title: $:/core/templates/canonical-uri
title: $:/core/templates/canonical-uri-external-image
<!--

View File

@ -31,7 +31,7 @@ For an example see the ''externalimages'' build target of the demo ''tw5.com'' w
```
--savetiddlers [is[image]] images
--setfield [is[image]] _canonical_uri $:/core/templates/canonical-uri text/plain
--setfield [is[image]] _canonical_uri $:/core/templates/canonical-uri-external-image text/plain
--setfield [is[image]] text "" text/plain
--rendertiddler $:/core/save/all externalimages.html text/plain
```
@ -49,15 +49,15 @@ The following `--savetiddlers` command can be used to save the images of a wiki
Two `--setfield` commands are used: the first sets the ''_canonical_uri'' field to a URI derived from the title of the tiddler, and the second clears the text field.
```
--setfield [is[image]] _canonical_uri $:/core/templates/canonical-uri text/plain
--setfield [is[image]] _canonical_uri $:/core/templates/canonical-uri-external-image text/plain
--setfield [is[image]] text "" text/plain
```
The template tiddler [[$:/core/templates/canonical-uri]] contains:
The template tiddler [[$:/core/templates/canonical-uri-external-image]] contains:
<pre>
<$view tiddler="$:/core/templates/canonical-uri" field="text" format="text"/>
<$view tiddler="$:/core/templates/canonical-uri-external-image" field="text" format="text"/>
</pre>

View File

@ -32,7 +32,7 @@
"--rendertiddler","$:/core/save/all","index.html","text/plain"],
"externalimages": [
"--savetiddlers","[is[image]] [type[text/html]]","images",
"--setfield","[is[image]] [type[text/html]]","_canonical_uri","$:/core/templates/canonical-uri","text/plain",
"--setfield","[is[image]] [type[text/html]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
"--setfield","[is[image]]","text","","text/plain",
"--rendertiddler","$:/core/save/all","externalimages.html","text/plain"],
"encrypted": [