Jump to content

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

From NixOS Wiki
Layer-09 (talk | contribs)
No edit summary
Layer-09 (talk | contribs)
No edit summary
Line 2: Line 2:
<div class="nix-wiki infobox" style="
<div class="nix-wiki infobox" style="
   --infobox-color: rgb(82, 119, 195);
   --infobox-color: rgb(82, 119, 195);
   --infobox-background: #ffffff;
   --infobox-background: #f9f9f9; /* Changed to light grey */


   --infobox-border-color: var(--infobox-color);
   --infobox-border-color: var(--infobox-color);
Line 26: Line 26:
   <div class="nix-wiki infobox-header" style="
   <div class="nix-wiki infobox-header" style="
     padding: var(--infobox-content-padding);
     padding: var(--infobox-content-padding);
     text-align: center; /* Added for centering logo */
     text-align: center;
   ">
   ">
     <p class="nix-wiki infobox-title" style="
     <p class="nix-wiki infobox-title" style="
Line 35: Line 35:
       margin-top: 0;
       margin-top: 0;
     ">{{{title}}}</p>
     ">{{{title}}}</p>
     <div class="nix-wiki infobox-image">[[File:{{{image}}}|frameless|upright=0.5]]</div> <!-- Logo size adjusted here -->
     <div class="nix-wiki infobox-image">[[File:{{{image}}}|frameless|upright=0.5]]</div>
    {{#if: {{{image_caption|}}} | <p style="font-size: 85%; margin-top: 0.5em; margin-bottom: 0;">{{{image_caption}}}</p> }}
   </div>
   </div>


Line 47: Line 48:
   <div class="nix-wiki infobox-content" style="
   <div class="nix-wiki infobox-content" style="
     padding: var(--infobox-content-padding);
     padding: var(--infobox-content-padding);
     background-color: #ffffff;
     background-color: var(--infobox-background); /* Uses the light grey variable */
     text-align: left;
     text-align: left;
     font-size: var(--infobox-content-size);
     font-size: var(--infobox-content-size);
   ">
   ">
     {{#if: {{{developer|}}} | <p><span style="font-weight: bold;">Developer:</span> {{{developer}}}</p> }}
     <table style="width: 100%; border-collapse: collapse; background-color: transparent;">
    {{#if: {{{initial_release|}}} | <p><span style="font-weight: bold;">Initial release:</span> {{{initial_release}}}</p> }}
      {{#if: {{{paradigm|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Paradigm</th><td style="padding: 0.2em 0;">{{{paradigm}}}</td></tr> }}
    {{#if: {{{latest_release_version|}}} | <p><span style="font-weight: bold;">Latest version:</span> {{{latest_release_version}}}</p> }}
      {{#if: {{{family|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Family</th><td style="padding: 0.2em 0;">{{{family}}}</td></tr> }}
    {{#if: {{{latest_release_date|}}} | <p><span style="font-weight: bold;">Release date:</span> {{{latest_release_date}}}</p> }}
      {{#if: {{{designed_by|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Designed by</th><td style="padding: 0.2em 0;">{{{designed_by}}}</td></tr> }}
    {{#if: {{{programming_language|}}} | <p><span style="font-weight: bold;">Programming language:</span> {{{programming_language}}}</p> }}
      {{#if: {{{developer|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Developer</th><td style="padding: 0.2em 0;">{{{developer}}}</td></tr> }}
    {{#if: {{{operating_system|}}} | <p><span style="font-weight: bold;">Operating system:</span> {{{operating_system}}}</p> }}
      {{#if: {{{first_appeared|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">First appeared</th><td style="padding: 0.2em 0;">{{{first_appeared}}}</td></tr> }}
    {{#if: {{{license|}}} | <p><span style="font-weight: bold;">License:</span> {{{license}}}</p> }}
      {{#if: {{{stable_release|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Stable release</th><td style="padding: 0.2em 0;">{{{stable_release}}}</td></tr> }}
    {{#if: {{{footer|}}} | <p style="text-align: center; margin-top: 1em; font-size: 90%;">{{{footer}}}</p> }}
      {{#if: {{{typing_discipline|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Typing discipline</th><td style="padding: 0.2em 0;">{{{typing_discipline}}}</td></tr> }}
      {{#if: {{{scope|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Scope</th><td style="padding: 0.2em 0;">{{{scope}}}</td></tr> }}
      {{#if: {{{platform|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Platform</th><td style="padding: 0.2em 0;">{{{platform}}}</td></tr> }}
      {{#if: {{{os|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">OS</th><td style="padding: 0.2em 0;">{{{os}}}</td></tr> }}
      {{#if: {{{license|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">License</th><td style="padding: 0.2em 0;">{{{license}}}</td></tr> }}
      {{#if: {{{filename_extensions|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Filename extensions</th><td style="padding: 0.2em 0;">{{{filename_extensions}}}</td></tr> }}
      {{#if: {{{website|}}} | <tr><th style="text-align: left; vertical-align: top; width: 35%; padding: 0.2em 0; color: var(--infobox-title-color);">Website</th><td style="padding: 0.2em 0;">{{{website}}}</td></tr> }}
    </table>
   </div>
   </div>
</div>
</div>
Line 71: Line 79:
  | title                  = Emacs
  | title                  = Emacs
  | image                  = EmacsIcon.svg
  | image                  = EmacsIcon.svg
  | developer              = [[Free Software Foundation]]
| image_caption          = Emacs logo
  | initial_release        = 1976
| paradigm                = Functional, meta, reflective
  | latest_release_version  = 29.2
| family                  = Lisp
  | latest_release_date    = {{Start date and age|2024|04|12}}
| designed_by            = [[Richard Stallman]], [[Guy L. Steele, Jr.]]
  | programming_language    = [[C (programming language)|C]], [[Emacs Lisp]]
  | developer              = [[GNU Project]]
  | operating_system        = Cross-platform
  | first_appeared          = 1985; 40 years ago
  | stable_release          = 29.4 / 22 June 2024; 11 months ago
  | typing_discipline      = Dynamic, strong
| scope                  = Dynamic, optionally lexical
  | platform                = Emacs
  | os                      = Cross-platform
  | license                = [[GNU General Public License]]
  | license                = [[GNU General Public License]]
  | footer                  = [https://www.gnu.org/software/emacs gnu.org/emacs]
  | filename_extensions    = .el, .elc, .eln
| website                = [https://www.gnu.org/software/emacs gnu.org/emacs]
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 13:15, 5 June 2025


Example Usage

Paste this into a page to see the infobox:

{{User:Layer-09/Sandbox/Infobox Emacs
 | title                   = Emacs
 | image                   = EmacsIcon.svg
 | image_caption           = Emacs logo
 | paradigm                = Functional, meta, reflective
 | family                  = Lisp
 | designed_by             = [[Richard Stallman]], [[Guy L. Steele, Jr.]]
 | developer               = [[GNU Project]]
 | first_appeared          = 1985; 40 years ago
 | stable_release          = 29.4 / 22 June 2024; 11 months ago
 | typing_discipline       = Dynamic, strong
 | scope                   = Dynamic, optionally lexical
 | platform                = Emacs
 | os                      = Cross-platform
 | license                 = [[GNU General Public License]]
 | filename_extensions     = .el, .elc, .eln
 | website                 = [https://www.gnu.org/software/emacs gnu.org/emacs]
}}