Template:Search box/doc:修订间差异

    来自真佛百科
    Tbpedia>Sophivorus
    (Sophivorus moved page Template:Searchbox/doc to Template:Search box/doc without leaving a redirect)
     
    (导入1个版本)
     
    (没有差异)

    2024年3月2日 (六) 17:33的最新版本

    Use this template to create a search box that searches some part of Appropedia.

    By default the scope is all Appropedia, but it can be configured to search just the subpages of a page or just a category.

    Parameters

    • prefix - The target page. |prefix=User talk:Example/Archives will search all subpages of User talk:Example/Archives. By default, the target page itself is included. Append a slash "/" to the prefix to exclude the current page.
    • search-break=yes will insert a break between the search bar and search button. The default is no.
    • search-width can be used to change the width of the text field, in characters. The default is 22, which fits the search bar with the default box width. Note: this is a bare number with no units.
    • search-button-label can be used to change the text on the search button. The default is "Search".

    Examples

    {{Search box
    | prefix = Appropedia:Village pump
    | search-button-label = Search the Village pump
    }}

    produces:

    Example 2:

    {{Search box
    | prefix = User:Example
    | search-break = no
    | search-width = 22
    | search-button-label = Search User:Example's pages
    }}

    produces: