User talk:Tbox875

From Guild Wars 2 Wiki
Jump to navigationJump to search

Hey![edit]

If you want to add a cool infobox to the right of your userpage, try using {{User infobox}}. Ssmiley happy.pngValento msg 13:40, 13 January 2015 (UTC)

Issues with STDT templates[edit]

I am having problems with the color of my STDT table on my Main characters page:
User:Tbox875/Fjörgyn Broadarrow
It's under the Story Journal expandable table. I created a page for the "Personal Story" STDT table:
User:Tbox875/template/Personal Story
It took me weeks and hours of work in a Word document to finish all the coding for it. I cannot figure out how to get the Expandable table to show a profession color based on input. I got the internal color to work fine but the main color is always grey. Since I am using it for all my characters I want it to change based on profession input.
I want it to look like all the other tables on my characters page under Story Journal. I hope I explained my dilemma correctly. I have been self taught on Wiki coding but at this point it is just frustrating me since I have tried a few things and nothing seems to work. Any help would be greatly appreciated.--Tbox875 (talk) 21:28, 3 September 2019 (UTC)

I believe the issue is that your template is using capitalized profession names but the {{STDT}} template uses lowercase profession names. I hope you don't mind me fixing/simplifying that part of the code. I've also added the missing "Profession" parameter where the template is used on the character's page. The page looks awesome btw. --BuffsEverywhere (talk) 22:43, 3 September 2019 (UTC)
Thank you, I put a lot of time into it.
It figures. I knew it was something simple. I have an mental issue with uppercase, maybe it's a disease but I tend to use capital letters on virtually everything I write or type. I am glad you were able to fix it for me. Looks perfect and now I can add this little tidbit the other STDT's that I want to complete. Best thing is that they will be nowhere near as complex.
I learned a lot of what I know from trial and error but I had a lot of help from Wynthyst on my GW1 wiki pages. She had a big heart.
Thank you again for the help.--Tbox875 (talk) 15:54, 5 September 2019 (UTC)

I have another issue that is related to the STDT expandable template.
On my main characters page Fjörgyn Broadarrow there are 4 expandable templates that go across the entire length of the bottom of the page. They are labeled: Builds, Armor, Weapons and Mounts and all four of them, once expanded, move the Show/Hide button from the far right position to the center of the page. It is more of an irritation but I have no clue how to correct it. Any help would be greatly appreciated.--Tbox875 (talk) 18:39, 6 September 2019 (UTC)

I found a way to fix it. The problem is you are having 1 outer table that only has 1 column. Once you expand the outer table by pressing "Show" it wants to display 2 inner tables that have a colspan of 4 each (if we use the Builds table as an example). This forces the outer table to "simulate" 2 columns, moving the only column heading that's present into the first column (to the left, but still centered in that column) and since there is no second column heading it also moves the hide button with it. By adding colspan=8 to the heading row it occupies all the available space and the hide/show button stays to the right.
tl;dr: Just add colspan=X to the header definition and everything else in the outer table that should stay centered, where X is the sum of the colspan of the inner tables). For example:
{| class="expandable" style="border-radius: 5px; border: 2px solid #67A833; width: 100%; text-align:center; background: #D2F6BC" cellpadding=3
! style="font-size: 100%;" colspan=8| Builds
|-
|colspan=8|<br><big>'''"THIS SECTION IS A WORK IN PROGRESS"'''</big><br>
|-

I'm really not that good in explaining things, so I hope the example helps. Almdudler (talk) 22:12, 6 September 2019 (UTC)
That worked perfectly. Thank you.
It was not to confusing but the example helped. I went ahead and fixed the other tables on the page and they all worked.
I did not use the
|colspan=8|<br><big>'''"THIS SECTION IS A WORK IN PROGRESS"'''</big><br>
|-

because it moved my caption to the right. I tried to play with the "colspan" to see if I could maybe center it but I could not get it to work. It's ok though I am satisfied with it being to the left for now. Besides once I fill in the tables I will be deleting the caption anyway. Again thank you.--Tbox875 (talk) 16:34, 9 September 2019 (UTC)