Template:Infobox protocol: Difference between revisions

From secondtruthLabs Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Protocol infobox template. See [[Template:Infobox protocol/doc]] for usage.
Protocol infobox template. See [[Template:Infobox protocol/doc]] for usage.
</noinclude><includeonly>{| class="infobox" style="width:22em"
</noinclude><includeonly>
|-
<table class="infobox" style="width:22em; border:1px solid #aaa; background:#f9f9f9;">
! colspan="2" style="background:#5599dd; color:white;" | {{{name|{{PAGENAME}}}}} {{#if:{{{acronym|}}}|({{{acronym}}})}}
 
{{#if:{{{logo|}}}|{{!}}-
<tr>
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{logo}}}|{{{logo_size|150px}}}]]}}
  <th colspan="2" style="background:#5599dd; color:white; padding:4px;">{{{name|{{PAGENAME}}}}} {{#if:{{{acronym|}}}|({{{acronym}}})}}</th>
|-
</tr>
! Developer
 
| {{{developer|}}}
{{#if:{{{logo|}}}|
|-
<tr>
! Status
  <td colspan="2" style="text-align:center;">
| {{{status|}}}
    [[File:{{{logo}}}|{{{logo_size|150px}}}]]
{{#if:{{{first_published|}}}| {{!}}-
  </td>
! First published
</tr>
{{!}} {{{first_published}}}}} {{#if:{{{latest_version|}}}|{{!}}-
}}
! Latest version
 
{{!}} {{{latest_version}}}}} {{#if:{{{latest_date|}}}|({{{latest_date}}})}}{{#if:{{{based_on|}}}|
<tr>
{{!}}-
  <th style="text-align:left; padding:2px 8px;">Developer</th>
! Based on
  <td>{{{developer|}}}</td>
{{!}} {{{based_on}}}
</tr>
}}{{#if:{{{transport|}}}|{{!}}-
 
! Transport
<tr>
{{!}} {{{transport}}}}}{{#if:{{{default_port|}}}|{{!}}-
  <th style="text-align:left; padding:2px 8px;">Status</th>
! Default port(s)
  <td>{{{status|}}}</td>
{{!}} {{{default_port}}}}}{{#if:{{{encoding|}}}|{{!}}-
</tr>
! Encoding
 
{{!}} {{{encoding}}}}}
{{#if:{{{first_published|}}}|
{{#if:{{{license|}}}|{{!}}-
<tr>
! License
  <th style="text-align:left; padding:2px 8px;">First published</th>
{{!}} {{{license}}}}}{{#if:{{{website|}}}|{{!}}-
  <td>{{{first_published}}}</td>
! Website
</tr>
{{!}} {{{website}}}}}{{#if:{{{spec_url|}}}|{{!}}-
}}
! Specification
 
{{!}} {{{spec_url}}}}}{{#if:{{{repository|}}}|{{!}}-
{{#if:{{{latest_version|}}}|
! Repository
<tr>
{{!}} {{{repository}}}}}
  <th style="text-align:left; padding:2px 8px;">Latest version</th>
|}</includeonly>
  <td>{{{latest_version}}}{{#if:{{{latest_date|}}}| ({{{latest_date}}})}}</td>
</tr>
}}
 
{{#if:{{{based_on|}}}|
<tr>
  <th style="text-align:left; padding:2px 8px;">Based on</th>
  <td>{{{based_on}}}</td>
</tr>
}}
 
{{#if:{{{transport|}}}|
<tr>
  <th style="text-align:left; padding:2px 8px;">Transport</th>
  <td>{{{transport}}}</td>
</tr>
}}
 
{{#if:{{{default_port|}}}|
<tr>
  <th style="text-align:left; padding:2px 8px;">Default port(s)</th>
  <td>{{{default_port}}}</td>
</tr>
}}
 
{{#if:{{{encoding|}}}|
<tr>
  <th style="text-align:left; padding:2px 8px;">Encoding</th>
  <td>{{{encoding}}}</td>
</tr>
}}
 
{{#if:{{{license|}}}|
<tr>
  <th style="text-align:left; padding:2px 8px;">License</th>
  <td>{{{license}}}</td>
</tr>
}}
 
{{#if:{{{website|}}}|
<tr>
  <th style="text-align:left; padding:2px 8px;">Website</th>
  <td>{{{website}}}</td>
</tr>
}}
 
{{#if:{{{spec_url|}}}|
<tr>
  <th style="text-align:left; padding:2px 8px;">Specification</th>
  <td>{{{spec_url}}}</td>
</tr>
}}
 
{{#if:{{{repository|}}}|
<tr>
  <th style="text-align:left; padding:2px 8px;">Repository</th>
  <td>{{{repository}}}</td>
</tr>
}}
 
</table>
</includeonly>

Latest revision as of 02:24, 1 January 2026

Protocol infobox template. See Template:Infobox protocol/doc for usage.