diff --git a/index.html b/index.html index ac1ebc4..54192bd 100644 --- a/index.html +++ b/index.html @@ -225,6 +225,8 @@ Error message and password prompt
  • CitationsTools
  • +
  • code
  • +
  • EduINAF
  • EduINAFAjaxFilter
  • @@ -233,12 +235,24 @@ Error message and password prompt
  • github
  • +
  • How to show macros code
  • + +
  • Macros
  • +
  • Menu
  • +
  • svgStylesheet
  • +
  • Table-of-Contents Macros
  • TikzDraw
  • +
  • twitter.svg
  • + +
  • twitterFollowButton
  • + +
  • twitterFollowButtonExample
  • +
  • ulaulaman
  • WidgetForCoAuthors
  • @@ -9645,7 +9659,7 @@ Error message and password prompt
    The following tiddlers were imported:
     
    -# [[favicon.ico]]
    +# [[code]]
    no
    @@ -10092,7 +10106,7 @@ Error message and password prompt
    ulaulaman
    -
    +
    
     
    @@ -10153,7 +10167,7 @@ Error message and password prompt } }
    -
    +
    
     
    @@ -10389,6 +10403,9 @@ Error message and password prompt
    
     
    +
    +
    <pre><$view field="text"/></pre>
    +
    Plugin wordpress che aggiunge varie funzionalità al sito [Edu INAF](https://edu.inaf.it/) senza modificare direttamente il codice php del tema. [Codice sorgente su github](https://github.com/ulaulaman/eduinaf).
     
    @@ -10486,9 +10503,55 @@ See the [[control panel|$:/ControlPanel]] for more options.
     
    <table><tr><$list filter="[tag[github]sort[title]]"><td style="background-color:lightblue; border-style: solid; border-width: 1px;border-color:green;"> <<currentTiddler>> </td></$list></tr></table>
    -
    +
    +
    I imported in my TiddlyWiki the [[code tiddler|http://tw5magick.tiddlyspot.com/#code]] by [[Stephan Hradek|http://tw5magick.tiddlyspot.com/]] in order to show code of macros and other tiddlers.
    +
    +For example the show twitterFollowButton's code use `{{twitterFollowButton||code}}`:
    +
    +{{twitterFollowButton||code}}
    +
    +
    +
    I try to use original Macros' system, whitout any results. After a brief research, I find [[TW5 Magick|http://tw5magick.tiddlyspot.com/]], a collections of various tricks. Here i find a useful and [[very simple way to define macros|http://tw5magick.tiddlyspot.com/#A%20global%20Macro%20-%20with%20limitations]].
    +
    +Following the //how to//, I define the twitterFollowButton, using the [[twitter icon in svg|twitter.svg]]
    +
    +{{twitterFollowButton||code}}
    +
    +To call this macro I use the code `{{twitterFollowButton|username}}`.
    +
    +It is also possible define a macro whitout any parameter, like the [[stylesheet for svg|svgStylesheet]]
    +
    +{{svgStylesheet||code}}
    +
    +In this case I simple call the macro using the code
    +
    +`<style>{{svgStylesheet}}</style>`
    +
    +as first row in [[twitter.svg]].
    +
    +
    +
    {{{ [tag[Menu]] }}}
    +
    +
    <style>.svg-icon {
    +  width: $dim$;
    +  height: $dim$;
    +}
    +
    +.svg-icon path,
    +.svg-icon polygon,
    +.svg-icon rect {
    +  fill: #4691f6;
    +}
    +
    +.svg-icon circle {
    +  stroke: #4691f6;
    +  stroke-width: 1;
    +}</style>
    +
    +<$macrocall $name="svgStylesheet" dim={{!!title}}/>
    +
    ~TiddlyWiki provides several macros for generating a tree of tiddler links by analysing [[tags|Tagging]]:
     
    @@ -10554,6 +10617,23 @@ These two parameters are combined into a single [[filter expression|Filter Expre
     
     [[Vai alla homepage|https://ulaulaman.github.io/tikzdraw/]]
    +
    +
    <style>{{svgStylesheet}}</style>
    +
    +<svg class="svg-icon" viewBox="0 0 20 20">
    +							<path fill="none" d="M14.467,6.707c-0.34,0.198-0.715,0.342-1.115,0.419c-0.318-0.335-0.775-0.545-1.279-0.545c-0.969,0-1.754,0.773-1.754,1.727c0,0.135,0.015,0.267,0.045,0.394C8.905,8.628,7.612,7.94,6.747,6.896C6.596,7.151,6.509,7.448,6.509,7.764c0,0.599,0.31,1.128,0.78,1.438C7.002,9.192,6.732,9.115,6.495,8.985c0,0.007,0,0.014,0,0.021c0,0.837,0.605,1.535,1.408,1.694c-0.147,0.04-0.302,0.06-0.462,0.06c-0.113,0-0.223-0.011-0.33-0.031c0.223,0.687,0.871,1.186,1.638,1.199c-0.6,0.464-1.356,0.739-2.179,0.739c-0.142,0-0.281-0.007-0.418-0.023c0.777,0.489,1.699,0.775,2.689,0.775c3.228,0,4.991-2.63,4.991-4.913c0-0.075-0.002-0.149-0.004-0.223c0.342-0.244,0.639-0.547,0.875-0.894c-0.316,0.137-0.652,0.23-1.008,0.272C14.057,7.448,14.336,7.11,14.467,6.707 M10,0.594c-5.195,0-9.406,4.211-9.406,9.406c0,5.195,4.211,9.406,9.406,9.406c5.196,0,9.407-4.211,9.407-9.406C19.406,4.805,15.195,0.594,10,0.594 M10,18.552c-4.723,0-8.551-3.829-8.551-8.552S5.277,1.449,10,1.449c4.723,0,8.551,3.829,8.551,8.551S14.723,18.552,10,18.552"></path>
    +						</svg>
    +
    +
    +
    \define twitterFollowButton(username)
    +<a href="https://twitter.com/$username$">{{twitter.svg}}</a>
    +\end
    +
    +<$macrocall $name="twitterFollowButton" username={{!!title}}/>
    +
    +
    +
    <tr><td width="50%;">{{ulaulaman||twitterFollowButton}}</td><td width="50%;">{{edu_inaf||twitterFollowButton}}</td></tr>
    +
    ''Gianluigi Filippelli'', wikipediano, divulgatore e blogger scientifico.