Jump to content

User:Layer-09/Sandbox/Infobox Emacs/Content: Difference between revisions

From Official NixOS Wiki
Layer-09 (talk | contribs)
No edit summary
Layer-09 (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox" style="border:1px solid #aaa; width:100%;">
<div class="nix-wiki infobox" style="
   <table cellspacing="0" cellpadding="4" style="width:100%;">
  --infobox-color: rgb(82, 119, 195);
    <tr>
  --infobox-background: #ffffff;
      <th colspan="2" style="background-color:#336699; color:#fff; font-size:120%;">
 
        {{{title}}}
  --infobox-border-color: var(--infobox-color);
      </th>
  --infobox-border-radius: 1rem;
    </tr>
   --infobox-border-size: 3px;
    <tr>
 
      <td colspan="2" style="text-align:center; padding:4px;">
  --infobox-title-color: var(--infobox-color);
        [[File:{{{image}}}|200px|center]]
  --infobox-title-size: 1rem;
      </td>
  --infobox-title-weight: bold;
    </tr>
  --infobox-title-align: center;
    <tr>
 
      <td style="font-weight:bold; width:30%;">Developer</td>
  --infobox-content-size: 90%;
      <td>{{{developer}}}</td>
  --infobox-content-padding: {{#if: {{{clip|}}} | calc(var(--infobox-border-radius) / 2) var(--infobox-border-radius) | var(--infobox-border-radius)}};
     </tr>
  --infobox-content-title-color: var(--infobox-title-color);
     <tr>
 
      <td style="font-weight:bold;">Initial release</td>
  --infobox-separator-size: {{#if: {{{clip|}}} | 10px | 0}};
      <td>{{{initial_release}}}</td>
  --infobox-separator-clip: {{#if: {{{clip|}}} | polygon(0 0, 100% 100%, 0 100%) | none}};
    </tr>
 
    <tr>
  border: solid 3px var(--infobox-color);
       <td style="font-weight:bold;">Latest release</td>
  border-radius: var(--infobox-border-radius);
       <td>Version {{{latest_release_version}}} ({{{latest_release_date}}})</td>
  overflow-y: hidden;
    </tr>
">
    <tr>
  <div class="nix-wiki infobox-header" style="
       <td style="font-weight:bold;">Programming language</td>
     padding: var(--infobox-content-padding);
      <td>{{{programming_language}}}</td>
  ">
    </tr>
     <p class="nix-wiki infobox-title" style="
     <tr>
      color: var(--infobox-title-color);
      <td style="font-weight:bold;">Operating system</td>
      font-size: var(--infobox-title-size);
      <td>{{{operating_system}}}</td>
       font-weight: var(--infobox-title-weight);
    </tr>
       text-align: var(--infobox-title-align);
    <tr>
       margin-top: 0;
      <td style="font-weight:bold;">License</td>
    ">{{{title}}}</p>
      <td>{{{license}}}</td>
     <div class="nix-wiki infobox-image">[[File:{{{image}}}]]</div>
     </tr>
  </div>
    <tr>
 
      <td colspan="2" style="text-align:center; background-color:#f0f0f0;">
  <div class="nix-wiki infobox-separator" style="
        {{{footer}}}
    height: var(--infobox-separator-size);
      </td>
    width: 100%;
    </tr>
    background-color: #ffffff;
   </table>
     clip-path: var(--infobox-separator-clip);
  "></div>
 
  <div class="nix-wiki infobox-content" style="
    padding: var(--infobox-content-padding);
    background-color: #ffffff;
    text-align: left;
    font-size: var(--infobox-content-size);
  ">
    {{{content}}}
   </div>
</div>
</div>

Latest revision as of 12:54, 5 June 2025

{{{title}}}

[[File:{{{image}}}]]
   {{{content}}}