Difference between revisions of "Template:tree node/doc"

From WikiCorporates
Jump to navigation Jump to search
m (→‎Usage)
m (→‎Usage)
Line 10: Line 10:
 
<pre>
 
<pre>
 
<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/|ch=00736901|oc=gb/00736901|png=Winterbotham-Darby-opt.svg|w=107|h=20}}</li>
+
{{tree node|class=first|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 16:
 
The parameters are:
 
The parameters are:
 
<pre>
 
<pre>
−
{{{1}}} - Company name
+
class  - Choices: [ first | last | holdco | dormant | header ]
 +
em      - puts the text in colour
 +
name    - Company name
 
sh      - Percentage of shareholding by parent company (optional)
 
sh      - Percentage of shareholding by parent company (optional)
 
txt    - Text (optional)
 
txt    - Text (optional)
−
ws      - Website (optional)
 
 
ch      - Companies House registration number (optional)
 
ch      - Companies House registration number (optional)
 
oc      - Open Corporates listing
 
oc      - Open Corporates listing
 
hr      - Handelsregister (Germany, payfor)
 
hr      - Handelsregister (Germany, payfor)
 +
ws      - Website (optional)
 
img    - Company's logo (optional)
 
img    - Company's logo (optional)
 
</pre>
 
</pre>
Line 28: Line 30:
 
The example above will give:
 
The example above will give:
 
<ul class="tree">
 
<ul class="tree">
−
{{tree node|class=first|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}}
+
{{tree node|class=first|em=Winterbotham Darby:&#32;|name=Winterbotham Darby & Co. Ltd.|sh=100%|txt=Food distribution.|ch=00736901|oc=gb/00736901|ws=https://www.winterbothamdarby.com/|png=Winterbotham-Darby-opt.svg|w=107|h=20}}
−
</ul>
 
−
 
 
−
<p>&nbsp;</p>
 
−
<ul class="tree">
 
−
<li class="first">Some text in here.</li>
 
 
</ul>
 
</ul>
−
 
  
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>

Revision as of 14:37, 30 August 2018

<< Template:tree node

Usage

Template for a tree entry.

Usage examples:

Example:

<ul class="tree">
{{tree node|class=first|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:

class   - Choices: [ first | last | holdco | dormant | header ]
em      - puts the text in colour
name    - Company name
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:

    Winterbotham Darby & Co. Ltd. Winterbotham Darby: (100%) Food distribution. CH OC website