Merge branch 'tiddlywiki-com'

This commit is contained in:
jeremy@jermolene.com 2022-04-18 11:23:29 +01:00
commit 59417f0896
31 changed files with 192 additions and 5 deletions

View File

@ -0,0 +1,5 @@
{
"directories": [
"../../../tw5.com/tiddlers/_tw_shared"
]
}

View File

@ -3,7 +3,7 @@
"plugins": [
"tiddlywiki/highlight",
"tiddlywiki/nodewebkitsaver",
"tiddlywiki/github-fork-ribbon",
"tiddlywiki/menubar",
"tiddlywiki/internals"
],
"themes": [
@ -22,7 +22,6 @@
"de-AT",
"de-DE",
"el-GR",
"en-GB",
"en-US",
"es-ES",
"fa-IR",

View File

@ -0,0 +1,18 @@
title: $:/core/templates/static.content
\define tv-wikilink-template() https://tiddlywiki.org/static/$uri_doubleencoded$.html
<!-- For Google, and people without JavaScript-->
<$reveal default="yes" text=<<savingEmpty>> type="nomatch">
It looks like this browser doesn't run JavaScript. You can use one of these static HTML versions to browse the same content:
* https://tiddlywiki.org/static.html - browse individual tiddlers as separate pages
* https://tiddlywiki.org/alltiddlers.html#HelloThere - single file containing all tiddlers
---
{{HelloThere}}
</$reveal>

View File

@ -0,0 +1,5 @@
{
"directories": [
"../../../tw5.com/tiddlers/_tw_shared"
]
}

View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

View File

@ -0,0 +1,2 @@
title: $:/_tw_shared/favicons/classic.tiddlywiki.com
type: image/x-icon

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@ -0,0 +1,2 @@
title: $:/_tw_shared/favicons/links.tiddlywiki.org
type: image/x-icon

View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 211.667 211.667" height="800" width="800">
<rect ry="1.122" rx="1.122" height="211.667" width="211.667" fill="#6076d9"/>
<path d="M71.442 119.863l1.068.304c1.341-.579 4.037.315 5.467.752-2.633-2.813-6.6-6.943-9.46-9.546-.937-3.152-.537-6.324-.335-9.542l.04-.266c-1.127 2.575-2.556 5.08-3.325 7.791-.899 3.658 3.997 7.605 5.896 9.867zm81.615 15.471c-7.349-.2-10.58-.183-14.324-6.112l-2.916.08c-3.396-.145-1.98-.079-4.246-.187-3.787-.142-3.18-3.609-3.846-5.44-1.066-6.218 1.41-12.467 1.332-18.685-.028-2.208-3.27-10.022-4.428-12.815-3.632.659-7.283.784-10.967.961-8.492-.02-16.925-1.022-25.298-2.294-1.632 6.494-6.482 15.582-2.473 22.182 4.866 6.826 8.28 8.717 13.573 9.129 5.293.411 6.489 6.168 5.208 8.224-1.133 1.421-3.126 1.68-4.818 2.024l-3.386.153c-2.663-.087-5.045-.78-7.419-1.848-3.964-2.132-8.059-6.564-11.1-9.746.708 1.27 1.13 3.751.488 4.905-1.799 2.455-9.578 2.44-13.14.915-4.047-1.733-13.826-13.897-15.338-23.007 4.022-7.328 9.882-13.711 12.846-21.69-6.462-3.972-9.922-10.438-9.473-17.764l.162-.848c-6.358 1.147-3.061.72-9.9 1.219-21.784-.064-40.94-14.293-30.153-36.406.701-1.31 1.369-2.5 2.558-1.932.954.457.817 2.287.337 4.316-6.166 26.423 23.969 26.625 42.493 21.736 1.838-.486 5.495-3.754 8.028-4.838 4.14-1.771 8.634-2.49 13.094-3.008 11.092-1.218 24.424 4.412 31.198 4.596 6.774.183 16.41-1.563 22.325-1.195 4.292.189 8.507.935 12.648 1.999 2.68-12.583 2.87-21.857 9.224-24.004 3.73.568 6.604 5.464 8.73 8.08l.01-.002c4.332-.164 8.454.895 12.553 2.07 7.421-1.015 13.648-5.03 20.202-8.153-.02.099-.128.132-.192.198-6.449 5.025-7.35 13.522-6.591 21.38.282 4.077-.914 8.504-2.392 12.678-2.767 6.802-8.11 13.971-14.312 13.603-2.344-.07-3.706-1.35-5.448-2.715-.338 2.766-1.667 5.233-2.947 7.679-2.958 5.422-10.686 7.812-17.842 13.603-7.155 5.79 2.29 26.471 4.58 30.24 2.29 3.768 8.682 5.146 6.202 8.547-.76 1.123-1.92 1.525-3.16 1.961z" fill="#fff"/>
<path d="M54.82 194.444v-41.08H40.15v-8.365h39.293v8.365H64.804v41.08zm32.986-24.891l-8.6-1.552q1.45-5.194 4.991-7.69 3.542-2.495 10.523-2.495 6.341 0 9.444 1.517 3.103 1.484 4.351 3.812 1.282 2.293 1.282 8.465l-.101 11.063q0 4.722.438 6.982.472 2.226 1.72 4.789h-9.376q-.371-.944-.91-2.8-.237-.843-.338-1.112-2.429 2.36-5.194 3.54-2.766 1.181-5.903 1.181-5.53 0-8.735-3.001-3.17-3.002-3.17-7.59 0-3.035 1.45-5.396 1.45-2.394 4.047-3.642 2.63-1.282 7.555-2.226 6.645-1.248 9.208-2.327v-.945q0-2.732-1.35-3.878-1.348-1.18-5.092-1.18-2.53 0-3.946 1.01-1.417.979-2.294 3.475zm12.682 7.69q-1.821.607-5.768 1.45-3.946.843-5.16 1.653-1.855 1.315-1.855 3.339 0 1.99 1.484 3.44t3.778 1.45q2.563 0 4.89-1.686 1.72-1.282 2.26-3.137.37-1.214.37-4.62zm18.685 17.201v-49.445h9.477v49.445zm18.82 0v-49.445h9.478v26.24l11.096-12.614h11.67l-12.243 13.086 13.12 22.733h-10.22l-9.005-16.088-4.418 4.62v11.468z" fill="#fff" font-weight="700" stroke-width=".265" font-family="Arial" font-size="69.074" aria-label="Talk"/>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,2 @@
title: $:/_tw_shared/favicons/talk.tiddlywiki.org
type: image/svg+xml

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@ -0,0 +1,2 @@
title: $:/_tw_shared/favicons/tiddlywiki.com.dev
type: image/x-icon

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

View File

@ -0,0 +1,2 @@
title: $:/_tw_shared/favicons/tiddlywiki.com
type: image/x-icon

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

View File

@ -0,0 +1,2 @@
title: $:/_tw_shared/favicons/tiddlywiki.com.prerelease
type: image/x-icon

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -0,0 +1,2 @@
title: $:/_tw_shared/favicons/tiddlywiki.org
type: image/png

View File

@ -0,0 +1,32 @@
title: $:/_tw_shared/sites
tags: $:/tags/MenuBar
caption: [img class=tc-sites-icon [Motovun Jack.svg]] Sites
is-dropdown: yes
list-before:
\define link-body()
\whitespace trim
<$image source={{!!icon}} class="tc-sites-menu-icon"/><strong><$transclude field="caption" mode="inline"/></strong><$text text="  "/><$transclude field="description" mode="inline"/>
\end
\define current-link-body()
\whitespace trim
<div class="tc-sites-menu-disabled">
<<link-body>><span class="tc-sites-menu-this-site"><$text text="this site"/></span>
</div>
\end
\whitespace trim
<div class="tc-sites-menu">
<ol>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlyWikiSites]]">
<li>
<$list filter="[{!!url}!prefix{$:/info/url/full}]" emptyMessage=<<current-link-body>> variable="ignore">
<a class="tc-tiddlylink-external" href={{!!url}} rel="noopener noreferrer" target="_blank">
<<link-body>>
</a>
</$list>
</li>
</$list>
</ol>
</div>

View File

@ -0,0 +1,6 @@
title: $:/_tw_shared/sites/classic.tiddlywiki.com
tags: $:/tags/TiddlyWikiSites
caption: classic.tiddlywiki.com
description: Original Classic Version (v2.x.x)
url: https://classic.tiddlywiki.com/
icon: $:/_tw_shared/favicons/classic.tiddlywiki.com

View File

@ -0,0 +1,6 @@
title: $:/_tw_shared/sites/links.tiddlywiki.org
tags: $:/tags/TiddlyWikiSites
caption: links.tiddlywiki.org
description: Community Links Aggregator
url: https://links.tiddlywiki.org/
icon: $:/_tw_shared/favicons/links.tiddlywiki.org

View File

@ -0,0 +1,6 @@
title: $:/_tw_shared/sites/talk.tiddlywiki.org
tags: $:/tags/TiddlyWikiSites
caption: talk.tiddlywiki.org
description: Community Forum
url: https://talk.tiddlywiki.org/
icon: $:/_tw_shared/favicons/talk.tiddlywiki.org

View File

@ -0,0 +1,6 @@
title: $:/_tw_shared/sites/tiddlywiki.com.dev
tags: $:/tags/TiddlyWikiSites
caption: tiddlywiki.com/dev
description: Developer Site
url: https://tiddlywiki.com/dev
icon: $:/_tw_shared/favicons/tiddlywiki.com.dev

