Difference between revisions of "Template talk:Infobox/Part"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 8: Line 8:
  
 
Where is the API name set? Some parts have class and role set, but the API name won't appear, while others don't have them set, but have an API. --[[User:Dgelessus|Dgelessus]] ([[User talk:Dgelessus|talk]]) 08:26, 6 May 2013 (CDT)
 
Where is the API name set? Some parts have class and role set, but the API name won't appear, while others don't have them set, but have an API. --[[User:Dgelessus|Dgelessus]] ([[User talk:Dgelessus|talk]]) 08:26, 6 May 2013 (CDT)
 +
:When you use {{Tl|Partbox}} directly it class/role aren't set by default. While the class is optional (it will show Unknown API if not set) role isn't. Now all [[:Category:Partbox Templates|subtemplates]] are now choosing role and class for you, to make it easier to add new articles and to be consistent. So <nowiki>{{Partbox}}</nowiki> should only be used, if there aren't many parts of this type and this part doesn't have any additional values (like I<sub>sp</sub> etc.). Now the class is the API so you have to set the class to change the API but this works only for <nowiki>{{Partbox}}</nowiki>. Mind if I ask you why you want to change the class/role of a part? OR do you mean where the role/class are defined in the part.cfg? — [[User:XZise|xZise]] <small valign="middle">&#91;[[User talk:XZise|talk]]&#93;</small> 09:53, 6 May 2013 (CDT)

Revision as of 14:53, 6 May 2013

Rework

I'm working on a new version based on the {{Planetbox}} which you can find here: User:XZise/Partbox If you have any suggestions/feedback please let me know. — XZise (talk) 07:14, 23 February 2013 (CST)

Okay I now added it into this template;

Class/Role Parameter

What exactly are the class and role parameter? It looks like the role parameter is nothing specific and is simply the type of part. But class seems like a internal definition. But I can't see where the it is defined. — xZise [talk] 10:21, 16 April 2013 (CDT)

Where is the API name set? Some parts have class and role set, but the API name won't appear, while others don't have them set, but have an API. --Dgelessus (talk) 08:26, 6 May 2013 (CDT)

When you use {{Partbox}} directly it class/role aren't set by default. While the class is optional (it will show Unknown API if not set) role isn't. Now all subtemplates are now choosing role and class for you, to make it easier to add new articles and to be consistent. So {{Partbox}} should only be used, if there aren't many parts of this type and this part doesn't have any additional values (like Isp etc.). Now the class is the API so you have to set the class to change the API but this works only for {{Partbox}}. Mind if I ask you why you want to change the class/role of a part? OR do you mean where the role/class are defined in the part.cfg? — xZise [talk] 09:53, 6 May 2013 (CDT)