Difference between revisions of "Template:Infobox ship characteristics/paramline"
Jump to navigation
Jump to search
imported>Laddo (syntax) |
imported>Jonesey95 |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
| − | For internal use by < | + | For internal use by <code><nowiki>{{Template:Infobox ship characteristics}}</nowiki></code>: |
:First parameter: infobox line label | :First parameter: infobox line label | ||
:Second parameter: optional value for parameter | :Second parameter: optional value for parameter | ||
| Line 7: | Line 7: | ||
:::::if "none": line is not displayed | :::::if "none": line is not displayed | ||
:WD= optional Wikidata property (e.g. "ship class" or "P289") | :WD= optional Wikidata property (e.g. "ship class" or "P289") | ||
| − | </noinclude> | + | </noinclude>{{Infobox ship characteristics/paramlineP |
| − | {{Infobox ship characteristics/paramlineP | ||
|lab={{{1|}}} | |lab={{{1|}}} | ||
|val={{{2|}}} | |val={{{2|}}} | ||
|WDval={{#if:{{{WD|}}}|{{#property:{{{WD|}}}}}|}} | |WDval={{#if:{{{WD|}}}|{{#property:{{{WD|}}}}}|}} | ||
| − | |WDlnk={{#if:{{{WD|}}}|{{fullurl:d:Special:ItemByTitle/enwiki/{{PAGENAME}}}}|}} | + | |WDlnk={{#if:{{{WD|}}}|{{fullurl:d:Special:ItemByTitle/enwiki/{{PAGENAME}}}}|}}<!-- |
| − | }} | + | -->}} |
Latest revision as of 18:39, 8 June 2020
For internal use by {{Template:Infobox ship characteristics}}:
- First parameter: infobox line label
- Second parameter: optional value for parameter
- if absent and no WD parameter: line is not displayed
- if absent and WD parameter: Wikidata is used to provide a value
- if "none": line is not displayed
- WD= optional Wikidata property (e.g. "ship class" or "P289")