Template:ProductLineCargo: Difference between revisions
Schang1146 (talk | contribs) Add infobox and fields for InProduction and ReleaseYear |
Schang1146 (talk | contribs) Fix spacing/whitespace |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the "ProductLine" template used with Cargo and the Wiki extension. | This is the "ProductLine" template used with Cargo and the Wiki extension. | ||
Line 33: | Line 32: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly>{{#cargo_store:_table=ProductLine | ||
{{#cargo_store:_table=ProductLine | |||
| ArticleType = {{{ArticleType|}}} | | ArticleType = {{{ArticleType|}}} | ||
| Category = {{{Category|}}} | | Category = {{{Category|}}} | ||
Line 40: | Line 38: | ||
| Description = {{{Description|}}} | | Description = {{{Description|}}} | ||
| InProduction = {{{InProduction|}}} | | InProduction = {{{InProduction|}}} | ||
| Logo = {{{Logo| | | Logo = {{{Logo|}}} | ||
| ReleaseYear = {{{ReleaseYear|}}} | | ReleaseYear = {{{ReleaseYear|}}} | ||
| Website = {{{Website|}}} | | Website = {{{Website|}}} | ||
}} | }}<div class="infobox"> | ||
<div class="infobox"> | |||
<div style="display: flex; gap: 8px; flex-direction: column"> | <div style="display: flex; gap: 8px; flex-direction: column"> | ||
<div class="infobox-title">{{PAGENAME}}</div> | <div class="infobox-title">{{PAGENAME}}</div> | ||
<div class="infobox-image">[[File:{{{Logo}}}|200px]]</div> | <div class="infobox-image">[[File:{{{Logo|QuestionMark.svg}}}|200px]]</div> | ||
<table class="infobox-table"> | <table class="infobox-table"> | ||
<tr> | <tr> | ||
Line 56: | Line 52: | ||
<tr> | <tr> | ||
<th>{{nowrap|Release Year}}</th> | <th>{{nowrap|Release Year}}</th> | ||
<td>{{{ReleaseYear}}}</td> | <td>{{{ReleaseYear|}}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>{{nowrap|Product Type}}</th> | <th>{{nowrap|Product Type}}</th> | ||
<td>{{{Category}}}</td> | <td>{{{Category|}}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>{{nowrap|In Production}}</th> | <th>{{nowrap|In Production}}</th> | ||
<td>{{{InProduction}}}</td> | <td>{{{InProduction|}}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>{{nowrap|Official Website}}</th> | <th>{{nowrap|Official Website}}</th> | ||
<td>{{{Website}}}</td> | <td>{{#explode:{{{Website|}}}|,|0}}</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
</div> | </div> | ||
</div> | </div></includeonly> | ||
</includeonly> |