Wikipedia:WikiProject User scripts/Requests/Fulfilled/Archive 1: Difference between revisions
Content deleted Content added
Mike Dillon (talk | contribs) manually archived "Two-column article printouts" |
Mike Dillon (talk | contribs) manually archived "Insert user page links" |
||
Line 199:
::: <code>textarea.setAttribute('readonly', 'readonly');</code>
:: To the first if for that full on view souce look, though obviously you wouldn't then be able to play around with the source. — [[User:Ian Moody|Ian Moody]] <sup>([[User talk:Ian Moody|talk]])</sup> 21:33, 19 April 2006 (UTC)
== Insert user page links ==
A one way click to add a link to a username. For example: You click a tab, then a message box pops up that says "What user". Then you type the username in the box and the script puts <nowiki>[[User:Example|Example]]</nowiki> into the page. If the page User:Example doesn't exist, then it links to the talk page of that user. So now it is <nowiki>[[User_Talk:Example|Exmple]]</nowiki>. If the talk page doesn't exist, then it links to contributions. So now you have <nowiki>[[Special:Contributions/Example|Example]]</nowiki>. Also, there should be an option that on choices 1 and 3, you have a link to the talk page in parenthases (even if it doesn't exist). So if you choose that option, then #1 would look like this: <nowiki>[[User:Example|Example]] ([[User_Talk:Example|Talk]])</nowiki>. You can do all of this manually, but you would have to cut and paste, and put wikilinks, and it would take too long. ''I know this is a bit confusing, so any questions, ask me.'' Thank you --<i><b><font color="#5ADD22"><font size="1">[[User:GeorgeMoney|George]]</font></font><font size="1" color="#FF0000">[[User:GeorgeMoney|Mon]]</font><font size="1" color=green>[[User:GeorgeMoney/Esperanza|e]]</font><font size="1" color="#FF0000">[[User:GeorgeMoney|y]]</font></b></i><sup><font color="#0000FF"><span style="font-size: 6pt">[[User_talk:GeorgeMoney|Talk]]</span></font><span style="font-size: 3pt"></span><font color="#0000FF"><span style="font-size: 6pt"> [[Special:Contributions/GeorgeMoney|Contribs]]</span></font></sup> 22:21, 21 April 2006 (UTC)
: Try [[User:Ilmari_Karonen/editbutton_user.js]]. Instead of trying to detect which pages exist, which would require a server-side lookup, it inserts <code><nowiki>{{subst:user|Example}}</nowiki></code>, which provide all three links like this: [[User:Example|{{{2|Example}}}]] ([[User talk:Example|talk]] • [[Special:Contributions/Example|contribs]]). —[[User:Ilmari Karonen|Ilmari Karonen]] <small>([[User talk:Ilmari Karonen|talk]])</small> 16:54, 8 May 2006 (UTC)
== Auto-sign your own comments ==
|