1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 23:40:45 +00:00

Merge pull request #918 from pmario/fr-coremacro-classes

Like the tabs macro, the list macro should get a possibility to add a class parameter
This commit is contained in:
Jeremy Ruston 2014-09-28 09:56:40 +01:00
commit e028b87ce8
3 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,8 @@
title: $:/core/macros/list
tags: $:/tags/Macro
\define list-links(filter,type:"ul",subtype:"li")
<$type$>
\define list-links(filter,type:"ul",subtype:"li",class:"")
<$type$ class="$class$">
<$list filter="$filter$">
<$subtype$>
<$link to={{!!title}}>

View File

@ -17,6 +17,7 @@ Das "list" Makro erstellt Linklisten von Tiddlern.
|1 |filter |Filter Ausdruck | |
|2 |type |"HTML tag", der als Hülle verwendet werden soll. Möglich sind:<br />"ul" .. "unordered list" oder <br />"ol" .. "ordered list" |"ul" |
|3 |subtype |"HTML tag" der als Listen Element verwendet werden soll. |"li" |
|4 |class |Das Listen Element `<ul>` oder `<ol>` bekommt eine CSS Klasse zugewiesen zB: `<ul class="three-columns">` | |
!! Beispiele

View File

@ -15,6 +15,7 @@ There are several variants of the macro:
|1st |filter |Filter expression | |
|2nd |type |HTML tag to be used for the list wrapper |"ul" |
|3rd |subtype |HTML tag to be used for list entries |"li" |
|4th |class |The list element `<ul>` or `<ol>` gets a CSS class. eg: `<ul class="three-columns">` | |
! Examples