Shiraz Shiraz is a small framework including stylesheets, templates and macros to create stylish contents in Tiddlywiki. It uses modified CSS classes from Bootstrap 4.3.1. Shiraz has customized elements like alerts, cards, panels, images, static tables, dynamic tables, badges, texts, ...
Shiraz release 2 is a rewrite of Shiraz 1.2 and aims to be a micro TW (CSS+macro) framework
The Shiraz Tutorial is the starting point to learn more about plugin features, help, demo and examples. See below for online pages.
From the below three methods for installing
shiraz
plugin, select any suitable method you like.
- I. Use plugin library
The simplest method is to have the Kookma Plugin Library which acts exactly like Official Plugin Library
- Drag and drop $:/config/KookmaPluginLibrary into your wiki
- Open $:/ControlPanel,
Plugins
tab and the click on big button Get more plugins- Click open library under Kookma Plugin Library
- Find
shiraz
and click install, or reinstall if you updateshiraz
- Save and reload your wiki
- II. Standalone configuration
Follow these instructions when using Tiddlywiki as a standalone HTML file:
- Drag and drop $:/plugins/kookma/shiraz into your wiki
- Save and reload your wiki
- III. Client-Server configuration
Follow these instructions when using Tiddlywiki under Node.js:
- Download the
shiraz
folder and put it in your Tiddlywikiplugins
folder
- To download you can go to https://github.com/kookma/TW-Shiraz, and click on Clone or download
- After downloaing the source code, take the plugin from
source
folder and copy and paste it into your Tiddlywikiplugins
folder- Quit the server if it is running
- Add it to your wiki of choice
- Edit the
tiddlywiki.info
file (it is in JSON format) and locate the plugins section (see below)- Add entries corresponding to the plugins you wish to add. Here add
shiraz
- Take care to retain commas to separate items, but do not terminate the last item in a list with a comma
- Restart the server
{ "plugins": [ "tiddlywiki/codemirror", "shiraz" ], "themes": [ "tiddlywiki/vanilla", "tiddlywiki/snowwhite" ], "languages": [ "en-EN" ] }For local installation under Node.js,
i. quit the server if it is runing,
ii. put theshiraz
folder into your localplugins
folder under your wiki folder,
iii. restart the server.
- Code and demo
It is highly recommended to backup your data before trying any new plugin! Do it before installing shiraz.
- More information
Revision 2.1.0
- Date: [23rd Mar 2020]
- [NEW] updated to TW 5.1.22pre
- [FIXED] documentation improved
For all changes see ChangeLog
- The images for avatars have beeg taken from https://www.w3schools.com/
- Many of CSS are courtesy from Bootstrp 4.3.1
- Dynamic table got several ideas and templates from TiddlyTables by Alan Aldrich
- The
list-search
was originally developed by Tobias Beer
- Center image
- https://www.w3.org/Style/Examples/007/center.en.html
- Multi column layout
- https://www.smashingmagazine.com/2019/01/css-multiple-column-layout-multicol/
- https://css-tricks.com/guide-responsive-friendly-css-columns/
- Flexbox layout
- https://css-tricks.com/snippets/css/a-guide-to-flexbox/
- W3C CSS: em, px, pt units
- https://www.w3.org/Style/Examples/007/units.en.html
- Flexbox cheatsheet
- http://yoksel.github.io/flex-cheatsheet/