Parameterise core icons (#7413)

* Parameterise all the icons

* Improve splash screen macro for rendering icons

* Add new example from @kookma
This commit is contained in:
Jeremy Ruston
2023-05-06 12:08:46 +01:00
committed by GitHub
parent 96f97f237a
commit 2bfefe3880
116 changed files with 275 additions and 115 deletions

View File

@@ -5,6 +5,13 @@ title: $:/SplashScreen
type: text/vnd.tiddlywiki
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
\procedure show-icon(title)
<$wikify name="icon" text={{{ [<title>addprefix[{{]addsuffix[}}]] }}} output="html">
<$text text=<<icon>>/>
</$wikify>
\end
\rules only filteredtranscludeinline transcludeinline macrocallinline
<div class="tc-remove-when-wiki-loaded">
<style scoped>
@@ -116,7 +123,7 @@ Please wait while {{$:/SiteTitle}} is loading
<!-- Demonstrating how to embed a wikitext SVG graphic -->
<div class="tc-splash-text">
{{$:/core/icon||$:/core/templates/plain-text-tiddler}}
<<show-icon "$:/core/icon">>
</div>
</div>