සැකිල්ල:Commons category/doc
This is a documentation subpage for සැකිල්ල:Commons category. It may contain usage information, categories and other content that is not part of the original සැකිල්ල page. |
මෙම සැකිල්ල පිටු 785,000+ භාවිතා වන නිසා. To avoid major disruption and server load, any changes should be tested in the මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. The tested changes can be added to this page in a single edit. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න. Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
The "Template:Commons category" links to a "Category:" name in the විකිමාධ්ය කොමන්ස් repository (edited using a Wikimedia login name). If that category name is misspelled or missing, the link will still appear "blue" even though the link will fail. Check spelling of names carefully.
Usage
සංස්කරණය{{Commons category}} – puts link-box with current page's name as the category. {{Commons category|catnam}} – puts link-box connecting title catnam. {{Commons category|catnam|shownam}} – puts link-box showing the title shownam. {{Commons category|catnam|position=left}} – floats link-box to the left side.
The two parameters catnam and shownam (1 & 2) are optional, and are intended for cases where the Commons category name is different from the Wikipedia page name. The first parameter is the name of the corresponding category on the විකිමාධ්ය කොමන්ස්, without the "Category:
" prefix. If this first parameter is used, then the template will display the Commons category name, which may be confusing to readers. This text can be overridden by the second parameter, where the Wikipedia page name would typically be used.
The parameter "position=" accepts one value, left
, that moves the box to the left side, instead of the default right side. More information may be found at {{Side box}}
.
For example, on the Polar bear page,
{{Commons category|Ursus maritimus|Polar bears}}
produces a link to Commons:Category:Ursus maritimus displayed as Polar bears.
See also
සංස්කරණය- Template:Commons+cat
- Template:Commons cat multi – to include multiple categories.
- Template:Commons category-inline
- Template:Com – links the category as a text-link, not a box