1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-08 23:20:03 +00:00

Overrides the list-links macro with its fr-FR counterpart

(instead of the core shadow tiddler itself)
This commit is contained in:
Xavier Cazin 2014-12-21 13:49:37 +01:00
parent f64ed6e48c
commit cb42ccf409

View File

@ -1,19 +1,22 @@
created: 20141127091159720 created: 20141127091159720
modified: 20141203144808981 modified: 20141221122727114
tags: $:/tags/Macro tags: $:/tags/Macro
title: $:/core/macros/list title: $:/editions/fr-FR/Macros/list
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
\define list-links(filter,type:"ul",subtype:"li",class:"") \define list-links(filter,type:"ul",subtype:"li",class:"")
<!-- Essentially overriding $:/core/macros/list
so that the list item is rather labeled with fr-title
when present. -->
<$type$ class="$class$"> <$type$ class="$class$">
<$list filter="$filter$"> <$list filter="$filter$">
<$subtype$> <$subtype$>
<$link to={{!!title}}> <$link to={{!!title}}>
<$view field="fr-title">
<$transclude field="caption"> <$transclude field="caption">
<$view field="fr-title">
<$view field="title"/> <$view field="title"/>
</$transclude>
</$view> </$view>
</$transclude>
</$link> </$link>
</$subtype$> </$subtype$>
</$list> </$list>