View File

@ -0,0 +1,6 @@
title: $:/_tw_shared/sites/tiddlywiki.com.prerelease
tags: $:/tags/TiddlyWikiSites
caption: tiddlywiki.com/prerelease
description: Latest Build of Next Release
url: https://tiddlywiki.com/prerelease
icon: $:/_tw_shared/favicons/tiddlywiki.com.prerelease

View File

@ -0,0 +1,6 @@
title: $:/_tw_shared/sites/tiddlywiki.com
tags: $:/tags/TiddlyWikiSites
caption: tiddlywiki.com
description: Main Site
url: https://tiddlywiki.com/
icon: $:/_tw_shared/favicons/tiddlywiki.com

View File

@ -0,0 +1,6 @@
title: $:/_tw_shared/sites/tiddlywiki.org
tags: $:/tags/TiddlyWikiSites
caption: tiddlywiki.org
description: Community Matters
url: https://tiddlywiki.org/
icon: $:/_tw_shared/favicons/tiddlywiki.org

View File

@ -0,0 +1,44 @@
title: $:/_tw_shared/styles
tags: $:/tags/Stylesheet
code-body: yes
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock
.tc-sites-icon {
width: 1em;
height: 1em;
}
.tc-sites-menu {
font-size: 1.2em;
}
.tc-sites-menu ol {
margin: 0;
list-style-type: none;
padding-left: 0;
}
.tc-sites-menu ol li a,
.tc-sites-menu ol li .tc-sites-menu-disabled {
padding-top: 0.25em;
padding-bottom: 0.25em;
}
.tc-sites-menu ol li .tc-sites-menu-disabled {
padding: 0 14px 0 14px;
}
.tc-sites-menu-this-site {
color: <<colour background>>;
background: <<colour muted-foreground>>;
font-size: 0.6em;
border-radius: 1em;
padding: 2px 6px;
margin-left: 1em;
vertical-align: top;
}
.tc-sites-menu-icon {
margin-right: 0.5em;
}

View File

@ -0,0 +1,2 @@
title: $:/tags/TiddlyWikiSites
list: $:/_tw_shared/sites/tiddlywiki.com $:/_tw_shared/sites/tiddlywiki.org $:/_tw_shared/sites/talk.tiddlywiki.org $:/_tw_shared/sites/links.tiddlywiki.org $:/_tw_shared/sites/tiddlywiki.com.prerelease $:/_tw_shared/sites/tiddlywiki.com.dev $:/_tw_shared/sites/classic.tiddlywiki.com

View File

@ -1,11 +1,13 @@
created: 20190206140446821
modified: 20210417090408263
modified: 20220330133748666
tags: Filters
title: Mathematics Operators
type: text/vnd.tiddlywiki
<<.from-version "5.1.20">>The mathematics filter operators allow numerical calculations to be performed within filters.
! Using mathematics operators
The mathematics operators interpret their arguments as numbers according to the following rules:
* Any non-numeric characters after a valid number are ignored (e.g. `28px` is interpreted as the number 28)
@ -28,7 +30,10 @@ The mathematics operators take three different forms:
** <<.inline-operator-example "=1 =2 =3 =4 +[product[]]">>
** <<.inline-operator-example "=1 =2 =3 =4 +[average[]]">>
Operators can be combined:
! Operations Combination
Operations can be combined by concatenating them while merging the inner `][` characters.
* <<.inline-operator-example "[[355]divide[113]fixed[5]]">>
* <<.inline-operator-example "[range[100]sum[]divide[100]]">>
@ -41,4 +46,19 @@ src="""<$set name="number-of-tiddlers" value={{{ [tag[HelloThere]count[]] }}}>
Average length of <$text text=<<number-of-tiddlers>>/> tiddlers tagged <<tag "HelloThere">>: <$text text={{{ [tag[HelloThere]get[text]length[]sum[]divide<number-of-tiddlers>fixed[3]] }}}/>
</$set>""" />
<<list-links "[tag[Mathematics Operators]]">>
! Mathematics Operators list
<table>
<tr>
<th align="left">Operator</th>
<th align="left">Purpose</th>
</tr>
<$list filter="[tag[Mathematics Operators]sort[caption]]">
<tr>
<td><$link>{{!!caption}}</$link></td>
<td>{{!!op-purpose}}</td>
</tr>
</$list>
</table>