Knowledge

User:Nardog/TemplatePreviewGuard

Source 📝

69:
Have you ever used the "Preview page with this template" feature and wondered why your changes weren't being reflected in the preview only to realize you were editing the wrong template? If you have, this script is for you. It'll show you a confirmation dialog if you click "Show preview" under
310: 61: 109:'//en.wikipedia.org/search/?title=User:Nardog/TemplatePreviewGuard.js&action=raw&ctype=text/javascript' 118: 127: 319:– Warns when you try to use "Preview page with this template" with a page that doesn't transclude the template. 241: 83: 35:
Warns when you try to use "Preview page with this template" with a page that doesn't transclude the template
174: 168: 298: 282: 338: 304: 292: 247: 190: 140: 200: 79: 295:– Autofills "Preview page with this template" with the most relevant /testcases page that exists. 206: 184: 70:"Preview page with this template" and the entered page doesn't transclude the page being edited. 263: 218: 253: 235: 8: 222: 212: 123: 269: 187:– Adds links to diffs of consecutive edits by the same user on watchlist, history, etc. 203:– Adds a button to copy the unencoded page title or section path next to each heading. 301:– Links "diff" and "hist" for category additions/removals on Watchlist/RecentChanges. 257: 145: 221:– Makes links and template calls in diffs clickable (supports red links, avoids 272:– Converts each piped link to a non-piped one if both lead to the same article. 178: 332: 266:– Replaces reference names like ":0" with descriptive ones like "Smith-2015". 150: 17: 289:
as you edit so only the modified section will be linked in the summary.
307:– Upload an image to Commons from anywhere on the site by pasting it. 181:, e.g. changing the color theme and enabling live autocompletion. 313:– Sorts the list of local accounts on CentralAuth by edit count. 250:– Insert any character by searching in the entire Unicode chart. 171:– Lists recent category additions/removals on a category page. 256:– Type in IPA symbols by directly looking at an IPA key like 238:– Adds an undo button to each line on the diff while editing. 215:– Hides specified users' edits on Watchlist/RecentChanges. 193:– Adds a button to copy the content of each code block ( 131:and click "Install" in the infobox on this page. 330: 209:– Lists the past moves a page has gone through. 155: 14: 331: 154: 62:User:Nardog/TemplatePreviewGuard.js 23: 24: 350: 73: 13: 1: 260:and clicking on the symbols. 45:    (4 months ago) 7: 134: 10: 355: 311:SortCentralAuthByEditCount 177:– Allows customizing the 161: 141:User:Nardog/AutoTestcases 57: 49: 39: 31: 88: 244:– Expands contractions. 285:– Adds or refines the 117:Or you may enable the 78:Add the following to 53:Chrome, Firefox, etc. 317:TemplatePreviewGuard 27:TemplatePreviewGuard 164:Extra functionality 28: 287:/* section link */ 242:ExpandContractions 230:Editing assistance 26: 339:Knowledge scripts 326: 325: 67: 66: 346: 288: 258:Help:IPA/English 196: 175:CodeEditorAssist 169:CatChangesViewer 156:Nardog's scripts 152: 151: 130: 119:script installer 113: 110: 107: 104: 101: 98: 95: 92: 29: 25: 354: 353: 349: 348: 347: 345: 344: 343: 329: 328: 327: 322: 299:CatChangeLinker 286: 283:AutoSectionLink 277:Itch scratchers 194: 157: 137: 122: 115: 114: 111: 108: 105: 102: 99: 96: 93: 90: 76: 44: 22: 21: 20: 12: 11: 5: 352: 342: 341: 324: 323: 321: 320: 314: 308: 305:PasteToCommons 302: 296: 290: 274: 273: 267: 261: 251: 245: 239: 227: 226: 216: 210: 204: 198: 188: 182: 172: 162: 159: 158: 149: 148: 143: 136: 133: 89: 80:your common.js 75: 72: 65: 64: 59: 55: 54: 51: 47: 46: 41: 37: 36: 33: 15: 9: 6: 4: 3: 2: 351: 340: 337: 336: 334: 318: 315: 312: 309: 306: 303: 300: 297: 294: 293:AutoTestcases 291: 284: 281: 280: 279: 278: 271: 268: 265: 262: 259: 255: 252: 249: 248:InsertAnyChar 246: 243: 240: 237: 234: 233: 232: 231: 224: 220: 217: 214: 211: 208: 205: 202: 199: 192: 191:CopyCodeBlock 189: 186: 183: 180: 176: 173: 170: 167: 166: 165: 160: 153: 147: 144: 142: 139: 138: 132: 129: 125: 120: 87: 85: 81: 71: 63: 60: 56: 52: 48: 42: 38: 34: 30: 19: 316: 276: 275: 229: 228: 223:WP:SEAOFBLUE 201:CopySectLink 163: 146:phab:T279736 116: 77: 74:Installation 68: 43:May 10, 2024 207:MoveHistory 195:<pre> 185:Consecudiff 179:code editor 124:Preferences 32:Description 18:User:Nardog 264:RefRenamer 219:SmartDiff 84:global.js 333:Category 254:IPAInput 236:DiffUndo 135:See also 126: → 50:Browsers 213:RCMuter 128:Gadgets 40:Updated 270:Unpipe 97:loader 58:Source 16:< 103:load 121:in 82:or 335:: 225:). 197:). 112:); 91:mw 86:: 106:( 100:. 94:.

Index

User:Nardog
User:Nardog/TemplatePreviewGuard.js
your common.js
global.js
script installer
Preferences
Gadgets
User:Nardog/AutoTestcases
phab:T279736
CatChangesViewer
CodeEditorAssist
code editor
Consecudiff
CopyCodeBlock
CopySectLink
MoveHistory
RCMuter
SmartDiff
WP:SEAOFBLUE
DiffUndo
ExpandContractions
InsertAnyChar
IPAInput
Help:IPA/English
RefRenamer
Unpipe
AutoSectionLink
AutoTestcases
CatChangeLinker
PasteToCommons

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