Difference between revisions of "Template:tree node"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 1: Line 1:
−
{{#if:{{{class|}}}|<li class="{{{class}}}">|<li>}}{{#if:{{{em|}}}|{{em|{{{em}}}}}}} {{{name}}}{{#if:{{{sh|}}}|&#32;({{{sh}}})}} {{#if:{{{txt|}}}| {{{txt}}}}} {{#if:{{{ch|}}}| <small>[https://beta.companieshouse.gov.uk/company/{{{ch}}} CH]</small>}} {{#if:{{{oc|}}}| <small>[https://opencorporates.com/companies/{{{oc}}} OC]</small>}} {{#if:{{{hr|}}}| <small>[https://www.unternehmen24.info/Firmeninformationen/Deutschland/Firma/{{{hr}}} HR]</small>}} {{#if:{{{ws|}}}| [{{{ws}}} website]}} {{#if:{{{img|}}}|&nbsp;&nbsp;[[File:{{{img}}}|{{{sz}}}]]}}{{#if:{{{png|}}}|{{img|{{{png}}}|{{{w}}}|{{{h}}}|float=none}}}}</li>
+
{{#if:{{{class|}}}|<li class="{{{class}}}">|<li>}}
 +
{{#if:{{{em|}}}|{{em|{{{em}}}}}}}
 +
{{{name}}}
 +
{{#if:{{{sh|}}}|&#32;({{{sh}}})}} {{#if:{{{txt|}}}| {{{txt}}}}}
 +
{{#if:{{{ch|}}}| <small>[https://beta.companieshouse.gov.uk/company/{{{ch}}} CH]</small>}}
 +
{{#if:{{{oc|}}}| <small>[https://opencorporates.com/companies/{{{oc}}} OC]</small>}}
 +
{{#if:{{{hr|}}}| <small>[https://www.unternehmen24.info/Firmeninformationen/Deutschland/Firma/{{{hr}}} HR]</small>}}
 +
{{#if:{{{ws|}}}| [{{{ws}}} website]}}
 +
{{#if:{{{img|}}}|&nbsp;&nbsp;[[File:{{{img}}}|{{{sz}}}]]}}{{#if:{{{png|}}}|{{img|{{{png}}}|{{{w}}}|{{{h}}}|float=none}}}}
 +
</li>
 
<noinclude>{{doc2}}</noinclude>
 
<noinclude>{{doc2}}</noinclude>

Revision as of 14:58, 30 August 2018

  • {{{name}}}
  • [edit] Documentation

    Ambox important.svg DO NOT USE; this template is experimental only.

    See WP's version: Template:Tree list, styles.css
    A good example is here: RSA Insurance GroupWikipedia-W.svg
    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:

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