Difference between revisions of "Template talk:Planetbox 2.0"
From Kerbal Space Program Wiki
m |
(Template:PlanetBoxRow implements the "N/A" behavior I described.) |
||
Line 7: | Line 7: | ||
::: My thinking was that a blank argument might simply mean it was added to the template and not specified on some pages that used it -- in that case, you'd want "??" to appear (or something similar) until someone filled the information in. In other cases, fields are simply not applicable, so it seemed like using a value of "N/A" for that was the right thing to do. — [[User:Elembis|Elembis]] ([[User talk:Elembis|talk]]) 02:33, 16 October 2012 (UTC) | ::: My thinking was that a blank argument might simply mean it was added to the template and not specified on some pages that used it -- in that case, you'd want "??" to appear (or something similar) until someone filled the information in. In other cases, fields are simply not applicable, so it seemed like using a value of "N/A" for that was the right thing to do. — [[User:Elembis|Elembis]] ([[User talk:Elembis|talk]]) 02:33, 16 October 2012 (UTC) | ||
− | :::: If you could do that, that would be great. That is kind of the reason why i also put in the value: Atmosphere Present. That way you see it real quick. The reason i added atmosphere is because i see it becoming ever more important and i believe it wil occupy an ever growing role. | + | :::: If you could do that, that would be great. That is kind of the reason why i also put in the value: Atmosphere Present. That way you see it real quick. The reason i added atmosphere is because i see it becoming ever more important and i believe it wil occupy an ever growing role. {{unsigned|Azivegu}} |
+ | |||
+ | ::::: It's already done. =) Check out how [[Template:Planetbox]] uses [[Template:PlanetBoxRow]], especially down toward the end. The latter takes 3 arguments: name ("Radius"), value ("320"), and units ("km"). If the value is "N/A", the row isn't displayed. | ||
+ | ::::: By the way, you can sign a comment easily by adding "<nowiki>~~~</nowiki>" to the end of it. The wiki will turn that into a signature automatically. (Four tildes will make your signature include the date, too.) — [[User:Elembis|Elembis]] ([[User talk:Elembis|talk]]) 07:24, 16 October 2012 (UTC) |
Revision as of 07:24, 16 October 2012
Why is this a separate page? Just merge it with the old one.--Craigmt1 (talk) 20:13, 15 October 2012 (UTC)
- Agreed. I've modified the old one so that if an argument is specified as "N/A", that row won't show up. This way we can add attributes for atmospheric properties, for example, without polluting the infoboxes of celestial bodies with no atmospheres. — Elembis (talk) 02:17, 16 October 2012 (UTC)
- My thinking was that a blank argument might simply mean it was added to the template and not specified on some pages that used it -- in that case, you'd want "??" to appear (or something similar) until someone filled the information in. In other cases, fields are simply not applicable, so it seemed like using a value of "N/A" for that was the right thing to do. — Elembis (talk) 02:33, 16 October 2012 (UTC)
- If you could do that, that would be great. That is kind of the reason why i also put in the value: Atmosphere Present. That way you see it real quick. The reason i added atmosphere is because i see it becoming ever more important and i believe it wil occupy an ever growing role. — Preceding unsigned comment added by Azivegu (talk • contribs)
- It's already done. =) Check out how Template:Planetbox uses Template:PlanetBoxRow, especially down toward the end. The latter takes 3 arguments: name ("Radius"), value ("320"), and units ("km"). If the value is "N/A", the row isn't displayed.
- By the way, you can sign a comment easily by adding "~~~" to the end of it. The wiki will turn that into a signature automatically. (Four tildes will make your signature include the date, too.) — Elembis (talk) 07:24, 16 October 2012 (UTC)