Шаблон:SongbookView: различия между версиями
Grayenot (обсуждение | вклад) Новая страница: «<noinclude>{{Documentation}}</noinclude> <includeonly> <div class="songbook-container"> <div class="songbook-header"> <h1>{{{Title}}}</h1> <p>{{{Description}}}</p> <div class="songbook-actions"> <button class="add-song">Добавить песню</button> <button class="export-pdf">Экспорт в PDF</button> </div> <div class="song-search" style="display:none"> {{#forminput:form=AddSongToBook|autocomplete on categ...» |
Grayenot (обсуждение | вклад) мНет описания правки |
||
| (не показано 7 промежуточных версий этого же участника) | |||
| Строка 1: | Строка 1: | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> | ||
<includeonly> | <includeonly> | ||
<div class="songbook- | <div class="songbook"> | ||
<div class="songbook- | <!-- Метаданные --> | ||
<div class="songbook-meta"> | |||
Владелец: [[User:{{{User}}}|{{{User}}}]]<br> | |||
< | Создан: {{{Created}}}<br> | ||
Обновлен: {{{Updated}}}<br> | |||
Статус: {{#if:{{{IsPublic}}}|Публичный|Приватный}} | |||
</div> | </div> | ||
<div class=" | <!-- Описание --> | ||
{{# | <div class="songbook-description"> | ||
<h3>Описание</h3> | |||
{{{Description|Нет описания}}} | |||
</div> | |||
<!-- Кнопка добавления --> | |||
<div class="songbook-actions"> | |||
{{#formlink:form=AddSongToBook | |||
|link text=Добавить песню | |||
|link type=button | |||
|query string=SongbookID={{{SongbookID}}} | |||
}} | }} | ||
</div> | |||
<!-- Список песен --> | |||
<div class="song-list"> | |||
{{#cargo_query: | |||
tables=SongbookEntries | |||
|join on=SongbookEntries.SongPage=song._pageName | |||
|where=SongbookEntries.SongbookID="{{{SongbookID}}}" | |||
|order by=SortOrder | |||
|fields=SongbookEntries.SongPage, | |||
song.Name, | |||
song.Composer | |||
|format=ul | |||
<!-- |template=SongItem--> | |||
}} | |||
</div> | </div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
Текущая версия от 19:39, 11 апреля 2025
Документация
создать |
Этому шаблону не хватает документации.