ទំព័រគំរូ:Category handler/numbered
![]() |
ទំព័រគំរូនេះត្រូវបានប្រើលើទំព័រចំនួនmany ហើយការផ្លាស់ប្ដូរអាចនឹងត្រូវបានគេកត់សម្គាល់បានយ៉ាងធំធេង។ សូមសាកល្បងការផ្លាស់ប្ដូរនៅក្នុង ទំព័ររងទំព័រគំរូ /ប្រអប់ខ្សាច់ ឬ /សំណុំល្បងរបស់វាជាមុនសិន។ ពិចារណានូវការពិភាក្សាពីការផ្លាស់ប្ដូរនៅលើទំព័រសន្ទនាមុននឹងអនុវត្តវា។
ការរាប់សម្រង់បន្ទាន់សម័យដោយ Ahechtbot ។ |
This is the {{category handler/numbered}} sub-template.
Do not use this template directly, use {{category handler}} instead. This template is called from {{category handler}}, see user documentation there.
The rest of the sections here are only for those that want to understand the internal workings of this template.
Technical details[កែប្រែ]
This sub-template makes it possible for its parent-template to take input in two forms:
{{category handler | 1 = Input | main = 1 | talk = 1 <!--Reusing "Input" for both the main and talk parameters--> }} {{category handler | main = Input1 | talk = Input2 <!--Instead feeding text directly to the talk parameter--> }}
This sub-template takes a bunch of numbered parameters. There's no limit to the number of parameters it can use, other than what the servers and MediaWiki system can handle.
It also takes a parameter named data. If data is a number, then it returns the data of the corresponding numbered parameter. If data is something else, for instance a category name, then it returns data unchanged.
Here's how you would normally call this sub-template:
{{category handler/numbered | 1 = {{{1|}}} | 2 = {{{2|}}} | 3 = {{{3|}}} | 4 = {{{4|}}} | data = Input can be a number between 1-4, or something else. }}
In the above example, since the parent-template feeds only 1-4, then only the numbers 1-4 will work properly. Feeding other numbers will return an empty string.
See also[កែប្រែ]
- mw:Help:Extension:ParserFunctions – About
{{#iferror:||}}
etc.
ឯកសារកម្មខាងលើត្រូវបានសម្រង់ចេញពីទំព័រគំរូ:Category handler/numbered/doc។ (កែ | ប្រវត្តិ) អ្នករៀបរៀងអាចពិសោធនៅទំព័រប្រអប់ខ្សាច់ (បង្កើត | ចម្លុះ) និង សំណុំល្បង (បង្កើត)របស់ទំព័រគំរូនេះបាន។ សូមបន្ថែមថ្នាក់ក្រុមទៅកាន់ទំព័ររង /doc។ ទំព័ររងនៃទំព័រគំរូនេះ។ |