【広告】Amazonリンククリック後、何かを買うと北大Wikiの運営費になります

北大地図パズル紹介バナー

【ゲキムズ?】 北大地図パズル


「テンプレート:DEFAULTSORT/doc」の版間の差分

提供: 北大Wiki
ナビゲーションに移動 検索に移動
(Reverted edits by 2409:4062:2E9D:D0FF:C02D:5BA1:377D:8512 (talk): page blanking (HG) (3.4.10))
(相違点なし)

2020年10月17日 (土) 13:02時点における版

テンプレート:important

テンプレート:tlf is a magic word used to modify the sequence of pages shown on category pages. The given sort key in a specific page is used to determine that page's position in all category pages where the page is listed. Note: The specific page will still be listed with its original title, regardless of the modified sort order. The sort key can be overridden for specific categories, if their テンプレート:brackets tags contain a differing individual sort key.

It is not necessary to use DEFAULTSORT at all if the article or page should be alphabetized according to its title (which is true for most articles).

For background information on how the pages in a category are ordered, see テンプレート:section link.

Understanding DEFAULTSORT[編集]

By default, pages listed on a category page are sorted by テンプレート:tlc. It is possible to set a different sort key by using the テンプレート:tlc magic word.

In the case of multiple default sort key tags, the last DEFAULTSORT on the final rendering of a page applies for all categories, regardless of the position of the category tags. This also means that a DEFAULTSORT tag included from a template is not effective if another DEFAULTSORT tag occurs later on the page, even if the later DEFAULTSORT tag is also "hidden" (included by another template).

Placement[編集]

When using テンプレート:tl to modify the default sort key, the magic word should be placed at the left margin of a new line, immediately above the line which begins the list of categories. For example, the last lines of a typical article titled Forename Surname could look like:

==Final section==
Final line of content in "final section".

{{Templates}}

{{Last metadata template
| LAST PARAMETER OF LAST METADATA TEMPLATE = Parameter content
}}
{{DEFAULTSORT:Surname, Forename}}
[[Category:Forename Surname| ]]

Tracking category[編集]

See also[編集]

TemplateData[編集]

これは新しいビジュアルエディターにより使用されるテンプレートのためのTemplateData文書です。

DEFAULTSORT

テンプレート:template other

<templatedata> { "description": " is a magic word used to modify the sequence of pages shown on category pages. Please use 警告: 既定のソートキー「Sortkey」が、その前に書かれている既定のソートキー「<sort key>」を上書きしています。 rather than, with a colon (\":\"), not a pipe symbol (\"|\"). This uses the magic word directly instead of using the template to call the magic word.", "params": { "1": {} } } </templatedata>