টেমপ্লেট:Find page text
অবয়ব
| এই টেমপ্লেটটি অধিক পাতায় ব্যবহৃত হয়েছে ,ফলে এর যে কোন পরিবর্তন ব্যাপকভাবে দেখা যাবে। দয়া করে যে কোন ধরনের পরিবর্তন টেমপ্লেটটির /খেলাঘর বা /পরীক্ষা উপপাতা অথবা আপনার ব্যবহারকারী উপপাতায় পরীক্ষা করুন। বাস্তবায়নের পূর্বে আলাপ পাতায় পরিবর্তন সম্পর্কে আলোচনা করুন। |
| ব্যবহৃত লুয়া: |
Wrapper for findpagetext function in Module:String2.
Template:Find page text returns the position of a piece of text in the wikitext source of a page.
টেমপ্লেট:Find page text কোনো পৃষ্ঠার উইকিটেক্সট উৎস থেকে কোন একটি লেখার অংশের অবস্থান বের করে।
Parameters
[সম্পাদনা]The template takes up to four parameters:
|1=or|text=is the text to be searched for.- Optional parameter
|title=is the page title, defaults to the current page. - Optional parameter
|plain=is either true for a plain search (default), or false for a Lua pattern search. - Optional parameter
|nomatch=is the value returned when no match is found; default is nothing.
Examples
[সম্পাদনা]{{Find page text |Youghiogheny}}→{{Find page text |text=Youghiogheny}}→{{Find page text |text=Youghiogheny|nomatch=0}}→ 0{{Find page text |text=Youghiogheny|title=Boston Bridge|nomatch=not found}}→ not found{{Find page text |text=river|title=Boston Bridge}}→{{Find page text |text=river|title=Boston Bridge|nomatch=not found}}→ not found{{Find page text |text=[Rr]iver|title=Boston Bridge|plain=false|nomatch=not found}}→ not found{{Find page text |text=%[%[|title=Boston Bridge|plain=f}}→{{Find page text |text=%{%{[Cc]oord|title=Boston Bridge|plain=f}}→
The search is case-sensitive, so Lua pattern matching is needed to find river or River. The last example finds {{coord or {{Coord. The penultimate example finds a wiki-link.
See also
[সম্পাদনা]- {{if in page}}