الگو:Count on page/توضیحات
پرونده:Edit-copy purple.svg | این زیرصفحهٔ مستندات الگو:Count on page است. این شامل اطلاعات استفاده، الگوها، پیوندهای بین زبانی و سایر اطلاعات است که در اصل الگو صفحه قرار نمیگیرد. |
نماد لوآ | این الگو از لوآ استفاده میکند: |
Usage
Finds if a string (case senstitive) is used on a page or not. It has two parameters
{{Count on page|PAGENAME|STRING}}
The template returns the number of times STRING
is found on PAGENAME
.
For example
{{Count on page|ویکیپدیا:سیاست رباترانی|ربات}}
→ الگو:Count on page{{Count on page|ویکیپدیا:سیاست رباترانی|شکلات}}
→ الگو:Count on page
Limitations
- Currently, this template only sees the text that would be transcluded (i.e. outside of
<noinclude>...</noinclude>
tags). - If you want to use the template to count a string on the same page the template is on, it must be noincluded
<noinclude>{{Count on page|PAGENAME|STRING}}</noinclude>
, otherwise a template loop will occur.
See also
- {{String on page}}