+@# Expand to &back=manage or to nothing
+@define {back} {}
+ {@ifmanage{&back=manage}{}}
+
+@# Expand to the time that @id will be played
+@define {mwhen} {what id}
+ {@when{@id}</td>}
+
+@# Expand to the 'who' field for @id
+@define {mwho} {what id}
+ {@if{@eq{@who{@id}}{}}
+ {@if{@eq{@state{@id}}{random}}
+ {@label{@what.randomtrack}}
+ { }}
+ {@who{@id}}}
+
+@# Expand to the artist for @track
+@define {martist} {what track}
+ {@right{play}
+ {<a class=directory
+ href="@url?action=choose&directory=@urlquote{@dirname{@dirname{@track}}}"
+ title="@label{@what.artistverbose}">@part{@track}{short}{artist}</a>}
+ {<span class=directory
+ title="@part{@track}{artist}@">@part{@track}{short}{artist}</span>}}
+
+@# Expand to the album for @track
+@define {malbum} {what track}
+ {@right{play}
+ {<a class=directory
+ href="@url?action=choose&directory=@urlquote{@dirname{@track}}"
+ title="@label{@what.albumverbose}">@part{@track}{short}{album}</a>}
+ {<span class=directory
+ title="@part{@track}{album}@">@part{@track}{short}{album}</span>}}
+
+@# Expand to the title for @track
+@define {mtitle} {what track}
+ {<span title="@part{@track}{title}">@part{@track}{short}{title}</span>}
+
+@# Expand to the remove/scratch entry for @id
+@define {mremove} {what id}
+ {@if{@removable{@id}}
+ {<a class=imgbutton
+ href="@url?action=remove&id=@id@back">
+ <img class=button src="@image{remove}"
+ title="@label{@what.removeverbose}"
+ alt="@label{@what.scratch}">
+ </a>}
+ {<img class=button src="@image{noremove}"
+ title="@label{@what.removeverbose}"
+ alt="@label{@what.scratch}">}}
+
+}@#