User:Layer-09/Sandbox/Infobox Emacs: Difference between revisions
Appearance
No edit summary |
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: # | --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; | 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> < | <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: | 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|}}} | < | <table style="width: 100%; border-collapse: collapse; background-color: transparent;"> | ||
{{#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: {{{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: {{{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: {{{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: {{{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: {{{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: {{{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 = [[ | | 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]] | | license = [[GNU General Public License]] | ||
| | | 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] }}