1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Refactor the download buttons into reusable snippets

This commit is contained in:
Jermolene 2013-11-29 09:12:23 +00:00
parent 4352e81b98
commit 7baf8431a4
5 changed files with 19 additions and 3 deletions

View File

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

View File

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

View File

@ -7,8 +7,8 @@ title: Download
! Download Single File Editions ! 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 | |{{$:/editions/tw5.com/snippets/download-empty-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 | |{{$:/snippets/download-wiki-button}}|Download a full copy of this site, including all the documentation |
! Download Node.js Edition ! Download Node.js Edition

View File

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

View File

@ -1,4 +1,4 @@
title: $:/editions/tw5.com/save-empty title: $:/editions/tw5.com/download-empty
\define saveTiddlerFilter() \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]] [[$:/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]]