Toggle menu
14
236
69
27.4K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 05:23, 22 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} {{Lua|Module:String2}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> Convenience template that returns the position of the phrase <code><nowiki>{{short description</nowiki></code> within the article wiki-text, or nothing if the phrase does not exist. It can take an optional parameter {{para|title}} (or the first unnamed parameter) which is the title of the page to test. The title defaults to the c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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}}
  • {{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.


Contents