Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Has short description

Permanently protected template
From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 782,000 pages, or roughly 1% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's/sandbox or/testcases subpages, or in your ownuser subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on thetalk page before implementing them.
This template usesLua:

Convenience template that returns the position of the phrase{{short description within the article wiki-text, or nothing if the phrase does not exist.

It can take an optional parameter|title= (or the first unnamed parameter) which is the title of the page to test. The title defaults to the current page if not supplied.

Usage

Examples:

  • {{Has short description |title=Loyola Academy}} → 1
  • {{Has short description |title=Rock Bridge High School}}

It is directly useable in tests within templates like{{#if:{{Has short description}} |Something when short description exists |Something when short description doesn't exist}}.

It may find use in infoboxes that generate short descriptions (with categories, etc.), where it is desirable to suppress the generated short description if one already exists.

The abovedocumentation istranscluded fromTemplate:Has short description/doc.(edit |history)
Editors can experiment in this template's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Has_short_description&oldid=1305419582"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp