Template:Short description: Difference between revisions

From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
<!-- Template:Short description -->
<!-- Template:Short description (enhanced, guarded) -->
<!-- Usage: {{Short description|Your short description here|noreplace}} -->
{{#ifeq: {{lc:{{{1|}}}}} | none
{{#ifeq: {{lc:{{{1|}}}}} | none
  | <nowiki /><!-- prevent whitespace when explicitly disabled -->
  | <nowiki />
  | <div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">
  | {{#if: {{{1|}}}
  {{{1|}}}
    | <div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">
  {{SHORTDESC:{{{1|}}}|{{{2|}}}}}
        {{{1}}}
  </div>
        {{SHORTDESC:{{{1}}}|{{{2|}}}}}
      </div>
  }}
}}
}}


<includeonly>
<includeonly>
   <!-- Page-type categorization -->
   <!-- Page-type category (guard if Template:Pagetype exists) -->
   [[Category:{{{pagetype|{{pagetype |defaultns = extended |plural = y}}}}} with short description{{#ifeq:{{{pagetype|}}}|Disambiguation pages|s}}]]
   {{#ifexist: Template:Pagetype
    | [[Category:{{{pagetype|{{pagetype|defaultns=extended|plural=y}}}}} with short description{{#ifeq:{{{pagetype|}}}|Disambiguation pages|s}}]]
    | [[Category:Pages with short description]]
  }}


   <!-- Unknown parameter tracking (requires Module:Check for unknown parameters) -->
   <!-- Unknown-parameter tracker (only if module exists) -->
  {{#invoke:Check for unknown parameters
  {{#ifexist: Module:Check for unknown parameters
    | check
    | {{#invoke:Check for unknown parameters
    | unknown = {{Main other|[[Category:Pages using short description with unknown parameters|_VALUE_{{PAGENAME}}]]}}
        | check
    | preview = Page using [[Template:Short description]] with unknown parameter "_VALUE_"
        | unknown = {{Main other|[[Category:Pages using short description with unknown parameters|_VALUE_{{PAGENAME}}]]}}
    | ignoreblank = y
        | preview = Page using [[Template:Short description]] with unknown parameter "_VALUE_"
    | 1
        | ignoreblank = y
    | 2
        | 1
    | pagetype
        | 2
    | bot
        | pagetype
    | plural
        | bot
        | plural
      }}
   }}
   }}


   <!-- Long short description tracking -->
   <!-- Long short description tracking (only if Module:String exists) -->
   {{#if:{{{1|}}}
   {{#if: {{{1|}}}
     | {{#ifexpr: {{#invoke:String|len|{{{1|}}}}} > 100
     | {{#ifexist: Module:String
        | [[Category:{{{pagetype|{{pagetype |defaultns = extended |plural = y}}}}} with long short description]]
        | {{#ifexpr: {{#invoke:String|len|{{{1}}}}} > 100
            | [[Category:{{{pagetype|{{#ifexist:Template:Pagetype|{{pagetype|defaultns=extended|plural=y}}|Pages}}}} with long short description]]
          }}
       }}
       }}
   }}
   }}


   <!-- Optional SD category hook if you have Template:SDcat -->
   <!-- Optional SDcat if it exists -->
   {{Main other | {{SDcat | sd = {{{1|}}} }} }}
   {{#ifexist: Template:SDcat | {{Main other | {{SDcat | sd = {{{1|}}} }} }} }}
</includeonly>
</includeonly>



Revision as of 20:39, 12 September 2025




<templatestyles src="Module:Documentation/styles.css"></templatestyles>