Template:Company: Difference between revisions

From TekWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Company" template.
'''This is the "Company" template.'''
It should be called in the following format:
 
: ''If you have come here looking to edit the page for a particular company, you took a wrong turn – please do not edit this template. ''
: ''Instead, please go back to the company's page and edit that.''
 
'''It should be called in the following format:'''
<pre>
<pre>
{{Company
{{Company
Line 12: Line 16:
}}
}}
</pre>
</pre>
Edit the page to see the template text.
{{#cargo_declare:_table=Companies
{{#cargo_declare:_table=Companies
|Name=String
|Name=String
Line 21: Line 24:
|Wikidata_id=Text
|Wikidata_id=Text
}}
}}
</noinclude><includeonly>
 
{{#cargo_store:_table=Companies
<code><nowiki>Country=</nowiki></code> should be a comma-delimited list of country pages, <code><nowiki>Affiliations=</nowiki></code> a semicolon-delimited list of page names.
 
'''For a list of companies, see page [[Companies]]'''.
 
'''See [[Article templates]] for details on other templates available in TekWiki.'''
</noinclude><includeonly>__NOEDITSECTION__{{#cargo_store:_table=Companies
|Name={{{Name|}}}
|Name={{{Name|}}}
|Country={{{Country|}}}
|Country={{{Country|}}}
Line 30: Line 38:
|Wikidata_id={{{Wikidata id|}}}
|Wikidata_id={{{Wikidata id|}}}
}}
}}
'''{{{Names|}}} people'''
'''{{{Name|}}}''' {{#if: {{{Wikidata id|}}} | (&rarr; [https://wikidata.org/wiki/{{{Wikidata id|}}} WikiData]) | }}</includeonly>
{{#cargo_query:
tables=Persons
|fields=_pageName=Name,Affiliations
|where=Persons.Affiliations HOLDS "ABC"
|format=table
}}
 
'''{{{Names|}}} products'''
{{#cargo_query:
tables=Products
|fields=_pageName=Model,Class,Introduced
|where=Products.Manufacturer="{{{Names}}}"
|format=table
}}
__NOTOC__
__NOEDITSECTION__
 
[[Category:Companies]]
</includeonly>

Latest revision as of 03:05, 23 August 2023

This is the "Company" template.

If you have come here looking to edit the page for a particular company, you took a wrong turn – please do not edit this template.
Instead, please go back to the company's page and edit that.

It should be called in the following format:

{{Company
|Name=
|Country=
|City=
|Affiliations=
|Started=
|Wikidata id=
}}

This template defines the table "Companies". View table.

Country= should be a comma-delimited list of country pages, Affiliations= a semicolon-delimited list of page names.

For a list of companies, see page Companies.

See Article templates for details on other templates available in TekWiki.