Template talk:Family tree

From Guild Wars 2 Wiki
Jump to navigationJump to search

Better ask I guess...[edit]

As you can see Alex, I tried to create a cross connector (with the horizontal line dashed), but it didn't end up the way I intended. What is missing is the bottom solid line of the cross. I used your + as a reference. Tried to insert my own family tree "preview-sample" within the template to keep experimenting by pressing preview. But of course: the family tree sample won't update if I don't actually save the changes to the template :S

The following code is configurating the upper part of the cross, right?:

| # = {{!!}} id=numsig style="border-right: 1px solid black; border-bottom: 1px dashed black;" {{!}}<div style="width: 1em; height: 1em;"></div> {{!!}} id=numsig-pt-2 style="border-bottom: 1px dashed black;" {{!}}<div style="width: 1em; height: 1em;"></div>

Creating: 1px bottom dashed + 1px right solid + (pt2) 1px bottom dashed => (pt1)..|(pt2)..

And this is the lower part?:

| # = {{!!}} id=numsig2 style="border-right: 1px solid black; {{!}}<div style="width: 1em; height: 1em;"></div> {{!!}} id=numsig-pt-2 {{!}}<div style="width: 1em; height: 1em;"></div>

Creating: (lower part) 1 px right solid => | (which is the part I'm missing...)

Or am I just way off? Titus The Third User titus the third.png 08:41, 8 May 2014 (UTC)

you were so close! the closing quotes are important! -Chieftain AlexUser Chieftain Alex sig.png 10:41, 8 May 2014 (UTC)
Ah! :D Thanks! (so happy I was able to understand the freakin' thing ... at least some of it :P) Now, I'm going to try to figure out how to create text boxes without borders, and which spans over several columns *scratches head infernally* :P Titus The Third User titus the third.png 11:29, 8 May 2014 (UTC)
Ok, so I'm guessing that I will have to create a new parameter.
If I'm not mistaken, #default is the parameter which triggers when you enter e.g. |DORIC|. The important part here is the Is on both sides, right? Because {{#if: {{{@@@I}}} the template code tells you that you need to {{#switch: out {{{@@@}}}; and use the various lines/connectors/crosses/whatever instead.
If: you just enter {{{@@@}}} (text without the Is), you're telling the template to go for the #default parameter => which creates the textboxes with 2px border, 4px padding, etc...
That means, that I have to create a "modified" {{{@@@}}} parameter of some sort. I'm guessing @ equals random letters. So, I need to add a specific character in there that triggers my new | #noborder. Here goes:
{{#if: {{{@@@|}}}
       | {{#switch: {{{@@@}}}
          | #noborder = {{!!}} id=default colspan="6" rowspan="2" style="border:0px solid black; padding:4px; vertical-align:top; horizontal-align:left" {{!}} {{#var:{{{@@@§}}}}}
Or, I guess I might have to create a new "paragraph" to get it to work?:
{{#if: {{{@@@§}}}
 | {{#switch: {{{@@@}}}
          | #default = {{!!}} id=default colspan="6" rowspan="2" style="border:0px solid black; padding:4px; vertical-align:top; horizontal-align:left" {{!}} {{#var:{{{@@@§}}}}}
Sorry for nagging on you for support again and again. But I don't really know a thing about coding, so I'm fumbling in the dark here trying to understand what it all means. As you can see, I actually had to type my line of reasoning down - step by step - as I went through the code to teach it to myself. :P I hope I'm not too far away :) Titus The Third User titus the third.png 23:13, 8 May 2014 (UTC)
P.S. to explain better what I'm trying to do: check my sandbox. I don't want to have the different ages boxed :) Titus The Third User titus the third.png 07:14, 9 May 2014 (UTC)
implemented. -Chieftain AlexUser Chieftain Alex sig.png 10:25, 9 May 2014 (UTC)
Thanks again for your incredible support! :) I see that I was waaaay off, but I like to think I learned at least something while I tried (though failed) to find a solution. Titus The Third User titus the third.png 11:17, 9 May 2014 (UTC)
Edit: didn't learn shit. /resign. How the heck can I do the same you did with style= stuff, to colspan? (I see what you did with borders, and it makes sense, but...). What I want to do is edit the colspan on only once cell (in this particular case: the 'ages' cells). And how do you know all this stuff? :P Titus The Third User titus the third.png 19:19, 9 May 2014 (UTC)
bad luck, theres no way of easily targeting only one cell in a line xD provided that you only have one text item for the entire row, and that one is the one you're targeting, then you could just put a parameter instead of the colspan value.. brb.
like everything I do, guess and check edit on wikis for 3 years. -Chieftain AlexUser Chieftain Alex sig.png 19:26, 9 May 2014 (UTC)
I see :) Thanks again. Actually, I did think about inserting the {{{ }}} just like you did, but the different placement of the " just confused me too much. Didn't think it would behave in the same way. :P Titus The Third User titus the third.png 19:57, 9 May 2014 (UTC)

Troubleshooting[edit]

Ref. the latest troubleshooting: ; (semicolon) is NOT accepted as text input. Stored here for future reference. Thanks you Yumiko Ishida and Alex for noticing the broken Tyrian royalty tree, and restoring template to the last functional version. Titus The Third User titus the third.png 19:44, 31 October 2014 (UTC)

These text inputs also breaks Tyrian royalty family tree: ¡ (inverted exclamation mark) and ÷ (obelus). Titus The Third User titus the third.png 19:58, 31 October 2014 (UTC)
You know that you could just pick a letter to represent the option, it doesn't have to look identical to the result.. ^^ -Chieftain AlexUser Chieftain Alex sig.png 20:24, 31 October 2014 (UTC)
Nooooooo! :P Has... to be... identical... logical (yeah, I'm kinda OCD about these things :P). Haha, we'll see. Might have to use random letters later on if I need other variables. Titus The Third User titus the third.png 20:51, 31 October 2014 (UTC)
Oh, btw: does it have to be just one character per text input, or does the script accept multiple characters per input? E.g. + = normal cross, and ~!~ would become a cross with dashed horizontal. Titus The Third User titus the third.png 20:57, 31 October 2014 (UTC)
Nope, the template doesn't care. -Chieftain AlexUser Chieftain Alex sig.png 21:19, 31 October 2014 (UTC)