kopia lustrzana https://github.com/miklobit/TiddlyWiki5
26 wiersze
1.5 KiB
Plaintext
26 wiersze
1.5 KiB
Plaintext
title: $:/core/ui/Buttons/export-tiddlywikicore
|
|
tags: $:/tags/PageControls
|
|
caption: {{$:/core/images/star-filled}} {{$:/language/Buttons/ExportTiddlyWikiCore/Caption}}
|
|
description: {{$:/language/Buttons/ExportTiddlyWikiCore/Hint}}
|
|
|
|
\whitespace trim
|
|
\define jsFileName() tiddlywikicore-$(version)$.js
|
|
\define noExportMsg()
|
|
It appears that you have a wiki with an external ~TiddlyWiki core. The export action cannot be performed.
|
|
<p>You will need to view the page source in your browser. Then go to the very bottom the the source, find the last `<script>`
|
|
element, and right-click its `src` URI. Save the link as ''$(jsFileName)$''</p>
|
|
\end
|
|
|
|
<$button tooltip={{$:/language/Buttons/ExportTiddlyWikiCore/Hint}} aria-label={{$:/language/Buttons/ExportTiddlyWikiCore/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$list filter="[[$:/boot/boot.js]is[missing]]" variable="ignore" emptyMessage="""<$action-sendmessage $message="tm-download-file" $param="$:/core/templates/tiddlywiki5.js" filename=<<jsFileName>>/>""" >
|
|
<$action-setfield $tiddler=<<qualify "$:/temp/alert">> text=<<noExportMsg>> subtitle="Export ~TiddllyWiki Core"/>
|
|
<$action-sendmessage $message="tm-modal" $param=<<qualify "$:/temp/alert">>/>
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem">
|
|
{{$:/core/images/star-filled}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/ExportTiddlyWikiCore/Caption}}/></span>
|
|
</$list>
|
|
</$button>
|