User talk:Why/Sandbox/ProjectXaphan

Make a summary of some pages in an other one
Ok, this is a bit complicated to explan, but here the deal : I've created some templates used by members of my guild. There is a page for each of the characters the members have, and they have simply to complete the template's variables to complete theise pages. (it can be yes, no, or numbers). Now, i would like to know if it's possible to make a new page witch is a sort of summary of some variables present in every characters pages (in a table). So, by completing each members characters page, the summary page complete itself automaticaly.

Well, now the question ^^ : Is this even possible ? If yes, how ?

Thanks in advance ! PS : Sry for my bad english, i'm french ^^ I hope you understand it. Xaphan67 19:13, 5 March 2009 (UTC)
 * Sure, you just create a page User:Xaphan67/Templates/Instructions and have at it. It's generally easier to list the variables available for each template on that specific template page as part of Usage notes though. Example: User:Wynthyst/Template/Character, or Template:Skill infobox . It would help if I really read what you asked. Sorry, just ignore me. --[[Image:User Wynthyst sig icon.png | Wyn's Talk page]] Wyn 21:53, 5 March 2009 (UTC)
 * As far as I know, that would be nearly impossible. Nearly, but I have a few ideas that might work. Sadly I do not have time to elaborate on them now though, I would need to write a test template for that first :( I'll try to find some time tomorrow, and if I figure out how to do it, I'll drop you a message on your talk page. By the way, could you give me a link to the template you're referring to? I tried to find it but you have a really large amount of pages. &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 22:08, 5 March 2009 (UTC)
 * Xaphan, let me see if I can help you reword the request. If I hear you right, it sounds like you are wanting to make a table (i.e. a list of players in your guild and their variables) that uses an inclusion of the same data entered on a user's page into the character template so you can have an up to date table based on the user's entries instead of having to manually update the table on a regular basis?  Is that about right?  If you can find some one that can do that I'd like to know how it was done.  Elric 22:28, 5 March 2009 (UTC)
 * That's what I understood too, as I said, I have some ideas, I just need time ^^ &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 22:33, 5 March 2009 (UTC)
 * Why: Can you put the data into a page of its own with no formatting and then use it as an inclusion into the character page and the table of characters? i.e. user:example/data with the actual character being at user:example/character_example 68.96.205.187 22:40, 5 March 2009 (UTC)
 * Well, yes, you could, but making a template would probably be easier. On second thought, I doubt that's possible, actually. It would need at least a little bit of formatting, and that would make it more complicated than just filling in parameters in a template. My idea is to make a template which produces one result when used, and another when the page it is used on is included somewhere else. For instance, I'd make User:Why Are We Fighting/Templates/CharTable, fill it in on User:Why Are We Fighting/Characters/Why Are We Fighting, and include thát page in User:Why Are We Fighting/Characters. I don't know for sure if it'd work, but that's what I'm planning to do. Anyway, I'm logging off for today. Cyao.  &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 22:50, 5 March 2009 (UTC)


 * This is very possible. However, you will need to use DPL, which may not be easy for you. Backsword 22:55, 5 March 2009 (UTC)
 * The only problem I can see with that solution is that the character page will be visually large probably including things like images and tables to format the information to make it easy on the eyes when viewed as a single character page. The table is probably meant to only include the raw data for ease of viewing multiple entries/characters at a time.  I assume name, age, level, xp, or whatever variables Xaphan is planning on using.  Hence, my suggestion to put the raw data for each character into a separate page and use the data page as an inclusion in the other two pages.  ofc I don't know how to do that.  I can only point at the airplane and tell you why it flies not build one.  Some one with more technical expertise would have to know how to do the actual code building.  Elric 23:02, 5 March 2009 (UTC)
 * My first attempt failed miserably, but I'll make a template tomorrow. A simple switch function should be able to do it. The template itself'd be a bit large, but well, I'm not afraid of large templates. &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 23:07, 5 March 2009 (UTC)
 * It's not the size of the code that I was concerned with. I am more concerned with the visual size of the character page and how to include the information Xaphan wants into the table without including the rest of the character page too. Elric 23:13, 5 March 2009 (UTC)
 * DPL will only include the info you specific in the include parameter, nothing else. And now, you can't call raw data with a template. You could nest templates, and put the formating in the 'bottom' template, and change it with a switch. Very clunky way of doing things. And easy to break. Backsword 23:20, 5 March 2009 (UTC)
 * Sorry for my incorrect statement. I didn't mean that you could call the raw data.  Meant using the data in an inclusion in the two separate pages (table and character page).  That way the character page itself never changes, only the raw data page. Backsword... do you know where I can do some reading about DPL and the functions necessary to do what Xaphan is interested in?  Or is it something you should probably take a class in? Elric 23:28, 5 March 2009 (UTC)
 * Here is a manual for DPL :) - anja  [[Image:User Anja Astor sig icon.png|talk]] 23:31, 5 March 2009 (UTC)
 * Thank you Anja... I can smell my brain cells burning already and I haven't even opened the page yet. Elric 23:33, 5 March 2009 (UTC)

