mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-18 20:10:02 +00:00
Add a warning segment to templates for TWC tiddlers
Now there’s a warning banner on all TWC tiddlers. It includes an `upgrade` button that currently just flips the tiddler type to TW5
This commit is contained in:
parent
f649b5b037
commit
baa8cf3dd0
@ -4,3 +4,5 @@ RecentChanges/DateFormat: DDth MMM YYYY
|
|||||||
CloseAll/Button: close all
|
CloseAll/Button: close all
|
||||||
MissingTiddler/Hint: Missing tiddler "<$text text=<<currentTiddler>>/>" - click {{$:/core/images/edit-button}} to create
|
MissingTiddler/Hint: Missing tiddler "<$text text=<<currentTiddler>>/>" - click {{$:/core/images/edit-button}} to create
|
||||||
SystemTiddler/Tooltip: This is a system tiddler
|
SystemTiddler/Tooltip: This is a system tiddler
|
||||||
|
ClassicWarning/Hint: This tiddler is written in TiddlyWiki Classic wiki text format, which is not fully compatible with TiddlyWiki version 5. See http://tiddlywiki.com/static/Upgrading.html for more details.
|
||||||
|
ClassicWarning/Upgrade/Caption: upgrade
|
||||||
|
13
core/ui/ViewTemplate/classic.tid
Normal file
13
core/ui/ViewTemplate/classic.tid
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
title: $:/core/ui/ViewTemplate/classic
|
||||||
|
tags: $:/tags/ViewTemplate $:/tags/EditTemplate
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/ClassicWarning/
|
||||||
|
<$list filter="[is[current]type[text/x-tiddlywiki]]">
|
||||||
|
<div class="tw-message-box">
|
||||||
|
|
||||||
|
<<lingo Hint>>
|
||||||
|
|
||||||
|
<$button set="!!type" setTo="text/vnd.tiddlywiki"><<lingo Upgrade/Caption>></$button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</$list>
|
@ -1,2 +1,2 @@
|
|||||||
title: $:/tags/EditTemplate
|
title: $:/tags/EditTemplate
|
||||||
list: [[$:/core/ui/EditTemplate/controls]] [[$:/core/ui/EditTemplate/title]] [[$:/core/ui/EditTemplate/tags]] [[$:/core/ui/EditTemplate/body]] [[$:/core/ui/EditTemplate/type]] [[$:/core/ui/EditTemplate/fields]]
|
list: [[$:/core/ui/EditTemplate/controls]] [[$:/core/ui/EditTemplate/title]] [[$:/core/ui/EditTemplate/tags]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/EditTemplate/body]] [[$:/core/ui/EditTemplate/type]] [[$:/core/ui/EditTemplate/fields]]
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
title: $:/tags/ViewTemplate
|
title: $:/tags/ViewTemplate
|
||||||
list: [[$:/core/ui/ViewTemplate/title]] [[$:/core/ui/ViewTemplate/subtitle]] [[$:/core/ui/ViewTemplate/tags]] [[$:/core/ui/ViewTemplate/plugin]] [[$:/core/ui/ViewTemplate/body]]
|
list: [[$:/core/ui/ViewTemplate/title]] [[$:/core/ui/ViewTemplate/subtitle]] [[$:/core/ui/ViewTemplate/tags]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/ViewTemplate/body]]
|
||||||
|
@ -1067,7 +1067,7 @@ canvas.tw-edit-bitmapeditor {
|
|||||||
border: 1px solid <<colour message-border>>;
|
border: 1px solid <<colour message-border>>;
|
||||||
background: <<colour message-background>>;
|
background: <<colour message-background>>;
|
||||||
padding: 0px 21px 0px 21px;
|
padding: 0px 21px 0px 21px;
|
||||||
margin: 0 -21px 0 -21px;
|
margin: 21px -21px 21px -21px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
color: <<colour message-foreground>>;
|
color: <<colour message-foreground>>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user