Knowledge (XXG)

User:Bility/statusupdate

Source 📝

42:/Status" is updated with the text inside the <span>. The purpose is to put links on your user page you can click to update the status page, which is transcluded into the user page. This way you don't have to go to the status page, edit it then save it. Note that this script only works for pages in your user space and user talk pages. 104:
Wherever the links are going to reside, either transcluded from another page or directly in your user page, just make sure they are in <span> tags, within another tag containing the
38:
This script adds links to any <span> element inside an element with the ID "user-status". When one of the <span>s is clicked, the page at "User:
31: 55: 112:
above, you need to add a hidden visibility style to the element as well. Here are a couple possible examples:
51: 17: 96:, will allow you to hide the update links from other users. 8: 116:Using a <div> with hidden visibility 92:The first line is optional, and if set to 84:'User:Bility/statusupdate.js' 7: 100:In your user page or status template 24: 50:Add the following code to your 28:Code for this script resides at 1: 143:"visibility:hidden" 108:attribute. If you have set 32:User:Bility/statusupdate.js 324: 207: 119: 60: 222:"user-status" 134:"user-status" 110:var hideStatus = true; 46:Using this script 315: 309: 304: 297: 294: 291: 288: 285: 282: 279: 276: 272: 269: 266: 263: 260: 257: 254: 251: 248: 245: 241: 238: 235: 232: 229: 226: 223: 220: 217: 214: 211: 199: 195: 189: 186: 183: 180: 177: 173: 170: 167: 163: 160: 157: 153: 150: 147: 144: 141: 138: 135: 132: 129: 126: 123: 106:id="user-status" 88: 85: 82: 79: 76: 73: 70: 67: 64: 323: 322: 318: 317: 316: 314: 313: 312: 307: 302: 299: 298: 295: 292: 289: 286: 283: 280: 277: 274: 270: 267: 264: 261: 258: 255: 252: 249: 246: 243: 239: 236: 233: 230: 227: 224: 221: 218: 215: 212: 209: 201: 200: 197: 193: 191: 190: 187: 184: 181: 178: 175: 171: 168: 165: 161: 158: 155: 151: 148: 145: 142: 139: 136: 133: 130: 127: 124: 121: 102: 90: 89: 86: 83: 80: 77: 74: 71: 68: 65: 62: 52:skin javascript 48: 22: 21: 20: 12: 11: 5: 321: 319: 311: 310: 305: 208: 206: 205: 192: 120: 118: 117: 111: 107: 101: 98: 95: 61: 47: 44: 36: 35: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 320: 306: 301: 300: 203: 202: 115: 114: 113: 109: 105: 99: 97: 93: 59: 57: 53: 45: 43: 41: 34: 33: 29: 26: 25: 19: 204:Using a list 103: 91: 78:importScript 49: 39: 37: 30: 27: 18:User:Bility 66:hideStatus 281:></ 250:></ 182:></ 56:common.js 40:User name 265:>< 234:>< 146:>< 308:offline 273:offline 198:offline 174:offline 303:online 242:online 194:online 154:online 290:</ 275:</ 244:</ 176:</ 156:</ 137:style 72:false 16:< 296:> 287:> 278:span 271:> 268:span 259:< 256:> 247:span 240:> 237:span 228:< 225:> 210:< 188:> 179:span 172:> 169:span 166:< 162:> 159:span 152:> 149:span 122:< 94:true 185:div 125:div 63:var 54:or 293:ul 284:li 262:li 253:li 231:li 216:id 213:ul 196:| 164:| 128:id 87:); 58:: 219:= 140:= 131:= 81:( 75:; 69:=

Index

User:Bility
User:Bility/statusupdate.js
skin javascript
common.js

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