साँचा:Lcp

विकिस्रोत से

[[:Category:{{{1}}}|{{{1}}}]]साँचा:Doc-page-head   Purpose and usage:

  • This is a revised version of the Metawiki template {{lc}}, which name has other uses here on the Mediawiki commons. Excepting this paragraph, the renaming to List Category Pipetricked Lcp and categorization, this template in functionality is a copy of the Meta template 'Lc' and usage is as modified with the F parameter on en.Wikibooks.
{{lcp|Saxony}} → Saxony
{{lcp|Saxony|F=1}} → Category:Saxony
  • Here, use of the {{cl}} Template can be used instead of using this template and it's F parameter:
{{cl|Saxony}} → Category:Saxony
Usage

This page simplifies discussing book project categories by providing a short link by name only and a pretty-print output which can be controlled without long distracting direct links in prose that needs constructed and proofed.

  • It forms the simple link: [[श्रेणी:{{{1}}} |{{{1}}}]] sans any other parameters.

 

  • Define the parameter 'F' (for Full) anything to prefix 'Category' in front of the prettied up name, which as shown above, will otherwise appear just as the bare Title of the category name, which is the controlling pass parameter (i.e. |1 or {{{1}}} ).

 

  • Define the second placeholder parameter |2 ({{{2}}} or '2' ) to display different hyperlinked text as desired.

When both 'F' and '2' are defined, '2' overrides and has precedence.