Template:Designer: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
This is the '''Designer''' template.
This is the '''Designer''' template.


</noinclude><includeonly>
It inserts tables that list products and components designed by a specific person.
====Products====


Call it as
<pre>
{{Designer|John Doe}}
</pre>
leaving no spaces around the name.
Note: The table data comes from the ''Products'' and ''Components'' [[special:CargoTables|CargoTables]], respectively. To change the table data, please edit the respective product or component page (that page needs to use one of the linked templates listed at [[special:CargoTables]]). To force the table to be updated, it may be necessary to [https://www.mediawiki.org/wiki/Manual:Purge purge the page cache] by appending ''?action=purge'' to the URL of the page that includes this template.
</noinclude><includeonly>====Products by {{{1}}}====
<small>
{{#cargo_query:tables=Products
{{#cargo_query:tables=Products
|fields=_pageName=Model,Class,Description,Designers,Introduced
|fields=_pageName=Model,Class,Description,Designers,Introduced
|where=Designers HOLDS "{{{1}}}"
|where=Designers HOLDS "{{{1}}}"
|order by=Introduced ASC
|format=table
|format=table
}}
}}</small>
 
====Components====


====Components by {{{1}}}====
<small>
{{#cargo_query:tables=Components
{{#cargo_query:tables=Components
|fields=_pageName=Model,Class,Description,Designers,Used_in
|fields=_pageName=Model,Class,Description,Designers,Used_in
|where=Designers HOLDS "{{{1}}}"
|where=Designers HOLDS "{{{1}}}"
|format=table
|format=table
}}
}}</small></includeonly>
</includeonly>

Navigation menu