<script type="text/html" data-template-name="{{&nodeName}}">
    <div class="form-row">
        <label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
        <input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
    </div>
</script>

<script type="text/html" data-help-name="{{&nodeName}}">
    <p>Summary of the node.</p>
    <h3>Inputs</h3>
    <dl class="message-properties">
       <dt>payload<span class="property-type">object</span></dt>
       <dd>Explanation of payload.</dd>
       <dt class="optional">topic <span class="property-type">string</span></dt>
       <dd>Explanation of topic.</dd>
    </dl>
    <h3>Outputs</h3>
    <dl class="message-properties">
        <dt>payload<span class="property-type">object</span></dt>
        <dd>Explanation of payload.</dd>
        <dt class="optional">topic<span class="property-type">string</span></dt>
        <dd>Explanation of topic.</dd>
    </dl>
    <h3>Details</h3>
    <p>Explanation of the details.</p>
    <p><b>Note</b>: Note of the node.</p>
</script>

<script type="text/javascript">
    RED.nodes.registerType('{{&nodeName}}',{
        color: '{{&color}}',
        category: '{{&category}}',
        defaults: {
            name: { value: '' },
        },
        inputs:1,
        outputs: {{&outputs}},
        label: function() {
            return this.name || '{{&nodeName}}';
        },
        labelStyle: function() {
            return this.name?"node_label_italic":"";
        },
        inputLabels: {{&inputLabels}},
        outputLabels: {{&outputLabels}},
        icon: '{{&icon}}',
        align: 'left',
        info: '{{nodeInfo}}'
    });
</script>