Okay, I played around with it, and made these three pages. They don't look like much, but in essence, that's my idea of how to do it. If you want, you can link me to your own template, and I'll implement your code in my templates, so that you can copy my code over in turn. And yea, I said I'd wait till tomorrow, I guess I'm addicted to this wiki. &mdash; Why 23:52, 5 March 2009 (UTC)
 * Yea... me too... 68.96.205.187 23:55, 5 March 2009 (UTC)

Ok, thanks all for your answers. First of all, Elric, yes that's exactly what I want to do. I will explain how the templates i've done works : For each member, there is a main page. The template for this page is here : (yes i know there is some red texts, but i think it's ok because it work). Here the code my members use : This page link to others templates for the titles barrs. I've used Yo ich halt' templates and translated thems in french.

There is also 7 pages for each characters of each member. Here are the templates and the code my member use when creating pages:

- For the titles : - For the HoM : - For elites skills and PvE skills : - For the missions and dungeons : - For vanquished areas : - For Nightfall chests : - Character info : For theses ones, i used Wynthyst' templates and translated thems in french.

Not everything is going to go in the summary page. Only informations from the missions and dungeons page, and the vanquished area page. (oh and course the name of the character, but it is in every template for each character, as well as koabd title).

I hope all of this will help you.

Why Are We Fighting, I will take a look tomorow at what you done and post here after this. Thanks in adavnce for the work you have put into this ! Xaphan67 01:24, 7 March 2009 (UTC)
 * It's me again, I've look at your work and it's seems it's what i wanted. I must try it on my template, but i have to understand how it work first. I've linked Yo ich halt and Wynthyst in the main page template (at the bottom). I can add you as well, for sure. Xaphan67 01:43, 7 March 2009 (UTC)
 * No problem, happy to help. If you have more questions feel free to ask them, I can also help with coding if you're stuck. I've also edited your post a little bit to make sure this thread remains readable ^^ &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 11:45, 7 March 2009 (UTC)
 * I've linked you :) I'm going to see how your code is working, but actually I'm completely lost with it (particulary the first page, rest I think I have understand). Xaphan67 12:55, 7 March 2009 (UTC)
 * Ok, here are a few questions about your code :


 * How the Switch function work ?
 * What your raw variable does ?
 * I've see that this variable (raw) is set to in your second page. Where did you specifie what it is ?
 * A last one : Why do you use instead of simply "|" ?

Thanks in advance ! Xaphan67 13:48, 7 March 2009 (UTC)
 * Oh and if you want, we can try to adapt a part of one of my templates to test if it work (The mission one for exemple). Then I can do the rest alone. Xaphan67 14:12, 7 March 2009 (UTC)
 * The character | has a special meaning within template code (it's used to separate arguments - i.e. ) and thus if you want the actual character instead of the special meaning, you use pipe (or ! is a shorter form) to specify the character instead. [[Image:User Aiiane-a.gif|Go to Aiiane's Talk page]] (Aiiane - talk - contribs) 08:39, 8 March 2009 (UTC)
 * Thanks you Aiiane. Still have the 3 others questions ^^ Xaphan67 10:26, 8 March 2009 (UTC)

