From Prison Architect Wiki
Jump to navigation Jump to search
Talk Archive Box Talk-Archive 
Archive 2015 / 11 (End of Alpha)


Since the infobox seems to list doors as if they are in a table won't a table be easier to implement/maintain? ~ SolSys (talk) 12:03, 19 February 2020 (UTC)

I was thinking about it and in my opinion infoboxes make it so it's easier to see where to put what. No CSS styling in the article as well, less mess. Easier to understand for other people. There's really not a big difference between using one big table or a few small ones in the article anyways.
Two other good things about infoboxes
- easier to put them into a div and link in some other places like this: [[Door#Solitary Door|Solitary Door]]
- in tables width of the column with icons is defined by the size of the biggest picture (for visualization: I resized holding cell icon - the column size has changed for all the rows. With infoboxes you don't have this issue (small but still, looks nicer). For now all the door have the same size (width of 64px) but I wanted to add support for size in the template so Road Gate and Road Barrier icons could be bigger.
I don't really see any problems with maintenance of these. Should be easier if you can modify style, change small things in one place (which is template) than going from one article to another, changing table structure one by one.
The only thing is that the template should be 100% finished before adding it to more places and that's on my todo list.BadAim (talk) 14:43, 19 February 2020 (UTC)
(Lost indent count on cell so responded here), I agree that style-wise it looks nicer, but tables have the added benefit of sorting and the linking can also be done in tables. ~ SolSys (talk) 09:31, 20 February 2020 (UTC)
Done. Table looks good. Would be nice to have a custom class with its own CSS later on but it's good the way it is anyways. The thing I noticed is broken sorting by toughness, not sure why. You might wanna take a look. I tired to remove space between the value and "HP" but that did not change anything. Fixed it. BadAim (talk)