Difference between revisions of "Template talk:Place"

From Wikispooks
Jump to navigation Jump to search
m (params not showing)
(fiddly syntax)
Line 1: Line 1:
 
==Infobox settlement==
 
==Infobox settlement==
Can't get this to assign anything other than the WS special param 'wikipedia_page' 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  --[[User:Peter|Peter P]] ([[User talk:Peter|talk]]) 21:53, 10 July 2015 (IST)
+
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  --[[User:Peter|Peter P]] ([[User talk:Peter|talk]]) 21:53, 10 July 2015 (IST)
  
:The conditional property assignements (#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. --[[User:Peter|Peter P]] ([[User talk:Peter|talk]]) 07:34, 15 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. --[[User:Peter|Peter P]] ([[User talk:Peter|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 <nowiki>[[property&nbsp;name::example&nbsp;|&nbsp;]]</nowiki> 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. -- [[User:Robin|Robin]] ([[User talk:Robin|talk]]) 09:17, 15 July 2015 (IST)

Revision as of 08:17, 15 July 2015

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)