सामग्रीमा जानुहोस्

ढाँचा:Has short description/कागजात

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट

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.

Examples:

  • {{Has short description |title=Loyola Academy}}लुआ त्रुटि: bad argument #1 to 'find' (string expected, got nil)।
  • {{Has short description |title=Rock Bridge High School}}लुआ त्रुटि: bad argument #1 to 'find' (string expected, got nil)।

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.