在 SharePoint Server 中顯示範本參考Display template reference in SharePoint Server

摘要:了解 SharePoint Server 2013 中可用的各種顯示範本。Summary: Learn about the different display templates that are available in SharePoint Server 2013.

內容搜尋網頁組件的顯示範本Display templates for the Content Search Web Part

您可以使用下列顯示範本變更顯示在內容搜尋網頁組件中之內容的外觀。這些顯示範本檔案位於主版頁面圖庫 [Display Templates] 資料夾的 [Content Web Parts] 子資料夾中。You can use the following display templates to change the appearance of content that is shown in a Content Search Web Part. These display template files are located in the Content Web Parts subfolder in the Display Templates folder in the Master Page Gallery.

顯示範本類型Display template type 在網頁組件工具窗格中的名稱Name in Web Part Tool Pane 主版頁面圖庫中的名稱Name in Master Page Gallery 描述Description
控制顯示範本Control display template
清單List
Control_ListControl_List
以清單顯示網頁組件中的項目。這是您將新的內容搜尋網頁組件新增至頁面時使用的預設控制顯示範本。Displays the items in the Web Part as a list. It is the default control display template when you add a new Content Search Web Part to a page.
控制顯示範本Control display template
分頁清單List with Paging
Control_ListWithPagingControl_ListWithPaging
以清單顯示網頁組件中的項目,使用者可以使用箭號翻頁項目清單。這是「類別」頁面上內容搜尋網頁組件的預設控制顯示範本。Displays the items in the Web Part as a list, and lets users page through the items by using arrows. It is the default control display template for Content Search Web Parts on Category pages.
控制顯示範本Control display template
投影片放映Slideshow
Control_SlideshowControl_Slideshow
以圖片投影片放映方式顯示網頁組件中的項目,每 5 秒輪轉放映一組影像。每次顯示一個項目,項目標題會覆疊在圖片上。Displays the items in the Web Part as a picture slide show that rotates through a set of images every 5 seconds. It shows one item at a time, with the title of the item overlaying the picture.
項目顯示範本Item display template
診斷Diagnostic
Item_DiagnosticItem_Diagnostic
顯示網頁組件中指定的查詢所傳回的項目基礎值。此項目顯示範本對於疑難排解為何項目未正確顯示在網頁組件中非常實用。Displays the underlying values for items returned by the query specified in the Web Part. This item display template can be very helpful when troubleshooting why items do not appear correctly in the Web Part.
項目顯示範本Item display template
大型圖片Large picture
Item_LargePictureItem_LargePicture
會顯示圖像網頁組件,具有重疊映像的項目之標題中指定的查詢所傳回的項目。此項目顯示範本應使用的投影片放映控制顯示範本,以及已超過 400 個像素寬的圖像。Displays an image of the item returned by the query specified in the Web Part, with the title of the item overlaying the image. This item display template should be used with the Slideshow control display template, and with images that are more than 400 pixels wide.
項目顯示範本Item display template
圖片在左邊,右邊有 3 行字Picture on left, 3 lines on right
Item_Picture3LinesItem_Picture3Lines
以 100 像素 x 100 像素顯示網頁組件中指定之查詢所傳回項目的影像。標題與預設項目說明顯示在影像右側。有一個額外行可作為顯示受管理屬性的預留位置。Displays a 100 pixel x 100 pixel image of the item returned by the query specified in the Web Part. The title and the default item description are displayed to the right of the image. An additional line is available as a placeholder that can be used to display a managed property.
項目顯示範本Item display template
圖片在上方,底下有 3 行字Picture on top, 3 lines on bottom
Item_PictureOnTopItem_PictureOnTop
以 304 像素 x 100 像素顯示網頁組件中指定之查詢所傳回項目的影像。標題與預設項目說明顯示在影像下方。有一個額外行可作為顯示受管理屬性的預留位置。Displays a 304 pixel x 100 pixel image of the item returned by the query specified in the Web Part. The title and the default item description are displayed below the image. An additional line is available as a placeholder that can be used to display a managed property.
項目顯示範本Item display template
建議項目:圖片在左邊,右邊有 3 行字Recommended Items: Picture on left, 3 lines on right
Item_RecommendationsClickLoggingItem_RecommendationsClickLogging
以 100 像素 x 100 像素顯示網頁組件中指定之查詢所傳回頇目的影像。標題與預設項目說明顯示在影像右側。有一個額外行可作為顯示受管理屬性的預留位置。Displays a 100 pixel x 100 pixel image of the item returned by the query specified in the Web Part. The title and the default item description are displayed to the right of the image. An additional line is available as a placeholder that can be used to display a managed property.
項目顯示範本Item display template
二行Two lines
Item_TwoLinesItem_TwoLines
在網頁組件中指定的查詢所傳回的項目標題超連結旁顯示小型縮圖圖示。有一個額外行可作為顯示受管理屬性的預留位置。Displays a small thumbnail icon next to a hyperlink of the title of the item returned by the query specified in the Web Part. An additional line is available as a placeholder that can be used to display a managed property.
Group_ContentGroup_Content
此檔案用來轉譯各種顯示範本。請勿變更此檔案。This file is used to render the different display templates. You should not change this file.

顯示精簡搜尋網頁組件與分類精簡搜尋網頁組件的範本Display templates for the Refinement Web Part and the Taxonomy Refinement Web Part

您可以使用下表所列的顯示範本來變更精簡搜尋網頁組件與分類精簡搜尋網頁組件中顯示的內容的外觀。這些顯示範本檔案位於主版頁面圖庫中的顯示範本] 資料夾中的篩選器子資料夾中。請注意不同的精簡器類型不同的顯示範本。You can use the display templates listed in the following table to change the appearance of content that is shown in a Refinement Web Part and a Taxonomy Refinement Web Part. These display template files are located in the Filters subfolder in the Display Templates folder in the Master Page Gallery. Note that there are different display templates for different refiner types.

顯示範本類型Display template type 在網頁組件工具窗格中的名稱Name in Web Part Tool Pane 主版頁面圖庫中的名稱Name in Master Page Gallery 描述Description
控制顯示範本Control display template
垂直Vertical
Control_RefinementControl_Refinement
精簡搜尋網頁組件的控制顯示範本。The control display template for the Refinement Web Part.
控制顯示範本Control display template
預設分類精簡搜尋Default Taxonomy Refinement
Control_TaxonomyRefinementControl_TaxonomyRefinement
分類精簡搜尋網頁組件的控制顯示範本。The control display template for the Taxonomy Refinement Web Part.
項目顯示範本Item display template
精簡搜尋項目Refinement Item
Filter_DefaultFilter_Default
類型為「文字」、「小數」與「日期」之精簡器的項目顯示範本。會以清單顯示各種精簡器。使用者可以按一下特定精簡器來縮小搜尋結果的範圍。Item display template for refiners of type Text, Decimal, and Date. Displays the refiners in a list. Users can click a specific refiner to narrow the search results.
項目顯示範本Item display template
多重值精簡搜尋項目Multi-value Refinement Item
Filter_MultiValueFilter_MultiValue
類型為「文字」、「小數」與「日期」之精簡器的項目顯示範本。會以清單顯示各種精簡器,每個精簡器旁有一個核取方塊。使用者可以選取多個精簡器來縮小搜尋結果的範圍。如果您要變更多重值精簡器顯示在頁面上的方式,您不可以變更此顯示範本,但可以使用多重值精簡搜尋項目本文範本。Item display template for refiners of type Text, Decimal, and Date. Displays the refiners in a list that has a check box next to each refiner. Users can select multiple refiners to narrow the search results. If you want to change how multi-value refiners are shown on a page, you should not change this display template, but instead use the Multi-value Refinement Item Body template.
項目顯示範本Item display template
多重值精簡搜尋項目本文Multi-value Refinement Item Body
Filter_MultiValue_BodyFilter_MultiValue_Body
和多重值精簡搜尋項目檔案搭配使用的項目顯示範本。如果您要變更多重值精簡器顯示在頁面上的方式,您應該變更此顯示範本。Item display template that works together with Multi-value Refinement Item file. If you want to change how multi-value refiners are shown on a page, you should change this display template.
項目顯示範本Item display template
滑動軸Slider
Filter_SliderFilter_Slider
類型為「小數」之精簡器的項目顯示範本。可根據滑動軸中的範圍顯示精簡器。使用者可以滑動軸來縮小搜尋結果。Item display template for refiners of type Decimal. Displays the refiners according to ranges in a slider bar. Users can slide the bar to narrow search results.
項目顯示範本Item display template
含有長條圖的滑動軸Slider with bar graph
Filter_SliderBarGraphFilter_SliderBarGraph
類型為「小數」之精簡器的項目顯示範本。會根據滑動軸與長條圖中的範圍顯示精簡器。使用者可以滑動軸或按一下長條圖來縮小搜尋結果。Item display template for refiners of type Decimal. Displays the refiners according to ranges in a slider bar and bar graph. Users can slide the bar or click a bar graph to narrow search results.
項目顯示範本Item display template
含有計數的連結Link with count
Filter_TaxonomyRefinementFilter_TaxonomyRefinement
分類精簡搜尋網頁組件的預設項目顯示範本。會以清單顯示各種精簡器。對於每個精簡器,將會顯示包含精簡器值的項目數。使用者可以按一下特定分類精簡器來縮小搜尋結果的範圍。The default item display template for the Taxonomy Refinement Web Part. Displays the refiners in a list. For each refiner, the number of items that contains the refiner value is displayed. Users can click a specific taxonomy refiner to narrow the search results.
使用者指定精簡搜尋 ExchangeUser Specified Refinement Exchange
Filter_eDiscoveryExchangeRefinementFilter_eDiscoveryExchangeRefinement
此為系統檔案,您無法將它套用至網頁組件。請勿變更此檔案。This is a system file, and you'll be unable to apply this to a Web Part. You should not change this file.
訊息類型精簡搜尋Message Type Refinement
Filter_eDiscoveryExchangeTypeRefinementFilter_eDiscoveryExchangeTypeRefinement
此為系統檔案,您無法將它套用至網頁組件。請勿變更此檔案。This is a system file, and you'll be unable to apply this to a Web Part. You should not change this file.
使用者指定精簡搜尋 SharePointUser Specified Refinement SharePoint
Filter_eDiscoverySharepointRefinementFilter_eDiscoverySharepointRefinement
此為系統檔案,您無法將它套用至網頁組件。請勿變更此檔案。This is a system file, and you'll be unable to apply this to a Web Part. You should not change this file.

