diff --git a/core/wiki/macros/tabs.tid b/core/wiki/macros/tabs.tid
index c9d44d2e3..e06b546d5 100644
--- a/core/wiki/macros/tabs.tid
+++ b/core/wiki/macros/tabs.tid
@@ -1,15 +1,17 @@
title: $:/core/macros/tabs
tags: $:/tags/Macro
-\define tabs(tabsList,default,state:"$:/state/tab",class,template)
+\define tabs(tabsList,default,state:"$:/state/tab",class,template,buttonTemplate)
<$list filter="$tabsList$" variable="currentTab"><$set name="save-currentTiddler" value=<>><$tiddler tiddler=<>><$button set=<> setTo=<> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}>
<$tiddler tiddler=<>>
<$set name="tv-wikilinks" value="no">
+<$transclude tiddler="$buttonTemplate$" mode="inline">
<$transclude tiddler=<> field="caption">
<$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/>
$transclude>
+$transclude>
$set>$tiddler>$button>$tiddler>$set>$list>
diff --git a/editions/tw5.com/tiddlers/macros/TabsMacro.tid b/editions/tw5.com/tiddlers/macros/TabsMacro.tid
index e5b20fae2..779f32583 100644
--- a/editions/tw5.com/tiddlers/macros/TabsMacro.tid
+++ b/editions/tw5.com/tiddlers/macros/TabsMacro.tid
@@ -1,6 +1,6 @@
caption: tabs
created: 20131228162203521
-modified: 20150221211706000
+modified: 20171113135543552
tags: Macros [[Core Macros]]
title: tabs Macro
type: text/vnd.tiddlywiki
@@ -23,6 +23,8 @@ By default the tabs are arranged horizontally above the content. To get vertical
: Additional [[CSS|Cascading Style Sheets]] classes for the generated `div` elements. Multiple classes can be separated with spaces
;template
: Optionally, the title of a tiddler to use as a [[template|TemplateTiddlers]] for transcluding the content of the selected tab
+;buttonTemplate
+: Optionally, the title of a tiddler to use as a [[template|TemplateTiddlers]] for transcluding the content of the button for the selected tab
Within the template, the title of the selected tab is available in the <<.var currentTab>> variable.