Refactor the download buttons into reusable snippets

print-window-tiddler
Jermolene 2013-11-29 09:12:23 +00:00
rodzic 4352e81b98
commit 7baf8431a4
5 zmienionych plików z 19 dodań i 3 usunięć

Wyświetl plik

@ -0,0 +1,3 @@
title: $:/snippets/download-wiki-button
<$button message="tw-download-file" param="$:/core/save/all" class="btn-big-green">Download Full {{$:/core/images/save-button}}</$button>

Wyświetl plik

@ -0,0 +1,10 @@
created: 20131129090249275
creator: JeremyRuston
modified: 20131129090636070
modifier: JeremyRuston
title: GettingStarted
type: text/vnd.tiddlywiki
TiddlyWiki is highly flexible, and there are many different ways to use it. Here we're focussing on using it as a standalone file in the browser, but for more options you can also run [[TiddlyWiki5 on Node.js]].
1. [[Download]] TiddlyWiki by clicking this button:

Wyświetl plik

@ -7,8 +7,8 @@ title: Download
! Download Single File Editions
|<$button message="tw-download-file" param="$:/editions/tw5.com/save-empty" class="btn-big-green">Download Empty {{$:/core/images/save-button}}</$button>|Get started with an empty wiki |
|<$button message="tw-download-file" param="$:/core/save/all" class="btn-big-green">Download Full {{$:/core/images/save-button}}</$button>|Download a full copy of this site, including all the documentation |
|{{$:/editions/tw5.com/snippets/download-empty-button}}|Get started with an empty wiki |
|{{$:/snippets/download-wiki-button}}|Download a full copy of this site, including all the documentation |
! Download Node.js Edition

Wyświetl plik

@ -0,0 +1,3 @@
title: $:/editions/tw5.com/snippets/download-empty-button
<$button message="tw-download-file" param="$:/editions/tw5.com/save-empty" class="btn-big-green">Download Empty {{$:/core/images/save-button}}</$button>

Wyświetl plik

@ -1,4 +1,4 @@
title: $:/editions/tw5.com/save-empty
title: $:/editions/tw5.com/download-empty
\define saveTiddlerFilter()
[[$:/core]] [[$:/isEncrypted]] [[$:/plugins/tiddlywiki/fullscreen]] [[$:/themes/tiddlywiki/snowwhite]] [[$:/themes/tiddlywiki/vanilla]] -[type[text/css]] -[type[application/javascript]has[module-type]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]