Difference between revisions of "Template:tree node/doc"
Jump to navigation
Jump to search
m |
|||
| (21 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{Msgbox|type=content|text=DO NOT USE; this template is '''experimental only'''.}} | |
| + | |||
| + | See WP's version: [https://en.wikipedia.org/wiki/Template:Tree_list Template:Tree list], [https://en.wikipedia.org/wiki/Template:Tree_list/styles.css styles.css]<br/> | ||
| + | A good example is here: {{wpl|RSA Insurance Group}}<br/> | ||
| + | A family of templates to create a properly structured and accessible tree. This can be used to display family trees, succession to thrones, etc. Comprises: | ||
| + | <pre> | ||
| + | {{Tree list}} - start | ||
| + | {{Tree list/end}} | ||
| + | {{Tree list/branching}} - end | ||
| + | and | ||
| + | </pre> | ||
| + | |||
=== Usage === | === Usage === | ||
Template for a tree entry. | Template for a tree entry. | ||
| Line 5: | Line 16: | ||
Usage examples: | Usage examples: | ||
* [[ComplEat Food Group Ltd]] | * [[ComplEat Food Group Ltd]] | ||
| − | * [[ | + | * [[Go-Ahead Group plc]] |
| + | |||
| + | Possible "li" classes: [ first | last | holdco | dormant | header | <empty>] | ||
Example: | Example: | ||
<pre> | <pre> | ||
<ul class="tree"> | <ul class="tree"> | ||
| − | <li | + | <li>{{tree node|em=Winterbotham Darby:|name=Winterbotham Darby & Co. Ltd.|sh=100%|txt=Food distribution.|ws=https://www.winterbothamdarby.com/|ch=00736901|oc=gb/00736901|png=Winterbotham-Darby-opt.svg|w=107|h=20}}</li> |
</ul> | </ul> | ||
</pre> | </pre> | ||
| Line 16: | Line 29: | ||
The parameters are: | The parameters are: | ||
<pre> | <pre> | ||
| − | + | em - puts the text in colour (optional) | |
| + | name - Company name (optional) | ||
sh - Percentage of shareholding by parent company (optional) | sh - Percentage of shareholding by parent company (optional) | ||
txt - Text (optional) | txt - Text (optional) | ||
| + | ch - Companies House registration number (optional) | ||
| + | oc - Open Corporates listing | ||
| + | hr - Handelsregister (Germany, payfor) | ||
ws - Website (optional) | ws - Website (optional) | ||
| − | |||
img - Company's logo (optional) | img - Company's logo (optional) | ||
</pre> | </pre> | ||
| Line 26: | Line 42: | ||
The example above will give: | The example above will give: | ||
<ul class="tree"> | <ul class="tree"> | ||
| − | <li class="first">{{tree node|Winterbotham Darby & Co. Ltd|sh=100%|txt=Food distribution|ws=https://www.winterbothamdarby.com/| | + | <li class="first">{{tree node|em=Winterbotham Darby: |name=Winterbotham Darby & Co. Ltd.|sh=100%|txt=Food distribution.|ch=00736901|oc=gb/00736901|ws=https://www.winterbothamdarby.com/|png=Winterbotham-Darby.svg|w=107|h=20}}</li> |
</ul> | </ul> | ||
| − | <includeonly>[[Category: | + | <includeonly>[[Category:WikiCorporates templates]]</includeonly> |
Latest revision as of 14:58, 30 May 2020
| DO NOT USE; this template is experimental only. |
See WP's version: Template:Tree list, styles.css
A good example is here: RSA Insurance Group![]()
A family of templates to create a properly structured and accessible tree. This can be used to display family trees, succession to thrones, etc. Comprises:
{{Tree list}} - start
{{Tree list/end}}
{{Tree list/branching}} - end
and
Usage
Template for a tree entry.
Usage examples:
Possible "li" classes: [ first | last | holdco | dormant | header | <empty>]
Example:
<ul class="tree">
<li>{{tree node|em=Winterbotham Darby:|name=Winterbotham Darby & Co. Ltd.|sh=100%|txt=Food distribution.|ws=https://www.winterbothamdarby.com/|ch=00736901|oc=gb/00736901|png=Winterbotham-Darby-opt.svg|w=107|h=20}}</li>
</ul>
The parameters are:
em - puts the text in colour (optional) name - Company name (optional) sh - Percentage of shareholding by parent company (optional) txt - Text (optional) ch - Companies House registration number (optional) oc - Open Corporates listing hr - Handelsregister (Germany, payfor) ws - Website (optional) img - Company's logo (optional)
The example above will give: