Knowledge (XXG)

Template:Find page text

Source 📝

21: 52: 92: 333: 36: 366: 329: 32: 165: 387: 40: 315: 382: 70: 362: 323: 28: 66: 78: 74: 109: 77:. The tested changes can be added to this page in a single edit. Consider discussing changes on the 304: 319: 250:|text=iver|title=Boston Bridge|plain=false|nomatch=not found}} 98: 65:
To avoid major disruption and server load, any changes should be tested in the template's
122: 105: 376: 220:|text=Youghiogheny|title=Boston Bridge|nomatch=not found}} 59: 240:|text=river|title=Boston Bridge|nomatch=not found}} 15: 131:
returns the position of a piece of text in the wikitext source of a page.
276:
The search is case-sensitive, so Lua pattern matching is needed to find
270:|text=%{%{oord|title=Boston Bridge|plain=f}} 60:
approximately 2,560,000 pages, or roughly 4% of all pages
260:|text=%[%[|title=Boston Bridge|plain=f}} 175:
is the value returned when no match is found; default is nothing.
86: 46: 164:
is either true for a plain search (default), or false for a
354: 346: 342: 230:|text=river|title=Boston Bridge}} 339:Editors can experiment in this template's sandbox 210:|text=Youghiogheny|nomatch=0}} 157:is the page title, defaults to the current page. 292:. The penultimate example finds a wiki-link. 8: 139:The template takes up to four parameters: 172: 161: 154: 147: 143: 121:Wrapper for findpagetext function in 7: 200:|text=Youghiogheny}} 14: 90: 50: 19: 150:is the text to be searched for. 190:|Youghiogheny}} 1: 388:String manipulation templates 324:Template:Find page text/doc 404: 313: 367:Subpages of this template 284:. The last example finds 81:before implementing them. 73:subpages, or in your own 58:This template is used on 129:Template:Find page text 361:Add categories to the 24:Template documentation 97:This template uses 383:Lua-based templates 171:Optional parameter 160:Optional parameter 153:Optional parameter 173:|nomatch= 119: 118: 85: 84: 395: 358: 350: 337: 309: 303: 291: 287: 283: 279: 271: 261: 251: 241: 231: 221: 211: 201: 191: 174: 163: 162:|plain= 156: 155:|title= 149: 145: 94: 93: 87: 54: 53: 47: 44: 25: 23: 22: 403: 402: 398: 397: 396: 394: 393: 392: 373: 372: 371: 370: 360: 352: 340: 338: 327: 312: 307: 301: 298: 289: 285: 281: 277: 265: 255: 245: 235: 225: 215: 205: 195: 185: 182: 148:|text= 137: 115: 91: 64: 51: 45: 26: 20: 18: 12: 11: 5: 401: 399: 391: 390: 385: 375: 374: 351:and testcases 311: 310: 297: 294: 274: 273: 268:Find page text 263: 258:Find page text 253: 248:Find page text 243: 238:Find page text 233: 228:Find page text 223: 218:Find page text 213: 208:Find page text 203: 198:Find page text 193: 188:Find page text 181: 178: 177: 176: 169: 158: 151: 136: 133: 123:Module:String2 117: 116: 114: 113: 106:Module:String2 102: 95: 83: 82: 55: 17: 16: 13: 10: 9: 6: 4: 3: 2: 400: 389: 386: 384: 381: 380: 378: 368: 364: 356: 348: 344: 335: 331: 325: 321: 317: 316:documentation 306: 300: 299: 295: 293: 269: 264: 259: 254: 249: 244: 239: 234: 229: 224: 219: 214: 209: 204: 199: 194: 189: 184: 183: 179: 170: 167: 159: 152: 142: 141: 140: 134: 132: 130: 126: 124: 111: 107: 104: 103: 100: 96: 89: 88: 80: 76: 72: 68: 62: 61: 56: 49: 48: 42: 38: 34: 30: 308:}} 302:{{ 275: 267: 266:{{ 257: 256:{{ 247: 246:{{ 237: 236:{{ 227: 226:{{ 217: 216:{{ 207: 206:{{ 197: 196:{{ 187: 186:{{ 144:|1= 138: 128: 127: 120: 75:user subpage 57: 320:transcluded 242:→ not found 166:Lua pattern 39:] [ 35:] [ 31:] [ 377:Categories 314:The above 305:if in page 135:Parameters 71:/testcases 365:subpage. 79:talk page 296:See also 180:Examples 67:/sandbox 345:| 334:history 332:| 290:{{Coord 286:{{coord 168:search. 110:sandbox 37:history 359:pages. 355:create 347:mirror 343:create 272:→ 2470 322:from 282:River 278:river 262:→ 294 252:→ 309 222:→ 296 43:] 41:purge 27:[ 363:/doc 330:edit 33:edit 29:view 318:is 288:or 280:or 212:→ 0 146:or 99:Lua 69:or 379:: 326:. 125:. 101:: 369:. 357:) 353:( 349:) 341:( 336:) 328:( 232:→ 202:→ 192:→ 112:) 108:( 63:.

Index

view
edit
history
purge
approximately 2,560,000 pages, or roughly 4% of all pages
/sandbox
/testcases
user subpage
talk page
Lua
Module:String2
sandbox
Module:String2
Lua pattern
Find page text
Find page text
Find page text
Find page text
Find page text
Find page text
Find page text
Find page text
Find page text
if in page
documentation
transcluded
Template:Find page text/doc
edit
history
create

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.