Template:Company: Difference between revisions

From TekWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(28 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
|Names=
|Name=
|Country=
|Country=
|City=
|City=
Line 12: Line 16:
}}
}}
</pre>
</pre>
Edit the page to see the template text.
{{#cargo_declare:_table=Companies
{{#cargo_declare:_table=Companies
|Names=List (;) of String (hidden)
|Name=String
|Country=List (;) of Page
|Country=List (;) of Page
|City=String
|City=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.
|Company_names={{{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|}}}
|Country={{{Country|}}}
|Country={{{Country|}}}
|City={{{City|}}}
|City={{{City|}}}
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=Person
|fields=_pageName=Person,Affiliations
|where=Person.Affiliations HOLDS "Tektronix"
|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.