Hey, sorry I've been a bit busy lately but I'll try to answer your questions. As Aiiane said, | basicly means |, but I cannot use | on the places I used | because it would have broken the switch function. The switch function basicly checks one parameter, in this case the one I called. If has the value no, a short description of the character will be displayed, if yes, a table with a short summary will be shown. I've set it to on the second page, because that's how you make unnamed parameters. The result is you can link to the second page like I did on the third page, without having to type the names of any parameters. I hope this helps. If it doesn't, I can post a more detailed description tomorrow. &mdash; Why 03:31, 9 March 2009 (UTC)
 * Thanks for your answer. Xaphan67 19:27, 10 March 2009 (UTC)
 * Ok i've done that : User:Xaphan67/Templates/ToShow/Missions. I wasen't able to find the way to use your code, so i make this page as an exemple of what I would like to get. If you can help me to get this, i will be very happy ^^. Thanks in advance. --The preceding unsigned comment was added by User:Xaphan67 (talk).

Hmm, so, if I'm correct, you have templates for your members' characters, and if they change something in their mission progression on that character page, you want it to change here as well automaticly? That could be done, I think. Give me a few hours to sort other stuff out and I'll try to make something. &mdash; Why 16:20, 12 March 2009 (UTC)
 * Yes, it's exactly what i would like to do. Take your time ^^ It's already very nice that you help me ^^ Xaphan67 17:09, 12 March 2009 (UTC)
 * No problem :) One question though, can I make the edits directly to your templates? I'll be careful not to break anything. &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 17:34, 12 March 2009 (UTC)
 * On second thought, your templates are more complicated than I thought; the risk of me breaking something while editing is too great. I'll create my own copies of your templates so that I do not break the pages of your guildies while editing. &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 17:50, 12 March 2009 (UTC)
 * Hum yes I think it's better to make a copy for test purposes. Xaphan67 20:12, 12 March 2009 (UTC)
 * Also, here is the template used for the navigator containing characters names : User:Xaphan67/Templates/Personnage/Nav, and here is the code used by members :


 * (Even if the code sho up to 10 chars, only 9 are useable). Xaphan67 20:21, 12 March 2009 (UTC)
 * Ok thanks :) &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 20:24, 12 March 2009 (UTC)
 * Okay, I've been playing around with your templates on my second account, User:Why, and I think I sort of succeeded. I made a few pages with your templates, and I succeeded in making a "summary page" for the missions. Check out User:Why Are We Fighting/Sandbox/ProjectXaphan/Summary/Missions, User:Why Are We Fighting/Sandbox/ProjectXaphan/Personnage/Missions, User:Why Are We Fighting/Sandbox/ProjectXaphan/Personnage/Missions/Long and User:Why Are We Fighting/Sandbox/ProjectXaphan/Personnage/Missions/Short and see if you can understand my code. &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 22:09, 12 March 2009 (UTC)
 * I've take a look, and it seems good ! I can't really look it more now because I'm at work ^^. Last thing I would like to know if it's possible, is to break it into 4 pages (this is mostly posible, just have to create 3 page and use the code) so I can do one for Tyria, one for Cantha, one for Elona, and one for Eotn. I would like to do this because I think it's going to be very complicated with lot of members (my alliance is interested to use these templates too). Also, do I need to modify my mission template if I want to have all missions in one line ? For exemple here there is the first 13 in one line (The great northen wall to Riverside province) an the others on a second line. I would like to have thems all in one line if it's doable. I think I have to change the code of my template for this. Thanks a lot already for what you have doing :) Xaphan67 12:04, 13 March 2009 (UTC)
 * Both those things sure would be possible. I'll get round to editing them, and yea one of the changes would require your mission template to be changed; I think writing a different template for that would work better though, so I'll get to that too, tomorrow. :) &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 23:55, 13 March 2009 (UTC)
 * Hey there, I'm quite behind in my wikiwork, I'll try and find some time to finish the mission templates somewhere tomorrow. Sorry! &mdash; Why [[Image:User Why s.png|User talk:Why Are We Fighting]] 02:12, 15 March 2009 (UTC)

Don't be sorry ;) It don't need to be ready right now, we have the time ! Xaphan67 00:00, 17 March 2009 (UTC)