搜尋結果網頁組件的顯示範本Display templates for the Search Results Web Part

您可以使用下表所列顯示範本來變更顯示在搜尋結果網頁組件中之內容的外觀。請注意,不同結果類型的動態顯示面板具有個別的顯示範本。這些顯示範本檔案位於主版頁面圖庫 [Display Templates] 資料夾的 [Search] 子資料夾中。You can use the display templates in the following table to change the appearance of content shown in a Search Results Web Part. Note that the hover panels for the different result types have separate display templates. These display template files are located in the Search subfolder in the Display Templates folder in the Master Page Gallery.

顯示範本類型Display template type 在網頁組件工具窗格中的名稱Name in Web Part Tool Pane 主版頁面圖庫中的名稱Name in Master Page Gallery 描述Description
控制顯示範本Control display template
預設搜尋方塊Default Search Box
Control_SearchBoxControl_SearchBox
顯示搜尋方塊網頁組件的搜尋方塊。此為搜尋方塊網頁組件的預設控制顯示範本。Displays the search box in a Search Box Web Part. It is the default control display template for the Search Box Web Part.
控制顯示範本Control display template
網站搜尋方塊Site Search Box
Control_SearchBoxCompactControl_SearchBoxCompact
以精簡表單顯示搜尋方塊網頁組件的搜尋方塊。Displays the search box in a Search Box Web Part in a compact form.
控制顯示範本Control display template
預設結果Default Result
Control_SearchResultsControl_SearchResults
搜尋結果網頁組件的預設控制顯示範本。The default control display template for the Search Results Web Part.
控制顯示範本Control display template
預設群組Default Group
Group_DefaultGroup_Default
顯示預設群組範本。會根據項目範本的樣式的水平或垂直排列所有項目。請注意,此控制項會顯示已隱藏,使您無法在網頁組件工具窗格中選取 [這個。Displays the default group template. Items can be arranged horizontally or vertically depending on how the item template styled. Note that this control display is hidden, so that you will not be able to select this in the Web Part tool pane.
項目顯示範本Item display template
首選項目Best Bet Item
Item_BestBetItem_BestBet
顯示使用查詢規則指定之單一升級的結果。Displays a single promoted result that is specified by using query rules.
動態顯示面板Hover panel
通用動態顯示面板動作Common Hover Panel Actions
Item_CommonHoverPanel_ActionsItem_CommonHoverPanel_Actions
顯示所有搜尋結果都通用的動態顯示面板動作。Displays the hover panel actions that are common to all search results.
動態顯示面板Hover panel
通用動態顯示面板本文Common Hover Panel Body
Item_CommonHoverPanel_BodyItem_CommonHoverPanel_Body
顯示所有搜尋結果都通用的動態顯示面板頁尾元素。Displays the hover panel footer elements that are common to all search results.
動態顯示面板Hover panel
通用動態顯示面板頁首Common Hover Panel Header
Item_CommonHoverPanelItem_CommonHoverPanel
顯示所有搜尋結果都通用的動態顯示面板頁首元素。Displays the hover panel header elements that are common to all search results.
項目顯示範本Item display template
通用項目本文Common Item Body
Item_CommonItem_BodyItem_CommonItem_Body
顯示所有搜尋結果都通用的內嵌搜尋結果本文元素。Displays the inline search result body elements that are common to all search results.
項目顯示範本Item display template
社群項目Community Item
Item_CommunityItem_Community
顯示專為社群文章與回覆自訂的搜尋結果。Displays a search result that is customized for community posts and replies.
動態顯示面板Hover panel
社群動態顯示面板Community Hover Panel
Item_Community_HoverPanelItem_Community_HoverPanel
顯示專為社群文章與回覆自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for community posts and replies.
項目顯示範本Item display template
預設項目Default Item
Item_DefaultItem_Default
顯示預設搜尋結果項目範本。Displays the default search result item template.
動態顯示面板Hover panel
預設動態顯示面板Default Hover Panel
Item_Default_HoverPanelItem_Default_HoverPanel
顯示預設搜尋動態顯示面板範本。Displays the default search hover panel template.
項目顯示範本Item display template
討論區項目Discussion Item
Item_DiscussionItem_Discussion
顯示專為社群討論區自訂的搜尋結果。Displays a search result that is customized for community discussions.
動態顯示面板Hover panel
討論區動態顯示面板Discussion Hover Panel
Item_Discussion_HoverPanelItem_Discussion_HoverPanel
顯示專為社群討論區自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for community discussions.
項目顯示範本Item display template
Excel 項目Excel Item
Item_ExcelItem_Excel
顯示專為 Microsoft Excel 的文件自訂的搜尋結果。Displays a search result that is customized for Microsoft Excel documents.
動態顯示面板Hover panel
Excel 動態顯示面板Excel Hover Panel
Item_Excel_HoverPanelItem_Excel_HoverPanel
顯示專為 Microsoft Excel 的文件自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for Microsoft Excel documents.
項目顯示範本Item display template
微型部落格項目Microblog Item
Item_MicroBlogItem_MicroBlog
顯示專為微型部落格摘要與回覆自訂的搜尋結果。Displays a search result that is customized for microblog feed posts and replies.
動態顯示面板Hover panel
微型部落格動態顯示面板Microblog Hover Panel
Item_MicroBlog_HoverPanelItem_MicroBlog_HoverPanel
顯示專為微型部落格摘要與回覆自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for microblog feed posts and replies.
項目顯示範本Item display template
Office 文件項目Office Document Item
Item_OfficeDocumentItem_OfficeDocument
顯示專為 Microsoft Office 文件自訂的搜尋結果。Displays a search result that is customized for Microsoft Office documents.
動態顯示面板Hover panel
Office 文件動態顯示面板Office Document Hover Panel
Item_OfficeDocument_HoverPanelItem_OfficeDocument_HoverPanel
顯示專為 Microsoft Office 文件自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for a Microsoft Office document.
項目顯示範本Item display template
OneNote 項目OneNote Item
Item_OneNoteItem_OneNote
顯示專為 Microsoft OneNote 文件自訂的搜尋結果。Displays a search result that is customized for Microsoft OneNote documents.
動態顯示面板Hover panel
OneNote 動態顯示面板OneNote Hover Panel
Item_OneNote_HoverPanelItem_OneNote_HoverPanel
顯示專為 Microsoft OneNote 文件自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for Microsoft OneNote document.
項目顯示範本Item display template
PDF 項目PDF Item
Item_PDFItem_PDF
顯示專為可攜式文件格式 (PDF) 文件自訂的搜尋結果。Displays search results that are customized for Portable Document Format (PDF) documents.
動態顯示面板Hover panel
PDF 動態顯示面板PDF Hover Panel
Item_PDF_HoverPanelItem_PDF_HoverPanel
顯示專為 PDF 文件自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for a PDF document.
項目顯示範本Item display template
人員項目People Item
Item_PersonItem_Person
顯示專為人員自訂的搜尋結果。Displays a search result that is customized for a person.
項目顯示範本Item display template
人員目的項目People Intent Item
Item_Person_CompactHorizontalItem_Person_CompactHorizontal
顯示專為顯示人員而自訂的搜尋結果 (精簡的水平版面配置)。Displays a search result that is customized for showing a person in a compact and horizontal layout.
動態顯示面板Hover panel
人員動態顯示面板People Hover Panel
Item_Person_HoverPanelItem_Person_HoverPanel
顯示專為人員自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for a person.
項目顯示範本Item display template
個人結果項目Personal Result Item
Item_PersonalFavoriteItem_PersonalFavorite
顯示個人我的最愛搜尋結果。Displays a personal favorite search result.
項目顯示範本Item display template
圖片項目Picture Item
Item_PictureItem_Picture
顯示專為圖片自訂的搜尋結果。Displays a search result that is customized for a picture.
動態顯示面板Hover panel
圖片動態顯示面板Picture Hover Panel
Item_Picture_HoverPanelItem_Picture_HoverPanel
顯示專為圖片自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for a picture.
項目顯示範本Item display template
PowerPoint 項目PowerPoint Item
Item_PowerPointItem_PowerPoint
顯示專為 Microsoft PowerPoint 文件自訂的搜尋結果。Displays a search result that is customized for a Microsoft PowerPoint document.
動態顯示面板Hover panel
PowerPoint 動態顯示面板PowerPoint Hover Panel
Item_PowerPoint_HoverPanelItem_PowerPoint_HoverPanel
顯示專為 Microsoft PowerPoint 文件自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for a Microsoft PowerPoint document.
項目顯示範本Item display template
回覆項目Reply Item
Item_ReplyItem_Reply
顯示專為社群討論區的回覆自訂的搜尋結果。Displays a search result that is customized for a reply in community discussions.
動態顯示面板Hover panel
回覆動態顯示面板Reply Hover Panel
Item_Reply_HoverPanelItem_Reply_HoverPanel
顯示專為社群討論區的回覆自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for a reply in community discussions.
項目顯示範本Item display template
網站項目Site Item
Item_SiteItem_Site
顯示專為 SharePoint 網站自訂的搜尋結果。Displays a search result that is customized for a SharePoint site.
動態顯示面板Hover panel
網站動態顯示面板Site Hover Panel
Item_Site_HoverPanelItem_Site_HoverPanel
顯示專為 SharePoint 網站自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for a SharePoint site.
項目顯示範本Item display template
影片項目Video Item
Item_VideoItem_Video
顯示專為影片檔案自訂的搜尋結果。Displays a search result that is customized for a video file.
項目顯示範本Item display template
影片Video
Item_VideoCompactHorizontalItem_VideoCompactHorizontal
顯示專為視訊檔案水平版面配置自訂的搜尋結果。Displays a search result that is customized for a video file horizontal layout.
> [!NOTE]> 影片動態顯示面板將無法使用此顯示範本> [!NOTE]> The Video Hover Panel will not work with this display template
動態顯示面板Hover panel
影片動態顯示面板Video Hover Panel
Item_Video_HoverPanelItem_Video_HoverPanel
顯示專為影片檔案自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for video file.
項目顯示範本Item display template
網頁項目Web Page Item
Item_WebPageItem_WebPage
顯示專為網頁自訂的搜尋結果。Displays a search result that is customized for a web page.
動態顯示面板Hover panel
網頁動態顯示面板Web page Hover Panel
Item_WebPage_HoverPanelItem_WebPage_HoverPanel
顯示專為網頁自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for a web page.
項目顯示範本Item display template
Word 項目Word Item
Item_WordItem_Word
顯示專為 Microsoft Word 文件自訂的搜尋結果。Displays a search result that is customized for a Microsoft Word document.
動態顯示面板Hover panel
Word 動態顯示面板Word Hover Panel
Item_Word_HoverPanelItem_Word_HoverPanel
顯示專為 Microsoft Word 文件自訂的搜尋結果動態顯示面板。Displays a search result hover panel that is customized for a Microsoft Word document.