Jump to content
Onion Knight

The ASOIAF wiki thread

Recommended Posts

23 hours ago, Rhaenys_Targaryen said:

They look very good! Much better than the options/solutions we had thusfar! :D This will allow us to display up to four marriages within one family tree template at the same time, right?

I am not very familiar with CSS codes necessary to increase the possibilities in template, but perhaps you know this. Do you think it is possible to add a note box within a family tree template (like, for example, this family tree on wikipedia (ignoring that they use it to display references, :) ))? We don't use notes in family trees often, but the few times that we do, the Notes template now needs to be added to the page to display everything properly, and by having the option of having a note box within the family tree templates (which lists only the notes from within the family tree) would circumvent that.

Yep, up to four. :) If you like, it might be possible to even do six (three lines coming out of each side), though that might look a little crowded, and the name box would probably end up taller than usual.

Regarding notes, sure that's possible, with no CSS or anything, just regular wiki coding. It's the same as when we add the ref tag in a family tree, you can add the {{references}} section at the bottom while still in the included part of the template. But instead of adding ==Notes== to set it off, you'd just do '''Notes:''' or something with a table format like in that wikipedia tree you linked. And to make sure it stays separate from the other references or notes on the page that the tree might be transcluded into, you'd do <ref group="T">note</ref> and {{references|group="T"}} or something like that. You can see an example of how it could look at the top of my sandbox.

Though I'm not sure what would happen if two separate family trees with notes were included on the same page (like for ancestors and descendants), it might duplicate the notes from each tree? But I think they're rare enough that that wouldn't happen.

But if you do want to do fun things with CSS and family trees, it would be really easy to put a border around a family tree (and its notes), like in that wikipedia example, or set it off with a different color background, add that v*t*e and hide, anything you like...

Edited by Mindset

Share this post


Link to post
Share on other sites
23 minutes ago, Ran said:

@Mindset

Done and done.

Thanks so much! I noticed a tiny error though -- there's a lost semicolon after that

div { text-align: left !important; };

that was in the mobile.css before, which needs to be removed. Also, because of that !important (I'm not sure why it's there but I assume it's important ;)) there needs to be a tiny change to one line:

div.templatequotetext { margin:0 3em 0 2.5em; text-align:justify !important; font-style:italic; }

Again, thank you.

Share this post


Link to post
Share on other sites
55 minutes ago, Mindset said:

Well, the real fix is to remove the line breaks and just use <br> tags alone (so that the wikitext looks like text<br>text), which we should be doing as we adjust the sources for all the quotes anyway. But since that will take a while to find them all, I've set a div to contain the text to handle those exceptions. It'll need a small CSS change, though.

 

So instead of 

Quote

{{Quote|'''Melisandre''': Are you a good man, Davos Seaworth?<br>
'''Davos''': I am a man. I am kind to [[Marya Seaworth|my wife]], but I have known other women. I have tried to be a father to my sons, to help make them a place in this world. Aye, I've broken laws, but I never felt evil until tonight. I would say my parts are mixed, m'lady. Good and bad.<br>
'''Melisandre''': A grey man. Neither white nor black, but partaking of both.{{ref|aCoK|42}}}} – [[Melisandre]] and Davos

it would be better to this?

Quote

{{Quote|'''Melisandre''': Are you a good man, Davos Seaworth?<br>'''Davos''': I am a man. I am kind to [[Marya Seaworth|my wife]], but I have known other women. I have tried to be a father to my sons, to help make them a place in this world. Aye, I've broken laws, but I never felt evil until tonight. I would say my parts are mixed, m'lady. Good and bad.<br>'''Melisandre''': A grey man. Neither white nor black, but partaking of both.{{ref|aCoK|42}}}} – [[Melisandre]] and Davos

 

Share this post


Link to post
Share on other sites

@Nittanian, yep, or even better, like this

Quote

{{Quote|'''Melisandre''': Are you a good man, Davos Seaworth?<br>'''Davos''': I am a man. I am kind to [[Marya Seaworth|my wife]], but I have known other women. I have tried to be a father to my sons, to help make them a place in this world. Aye, I've broken laws, but I never felt evil until tonight. I would say my parts are mixed, m'lady. Good and bad.<br>'''Melisandre''': A grey man. Neither white nor black, but partaking of both.{{ref|aCoK|42}}|[[Melisandre]] and Davos}}

to get the benefits of the quote citation part of the template. But the div fix is handling exception errors like that for conversations, so it won't look messy anymore, so no big rush.

Share this post


Link to post
Share on other sites
On 5/16/2018 at 10:44 PM, Mindset said:

Yep, up to four. :) If you like, it might be possible to even do six (three lines coming out of each side), though that might look a little crowded, and the name box would probably end up taller than usual.

O, that might be an excellent idea! It would be useful for Maegor, for example, or Rohanne Webber. 

Regarding running short of letters to use as codes, there should be plenty of letters left to add those options, right? Can't we use both lower case and capital letters?

 

On 5/16/2018 at 10:44 PM, Mindset said:

Regarding notes, sure that's possible, with no CSS or anything, just regular wiki coding. It's the same as when we add the ref tag in a family tree, you can add the {{references}} section at the bottom while still in the included part of the template. But instead of adding ==Notes== to set it off, you'd just do '''Notes:''' or something with a table format like in that wikipedia tree you linked. And to make sure it stays separate from the other references or notes on the page that the tree might be transcluded into, you'd do <ref group="T">note</ref> and {{references|group="T"}} or something like that. You can see an example of how it could look at the top of my sandbox.

Though I'm not sure what would happen if two separate family trees with notes were included on the same page (like for ancestors and descendants), it might duplicate the notes from each tree? But I think they're rare enough that that wouldn't happen.

But if you do want to do fun things with CSS and family trees, it would be really easy to put a border around a family tree (and its notes), like in that wikipedia example, or set it off with a different color background, add that v*t*e and hide, anything you like...

I'll have to try it then! Thanks for the explanation! :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×