Template talk:Place
Jump to navigation
Jump to search
Infobox settlement
Can't get this to assign anything other than the WS special param 'wikipedia' and 'image'. Image was only made to work by separating the smw property assignments from the infobox param assignment, but the width and caption params do not work. I've spent enough time on it now to last me a while --Peter P (talk) 21:53, 10 July 2015 (IST)
- The conditional property assignments (#if) work OK when done *before* the 'settlement' template, rather than as part of a settlement template param; but only the 'settlement' param 'image' seems to display. eg in The Cenotaph 'type' and 'locations' do not show in the infobox. --Peter P (talk) 07:34, 15 July 2015 (IST)
- Yeah, the syntax is fiddly - and I think the images broke with the SMW upgrade. Its a moot point whether it would have been better to make up something from scratch, or whether grafting onto the WP infoboxes was good practice. Note that I never actually use "#set" - I've found it unreliable - so I use [[property name::example | ]] instead. Having a diversity in the mix at least means that if something breaks it, then it's less likely to break 100% and we can see which bits are still working. -- Robin (talk) 09:17, 15 July 2015 (IST)
- We need to consider whether maintaining full WP infobox compatibility going forward is worth the pain. Only about 10% (maybe less) of that settlement infobox template is likely to be applicable to WS. The 'person' one works well but a generic one or two pulled from the most applicable WP one may be the best approach. It looks to me as though defining a Lua-powered template param with a conditional statement that also assigns the property, does not work. That's why I changed both the image and coordinates assignments. Good excercise for me but not something I'm keen on getting bogged down with --Peter P (talk) 10:17, 15 July 2015 (IST)