Template talk:Charbox/Archive 1: Difference between revisions
imported>IronClark Created page with "Could you make a template for Races, Classes and Staff/Players? Without the Powerlistings, they become very dry in information. Though the purpose of that was to appear simila..." |
Wikitext talk to Flow conversion |
||
| (16 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{Archive for converted wikitext talk page|from=Template talk:Charbox|date=2015-06-27}} | |||
Could you make a template for Races, Classes and Staff/Players? Without the Powerlistings, they become very dry in information. Though the purpose of that was to appear similar to Comic Wikis and to allow people to create different powers from them with the appropriate information.--[[User:IronClark|IronClark]] ([[User talk:IronClark|talk]]) 13:30, 4 June 2015 (EDT) | Could you make a template for Races, Classes and Staff/Players? Without the Powerlistings, they become very dry in information. Though the purpose of that was to appear similar to Comic Wikis and to allow people to create different powers from them with the appropriate information.--[[User:IronClark|IronClark]] ([[User talk:IronClark|talk]]) 13:30, 4 June 2015 (EDT) | ||
:Can you further explain what you mean? I could create another template, but I don't see how that would improve the Race or Class pages. I could created one for the Players that would basically be a simplified version of this one however. --[[User:Petertwnsnd|Petertwnsnd]] ([[User talk:Petertwnsnd|talk]]) 14:09, 4 June 2015 (EDT) | |||
::For races like [[Gemling]], It could have the first appearance, if they were hostile, their alliances, stuff like that. For Classes, well..hmmm I guess your right. I was just spit balling ideas for the templates, since I really like how it looks I thought it could be further applied. And I haven't the slightest inclination on how to make them. Good job though! --[[User:IronClark|IronClark]] ([[User talk:IronClark|talk]]) 14:15, 4 June 2015 (EDT) | |||
::: Got it. I'll make one for Mobs and monsters in just a bit. --[[User:Petertwnsnd|Petertwnsnd]] ([[User talk:Petertwnsnd|talk]]) 14:22, 4 June 2015 (EDT) | |||
== Optional Fields == | |||
Hey, I wanted to try out adding optional fields to this box, so it can be used more versatile eg. for Chimera and Gwyneth, who use BossBoxes now, and for general NPC's. I've tried to implement [https://www.mediawiki.org/wiki/Help_talk:Templates#Optional_Fields.3F this] syntax, but I couldn't make it work. Can anyone help me figure out why? I'm new to this template stuff. Also I've wondered, is it necessary to use <pre>{{!}}</pre> everywhere in this template? Wouldn't just ! suffice? Or is there a reason for that I don't comprehend? --[[User:Razorhead|Razorhead]] ([[User talk:Razorhead|talk]]) 13:37, 12 June 2015 (EDT) | |||
:At the moment I don't currently know how to make field optional or I would have implemented it already. I created this template by borrowing a similar template from a different wiki and reverse engineered it to fix our needs. I tried to get rid of as much useless/redundant code as I could, however remnants still remain that I haven't cleared out because they don't effect anything. I believe that particular part of the template was in place so they could use the <pre>|</pre> character in a text format without altering how it worked as Template:! was just a template with that character in it. --[[User:Petertwnsnd|Petertwnsnd]] ([[User talk:Petertwnsnd|talk]]) 14:40, 12 June 2015 (EDT) | |||
: I think the if's act up because of |- in the table. I think your implementation did what it was supposed to do. It doesn't hide the bolded part though. Last time I had trouble implementing if's plornt changed the table to html. Don't know if there is an alternative to that. [[User:Skydivizer|Skydivizer]] ([[User talk:Skydivizer|talk]]) 14:44, 12 June 2015 (EDT) | |||
::I did it! It works now. Your implementation was basically correct, you just forgot the {{!}} after the fieldname in the if. We can have optional fields now! --[[User:Razorhead|Razorhead]] ([[User talk:Razorhead|talk]]) 14:47, 12 June 2015 (EDT) | |||
:::Yeah I am stupid. Lol. [[User:Skydivizer|Skydivizer]] ([[User talk:Skydivizer|talk]]) 14:48, 12 June 2015 (EDT) | |||
::::Then may I suggest making Subrace, Class, Gender, Stamina, Weapons, Equipment, and Relatives all optional fields. That information is to important to take off altogether, however there are a lot of smaller characters that we either don't have that information for or is non applicable to them. --[[User:Petertwnsnd|Petertwnsnd]] ([[User talk:Petertwnsnd|talk]]) 15:25, 12 June 2015 (EDT) | |||
:::::While I think that making Weapons, Equipment and Relatives optional fields is a good idea, Gender should (for most characters) be pretty clear and Subrace, Class and Stamina are all such important fields for characters that I think "Unknown" fits better on a charbox than no such field at all. --[[User:Razorhead|Razorhead]] ([[User talk:Razorhead|talk]]) 15:37, 12 June 2015 (EDT) | |||
::::::Ok, agreed. --[[User:Petertwnsnd|Petertwnsnd]] ([[User talk:Petertwnsnd|talk]]) 15:50, 12 June 2015 (EDT) | |||
Okay, I think I've finally got this template down. This template is very weird, by the way. It requires <pre>|-</pre> to be at specific places or everything starts having having strange spaces in between. I think the format I've got it down to now has no errors anymore, so I think it should work now for the bossbox and mobbox too. By the way, when using these if's, it is very important to replace all | with <pre>{{!}}</pre> If you don't do this, the parser will interpret this as an OR and strange things will happen. So if you want to create a table inside an if, use that construction instead of |. --[[User:Razorhead|Razorhead]] ([[User talk:Razorhead|talk]]) 17:09, 12 June 2015 (EDT) | |||
:Yes, if you compare the last stable revision by petertwnsnd with my most recent one, you'll see that the only difference (apart from some changed spacing to make it more easily viewable) is the fact that the (now) optional field lines have been replaced by a construction that is consistent throughout the template. All permutations of optional fields that I've tested work, so this means I've got it working now 100%. If there's any problems, put them here and I'll look at it. --[[User:Razorhead|Razorhead]] ([[User talk:Razorhead|talk]]) 17:27, 12 June 2015 (EDT) | |||
Latest revision as of 15:05, 27 June 2015
This page is an archive. Do not edit the contents of this page. Please direct any additional comments to the current talk page.
Could you make a template for Races, Classes and Staff/Players? Without the Powerlistings, they become very dry in information. Though the purpose of that was to appear similar to Comic Wikis and to allow people to create different powers from them with the appropriate information.--IronClark (talk) 13:30, 4 June 2015 (EDT)
- Can you further explain what you mean? I could create another template, but I don't see how that would improve the Race or Class pages. I could created one for the Players that would basically be a simplified version of this one however. --Petertwnsnd (talk) 14:09, 4 June 2015 (EDT)
- For races like Gemling, It could have the first appearance, if they were hostile, their alliances, stuff like that. For Classes, well..hmmm I guess your right. I was just spit balling ideas for the templates, since I really like how it looks I thought it could be further applied. And I haven't the slightest inclination on how to make them. Good job though! --IronClark (talk) 14:15, 4 June 2015 (EDT)
- Got it. I'll make one for Mobs and monsters in just a bit. --Petertwnsnd (talk) 14:22, 4 June 2015 (EDT)
Optional Fields
Hey, I wanted to try out adding optional fields to this box, so it can be used more versatile eg. for Chimera and Gwyneth, who use BossBoxes now, and for general NPC's. I've tried to implement this syntax, but I couldn't make it work. Can anyone help me figure out why? I'm new to this template stuff. Also I've wondered, is it necessary to use
{{!}}everywhere in this template? Wouldn't just ! suffice? Or is there a reason for that I don't comprehend? --Razorhead (talk) 13:37, 12 June 2015 (EDT)
- At the moment I don't currently know how to make field optional or I would have implemented it already. I created this template by borrowing a similar template from a different wiki and reverse engineered it to fix our needs. I tried to get rid of as much useless/redundant code as I could, however remnants still remain that I haven't cleared out because they don't effect anything. I believe that particular part of the template was in place so they could use the
|
character in a text format without altering how it worked as Template:! was just a template with that character in it. --Petertwnsnd (talk) 14:40, 12 June 2015 (EDT) - I think the if's act up because of |- in the table. I think your implementation did what it was supposed to do. It doesn't hide the bolded part though. Last time I had trouble implementing if's plornt changed the table to html. Don't know if there is an alternative to that. Skydivizer (talk) 14:44, 12 June 2015 (EDT)
- I did it! It works now. Your implementation was basically correct, you just forgot the | after the fieldname in the if. We can have optional fields now! --Razorhead (talk) 14:47, 12 June 2015 (EDT)
- Yeah I am stupid. Lol. Skydivizer (talk) 14:48, 12 June 2015 (EDT)
- Then may I suggest making Subrace, Class, Gender, Stamina, Weapons, Equipment, and Relatives all optional fields. That information is to important to take off altogether, however there are a lot of smaller characters that we either don't have that information for or is non applicable to them. --Petertwnsnd (talk) 15:25, 12 June 2015 (EDT)
- While I think that making Weapons, Equipment and Relatives optional fields is a good idea, Gender should (for most characters) be pretty clear and Subrace, Class and Stamina are all such important fields for characters that I think "Unknown" fits better on a charbox than no such field at all. --Razorhead (talk) 15:37, 12 June 2015 (EDT)
- Ok, agreed. --Petertwnsnd (talk) 15:50, 12 June 2015 (EDT)
- While I think that making Weapons, Equipment and Relatives optional fields is a good idea, Gender should (for most characters) be pretty clear and Subrace, Class and Stamina are all such important fields for characters that I think "Unknown" fits better on a charbox than no such field at all. --Razorhead (talk) 15:37, 12 June 2015 (EDT)
- Then may I suggest making Subrace, Class, Gender, Stamina, Weapons, Equipment, and Relatives all optional fields. That information is to important to take off altogether, however there are a lot of smaller characters that we either don't have that information for or is non applicable to them. --Petertwnsnd (talk) 15:25, 12 June 2015 (EDT)
- Yeah I am stupid. Lol. Skydivizer (talk) 14:48, 12 June 2015 (EDT)
- I did it! It works now. Your implementation was basically correct, you just forgot the | after the fieldname in the if. We can have optional fields now! --Razorhead (talk) 14:47, 12 June 2015 (EDT)
Okay, I think I've finally got this template down. This template is very weird, by the way. It requires
|-
to be at specific places or everything starts having having strange spaces in between. I think the format I've got it down to now has no errors anymore, so I think it should work now for the bossbox and mobbox too. By the way, when using these if's, it is very important to replace all | with
{{!}}If you don't do this, the parser will interpret this as an OR and strange things will happen. So if you want to create a table inside an if, use that construction instead of |. --Razorhead (talk) 17:09, 12 June 2015 (EDT)
- Yes, if you compare the last stable revision by petertwnsnd with my most recent one, you'll see that the only difference (apart from some changed spacing to make it more easily viewable) is the fact that the (now) optional field lines have been replaced by a construction that is consistent throughout the template. All permutations of optional fields that I've tested work, so this means I've got it working now 100%. If there's any problems, put them here and I'll look at it. --Razorhead (talk) 17:27, 12 June 2015 (EDT)


