User:Joseph A. Spadaro/Sandbox/Page55
Help resources
[edit]- Article Feedback – mw:Article feedback/Public Policy Pilot
- Article Template – Academy Award (edit | talk | history | protect | delete | links | watch | logs | views)
- Color Codes – HTML color codes (example website)
- General – WP:Help desk
- Table of Contents – Help:Section (disable with __NOTOC__; enable with __TOC__)
- Tables – Help:Table
- Talkback – Template:Talkback (use the {{Talkback|Joseph A. Spadaro}} command)
- Userboxes – Wikipedia:Userboxes and Wikipedia:Userboxes/Gallery
- User Template – Joseph A. Spadaro (talk · contribs)
- Wikipedia Rank – Wikipedia:List of Wikipedians by number of recent edits (Rank 730 as of 04-19-2011)
How to chat live
[edit]- Direct link to talk with Chzz ► – http://webchat.freenode.net/?channels=##chzz
- Direct link to the Wikipedia help channel – http://webchat.freenode.net/?channels=#wikipedia-en-help
How to create an index of my subpages
[edit]Hiya, as you've probably seen, I've taken the liberty of adding an index to your talk page, right at the top. What I've done is, created user:Joseph A. Spadaro/index, which contains a 'bit of code' to display all your subpages; then I've transcluded that page into a 'hidden section' at the top of your talk page; just click 'show' to reveal it. I hope you'll find it useful; I just noticed that you had a number of sandboxes, and thought that this might help your navigation. Of course, it's your talk page, so feel free to undo my change if you don't like it. Hope this makes sense; if you need help etc, leave me a note here, or talk to us live. Best wishes, Chzz ► 01:58, 19 April 2009 (UTC)
- Hello. Sorry for the delay in response, as I am just getting around to this item on my Talk Page. I am somewhat confused by this index that you created. Why is it that some items appear more than once (see the 7 or 8 items toward the bottom)? And why does the (alphabetical?) order seem so odd, especially for the items toward the bottom (that seem out of order)? Thanks! (Joseph A. Spadaro (talk) 00:59, 11 April 2011 (UTC))
- At the moment, User:Joseph A. Spadaro/index contains two separate transcluded special pages; one shows all pages beginning with "User:Joseph A. Spadaro/", and the other "User talk:Joseph A. Spadaro/". They does not show the prefixes; hence duplication - for example, it shows both User:Joseph A. Spadaro/Sandbox and User talk:Joseph A. Spadaro/Sandbox - which are, of course, two separate pages. The alpha order is the same issue. If you wanted, you could just edit it and remove one or the other, or put a line between them, or whatever you like. Cheers, Chzz ► 01:15, 11 April 2011 (UTC)
- Thanks. I'd rather keep them all and not remove anything. How can I edit it so that the pages that are indeed different — such as the "User" versus "User talk" example that you cite — do indeed appear different on the index? Thanks. (Joseph A. Spadaro (talk) 01:24, 11 April 2011 (UTC))
How to hide a table
[edit]I'd like to know if anyone can help with this issue. Thanks in advance. Below is a Chart / Table that is "hidden". If you click the word "[show]" that appears all the way over to the far right, this will change the hidden Table so that it is unhidden / viewable. My question is: Is there any way to "move" that Show Command? Can it be moved more to the left of the screen? Can it be moved to be immediately after the words This is a List of Notable Salutatorians? If so, how is this achieved? Or am I "stuck" with it being all the way over to the far, far right --- and, with so much blank white space in between --- risking its going unnoticed? Thanks. (Joseph A. Spadaro (talk) 08:00, 23 June 2009 (UTC))
- You can use toggle=left as a parameter to move the "Show" button to the left (I changed it below to show you how it will look). Regards SoWhy 09:14, 23 June 2009 (UTC)
- Great! That is helpful, thank you. Now, are there any other options -- other than toggle left and toggle right -- that a user has? Or just those two? And, in particular ... is it possible to make my text come out like this?
This is a List of Notable Salutatorians [ show ]. In other words, to move the "show" command to be immediately after the title instead of immediately before the title? Thanks. (Joseph A. Spadaro (talk) 14:11, 23 June 2009 (UTC))
- Great! That is helpful, thank you. Now, are there any other options -- other than toggle left and toggle right -- that a user has? Or just those two? And, in particular ... is it possible to make my text come out like this?
- Not that I'm aware of, but you can right-align the title and [show] so they will appear next to each other on the right side of the list. Take a look at Template:Hidden begin-end/doc for more. Xenon54 (talk) 16:36, 23 June 2009 (UTC)
How to shade a succession box
[edit]Let's say that I have a "succession box" such as that below. Is it possible to add different colors / shading / etc. into the box? For example ... see this article ... List of Academy Award-winning films ... that has various rows listed in blue shaded backgrounds. In that article, the blue shading comes from the use of the "computer language code" (or command or whatever it is): bgcolor="91CFF6" . Is there a way to use that similar concept in my succession box below? If so, how exactly and where exactly would I enter that color code language / command? Also ... how would I (or anyone) know that the color code bgcolor="91CFF6" stands for blue? Is there a list somewhere of what codes correspond to what colors? Thanks. (Joseph A. Spadaro (talk) 20:58, 7 June 2009 (UTC))
- The 'code' for succession box is stored in template:succession box. That might look complicated, but don't be put off.
- Like anything else, it is best to make a copy to your user area, and work on it there. I have just copied that file to User:Joseph A. Spadaro/Succession box.
- The hex number used for the colours is an HTML colour code. There are many lists; I usually refer to this website to get the numbers.
- I will edit the template a little, and demostrate a bit more below, soon. Cheers, Chzz ► 21:18, 7 June 2009 (UTC)
- Looking at that template, if I planned to work on it, I would start again - it's deprecated and old-style code. Therefore, I have made a new template, User:Joseph A. Spadaro/Succession2. This is a simple table format, same as the original - all I've done is changed the colour.
- Therefore, if I put this;
{{start box}} {{User:Joseph A. Spadaro/Succession2 | title= [[Capital punishment in Connecticut|Executions in Connecticut]] | before= [[Capital punishment in Connecticut|Frank Wojculewicz]] - 1959 | after= [[Michael Bruce Ross]] - 2005 | years= }} {{User:Joseph A. Spadaro/Succession2 | title= [[Capital punishment in the United States|Executions in the United States]] | before= [[Capital punishment in California|James Hooton]] - California | after= [[List of individuals executed in New York|Henry Flakes]] - New York | years= }} {{end box}}
- ...it comes out like this;
- Hi. I am finally getting around to this issue again. Thanks for your help above. This explanation went way over my head, as I am not technically savvy with computer codes and Wikipedia codes and the like. So, I do not understand or appreciate the purpose or function of User:Joseph A. Spadaro/Succession box or of User:Joseph A. Spadaro/Succession2. I mean, I guess that they create templates ... and then those template are "called upon" by some other code. But, I really don't understand all of that, to be honest. So, let me re-phrase my question from above.
- Let's say that I have the following computer code (from above) ... that created the "white succession boxes" ...
{{start box}} {{succession box | title= [[Capital punishment in Connecticut|Executions in Connecticut]] | before= [[Capital punishment in Connecticut|Frank Wojculewicz]] - 1959 | after= [[Michael Bruce Ross]] - 2005 | years= }} {{succession box | title= [[Capital punishment in the United States|Executions in the United States]] | before= [[Capital punishment in California|James Hooton]] - California | after= [[List of individuals executed in New York|Henry Flakes]] - New York | years= }} {{end box}}
- The output of the above code creates this:
- Question: Is there somewhere within that code (above) that I can simply type in the "color commands" (e.g., type in the phrase "background-color:#BBFFFF") ... which will turn the white succession boxes into blue ones? In other words, can I enter the color codes directly, as opposed to using the "intermediary step" of creating/calling upon the Spadaro/Succession templates? Please let me know. Thanks! (Joseph A. Spadaro (talk) 21:51, 13 April 2011 (UTC))
- Not using "succession box", no; as it says on Template:succession box, "Mostly deprecated, the succession box template ought to be used only for the simplest succession lines".
- However, I can't see anything likely to be of use in Wikipedia:WikiProject Succession Box Standardization/Guidelines - after all, being executed is hardly either a 'position' or an 'award'.
- Therefore, I think 'succession' is probably the wrong thing entirely; we're trying to "fit a square peg into a round hole"; "Succeeded by" isn't appropriate for serial killers.
- Therefore...I suggest this;
- If it's only for one article, I'd just use a table.
- If it's for several, I'd make a specific template for the purpose (unless you can find anything elsewhere).
- It might sound daunting, but it's not all that hard; we can steal the 'class' from succession-box to give the same type of style.
- Don't be put off by the code - actually adjusting things isn't too hard. So - like this;
{| class="wikitable succession-box" style="margin:0.5em auto; font-size:95%;clear:both;" |- style="text-align: center; background-color:#BB9999;" |width="30%" align="center" rowspan="1"|Previous execution<br/><span style="font-weight: bold">[[Capital punishment in Connecticut|Frank Wojculewicz]] - 1959</span> |width="40%" style="text-align: center;" rowspan="1"|'''[[Capital punishment in Connecticut|Executions in Connecticut]]''' |width="30%" align="center" rowspan="1"| Next execution<br/><span style="font-weight: bold">[[Michael Bruce Ross]] - 2005</span> |- |- style="text-align:center; background-color:green;" |width="30%" align="center" rowspan="1"|Previous execution<br/><span style="font-weight: bold">[[Capital punishment in California|James Hooton]] - California</span> |width="40%" style="text-align: center;" rowspan="1"|'''[[Capital punishment in the United States|Executions in the United States]]''' |width="30%" align="center" rowspan="1"| Next execution<br/><span style="font-weight: bold">[[List of individuals executed in New York|Henry Flakes]] - New York</span> |- |}
- ...gives...
Previous execution Frank Wojculewicz - 1959 |
Executions in Connecticut | Next execution Michael Bruce Ross - 2005 |
Previous execution James Hooton - California |
Executions in the United States | Next execution Henry Flakes - New York |
How to stack tables
[edit]- Sorting a table
I would like to know if it is possible to do what I am trying to do in the chart given below as an example. Is it possible to make this into a sortable table, so that each column can be sorted? In other words, I would like the table to be able to be sorted by the person's name as well as by their age. The problem seems to stem from using the "multi-column" (colspan) command, which somehow screws up the sorting features. I recognize that I can "undo" the multi-column spanning ... and create a Table with seven columns (superlative, name, age, name, age, name, age) ... but that would not make a particularly aesthetic or effective chart (i.e., it would be hard to read and understand). Does anyone know of a way to fix this issue, so that it can sort the way I would like? Or is there any "back door method" that can achieve this? Thanks. (Joseph A. Spadaro (talk) 22:24, 18 October 2010 (UTC))
- Yes - it's definitely possible and it's actually not too difficult. See here for details. 7 07:32, 19 October 2010 (UTC)
- Thanks, I checked that link out ... but I did not see how that addressed my problem. In fact, what I read there seems to be a direct contradiction to your above post. At that link, it says: "Do not have elements spanning several columns; instead, again, repeat the content on each row, in a short form." So, what am I missing? How is it possible to get what I want ... and what is the "not too difficult" solution? Thanks! (Joseph A. Spadaro (talk) 13:49, 19 October 2010 (UTC))
- I don't see a way to do it, but you might be able to use something like what I've done below as a start. The biggest problem I see with your request is that you want to sort by a column with no header of its own; I don't see how you could do that. You need to have a header cell to sort by. Frank | talk 17:07, 19 October 2010 (UTC)
- Note: Questions that are "difficult" (like this one), should probably not use the
{{helpme}}
tag, but rather asked at the help desk or a village pump. Killiondude (talk) 19:12, 19 October 2010 (UTC)
- Note: Questions that are "difficult" (like this one), should probably not use the
Superlative | Overall | Actor | Actress |
---|
Category | Name | Age | Name | Age | Name | Age |
---|---|---|---|---|---|---|
Oldest Nominee | Gloria Stuart | 87 | Hal Holbrook | 82 | Gloria Stuart | 87 |
Oldest Winner | Jessica Tandy | 80 | George Burns | 80 | Jessica Tandy | 80 |
Youngest Winner | Tatum O'Neal | 10 | Timothy Hutton | 20 | Tatum O'Neal | 10 |
Youngest Nominee | Justin Henry | 8 | Justin Henry | 8 | Tatum O'Neal | 10 |
(←) Apologies - I may have underestimated how "not too difficult" this was. The best kludge that I can come up with involves slapping a fake header table on the top and changing the positioning on the second table and hiding some borders. An example is below. This displays well (fairly) on my screen at 1200px wide, but I am not a table expert and I can clearly see that the alignment of the two tables gets messed up as you resize your screen downward. As suggested above, someone at the helpdesk or the village pump who is an expert in table parameters may be able to get this to stay aligned during a resize.
Example with two tables:
Superlative |
Overall | Actor | Actress |
---|
Oldest Nominee | Gloria Stuart | Age 87 | Hal Holbrook | Age 82 | Gloria Stuart | Age 87 |
Oldest Winner | Jessica Tandy | Age 80 | George Burns | Age 80 | Jessica Tandy | Age 80 |
Youngest Winner | Tatum O'Neal | Age 10 | Timothy Hutton | Age 20 | Tatum O'Neal | Age 10 |
Youngest Nominee | Justin Henry | Age 8 | Justin Henry | Age 8 | Tatum O'Neal | Age 10 |
- Did this ever work - or not what you were looking for? 7 04:03, 2 November 2010 (UTC)
- Quite some time ago (October 18, 2010), you provided me with some help on my Talk Page. The issue was about my trying to sort a Wikipedia Table by combining two tables to appear as if they were only one table. I have put that project on my "back burner" for now, as I have become preoccupied with other matters. But, I wanted to thank you for your time and assistance. And I wanted to thank you for replying to my Help request. If I have further questions in the future (when I tackle that issue once again), I may be in touch. Thanks for all of your help. Much appreciated. (Joseph A. Spadaro (talk) 20:56, 27 November 2010 (UTC))