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

As per @pmario’s suggestion.
print-window-tiddler
Jermolene 2014-06-13 10:04:31 +01:00
rodzic db147e3673
commit ca34cc437c
3 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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>

Wyświetl plik

@ -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": [