內容簡介
BSTabs 外掛註冊了一種新的文章類型,名為「Tab」,可作為包含檔案(gpx、音頻、pdf 等)和與一個特定指法相關的資訊(樂器、曲風、難度等)的容器。新的短碼[tabs] 可插入任何文章內容中,並根據屬性列出和搜尋所有指法。
簡單的[tabs] 短碼(不帶任何參數)為列出所有指法。使用以下一或多個參數中的一個或多個,以更改指法列表或顯示搜索對話框:
instrument - 可選參數,可限制指法列表僅顯示特定樂器。(可能的值:all、banjo、guitar、mandolin、fiddle、bass;默認值:all)
search - 可選參數,顯示帶有各種指法元數據屬性控制的搜索對話框。(可能的值:yes、no;默認值:no)
search_all_button - 可選參數,顯示搜索對話框中的額外按鈕。此按鈕允許用戶顯示所有指法並忽略所有搜尋對話框過濾器。(可能的值:yes、no;默認值:no)
count - 列出指法的最大數量
orderby - 可選參數,用於設置指法排序的欄位,可接受的欄位有author、title和published。默認值為title。
order - 可選參數,為orderby參數提供額外的信息。它指定該列表是按升序還是降序排列。可能的值是asc和desc。默認值為asc。
fields - 可選參數,可枚舉要在列表中顯示的指法字段(屬性)列表。參數值必須是分號分隔的字段標識符列表。允許的標識符有:title、instrument、author、key、level、genre、tuning、audio、tabs、links和published。
class - 可選參數,用於為由短碼生成的列表設置額外的CSS類。
範例:
[tabs] - 列出所有指法
[tabs search="yes"] - 顯示搜索對話框
[tabs search="yes" instrument="banjo"] - 顯示搜索對話框,但僅限制所有搜索查詢為五弦琴樂器。
[tabs instrument="guitar"] - 列出所有吉他指法
[tabs count="5" orderby="published" order="desc" fields="title;instrument;tabs;published" class="compact"] - 列出最近發布的五個指法,最近的指法排在第一位,限制列出選定的列(屬性),所生成的HTML代碼包含`raw`類。
已知問題 / 蟲
刪除
停用外掛
完成!:)
外掛標籤
開發者團隊
原文外掛簡介
BSTabs plugin registers new post type of type Tab which serves as container for files (gpx, audio, pdf, etc.) and information (instrument, genre, level, etc.) related to one specific tabulature. New shortcode [tabs] could be inserted in any post content and allows listing and searching in all tabulatures according attributes.
Shortcode [tabs], in its simple form (without any parameters), lists all tabulatures. Use one or more of the following parameters to change tab listing or show search dialog:
instrument – optional parameter to limit list of tabulatures to specific instrument. (possible values: all, banjo, gutar, mandolin, fiddle, bass; default value: all).
search – optional parameter for showing search dialog with controls for various tab metadata attributes. (possible values: yes, no; default value: no)
search_all_button – optional parameter for showing additional button in search dialog. This button allows users to show all tabs and ignore all search dialog filters. (possible values: yes, no; default value: no)
count – maximal number of listed tabulatures
orderby – optional parameter to set fields for order of tabulatures, acceptable fields are author, title and published . Default value is title.
order – optional parameter which provides additional information to orderby parameter. It specifies if list is sorted ascending or descending.Possible values are asc and desc. Default value is asc.
fields – optional parameter which allows to enumerate tabulature fields (attributes) to be shown in listing. Parameter value must be list of field identifiers separated by semicolon. Allowed identifiers are: title, instrument, author, key, level, genre, tuning, audio, tabs, links and published.
class – optional parameter to set additional CSS class for listing generated by shortcode
Examples:
[tabs] - list all tabulatures
[tabs search="yes"] - show search dialog
[tabs search="yes" instrument="banjo"] - show search dialog, but limit all search queries to banjo instrument.
[tabs instrument="guitar"] - list all guitar tabulatures
[tabs count="5" orderby="published" order="desc" fields="title;instrument;tabs;published" class="compact"] - list five last published tabulatures, most recent tab is listed first, listing is limited to selected columns (attributes) and generated HTML code is extended of class `raw`.
Known Issues / Bugs
Uninstall
Deactivate the plugin
That’s it! 🙂
