Template:Infobox ship characteristics/paramlineP: Difference between revisions

Jump to navigation Jump to search
en>Trappist the monk
(update to support unordered lists;)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
</noinclude>{{#ifeq:{{{val|}}}|none|{{#if:{{{WDval|}}}|[[Category:Ship infoboxes blocking Wikidata import]]}}<!--  
</noinclude>{{#ifeq:{{{val|}}}|none|{{#if:{{{WDval|}}}|[[Category:Ship infoboxes blocking Wikidata import]]}}<!--  
  -->|{{#if:{{{val|}}}<!-- either -->{{{WDval|}}}|<tr style="vertical-align:top;"><td>{{{lab|}}}</td><td><!--
  -->|{{#if:{{{val|}}}<!-- either -->{{{WDval|}}}|<tr style="vertical-align:top;"><td>{{{lab|}}}</td><td><!--
     -->{{#invoke:WPSHIPS utilities|unbulleted_list|{{#if:{{{val|}}}|{{{val|}}}<!--
     -->{{#if:{{{val|}}}|{{{val|}}}<!--
       -->|[[{{{WDval|}}}]] [[File:Wikidata-favicon.png|16px|alt=Imported from Wikidata|link={{{WDlnk|}}}]] <sup>[[Template:Infobox_ship_characteristics#Parameter_value_import_from_Wikidata|(?)]]</sup>[[Category:Ship infoboxes importing Wikidata]]}}}}</td></tr>{{#if:{{{WDpid|}}}|{{{WDpid|}}}}}}}
       -->|[[{{{WDval|}}}]] [[File:Wikidata-favicon.png|16px|alt=Imported from Wikidata|link={{{WDlnk|}}}]] <sup>[[Template:Infobox_ship_characteristics#Parameter_value_import_from_Wikidata|(?)]]</sup>[[Category:Ship infoboxes importing Wikidata]]}}</td></tr>{{#if:{{{WDpid|}}}|{{{WDpid|}}}}}}}
}}
}}

Latest revision as of 19:51, 25 February 2019

For internal use by {{Template:Infobox ship characteristics/paramline}} and possibly {{Template:Infobox ship characteristics}} itself in the future.

lab= infobox line label
val= optional value for parameter
if absent and no WDval parameter: line is not displayed
if absent and WDval parameter: Wikidata is used to provide a value
if "none": line is not displayed
WDval= optional Wikidata property value (imported using parser function {{#property:}})
WDlnk= optional link to corresponding Wikidata item page