Template:Infobox ship characteristics/paramlineP: Difference between revisions
Jump to navigation
Jump to search
old>Solm m (1 revision imported from wikipedia:Template:Infobox_ship_characteristics/paramlineP) |
en>Trappist the monk (update to support unordered lists;) |
||
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><!-- | ||
-->{{#if:{{{val|}}}|{{{val|}}}<!-- | -->{{#invoke:WPSHIPS utilities|unbulleted_list|{{#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|}}}}}}} | ||
}} | }} |
Revision as of 10:59, 3 October 2015
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