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 1: Line 1:
<includeonly>
<includeonly>
{{User:Layer-09/Sandbox/Infobox Emacs/Content
{{User:Layer-09/Sandbox/Infobox Emacs/Content
   |clip                   = {{{clip|}}}
   | clip   = {{{clip|}}}
   |title                 = {{{title|}}}
   | title   = {{{title|}}}
   |image                 = {{{image|}}}
   | image   = {{{image|}}}
   |developer              = {{{developer|}}}
   | content = {{{content|}}}
  |initial_release        = {{{initial_release|}}}
   | footer = {{{footer|}}}
  |latest_release_version = {{{latest_release_version|}}}
  |latest_release_date    = {{{latest_release_date|}}}
  |programming_language  = {{{programming_language|}}}
  |operating_system      = {{{operating_system|}}}
  |license                = {{{license|}}}
   |footer                 = {{{footer|}}}
}}
}}
</includeonly>
</includeonly>
<noinclude>
<!--
  This is the demo/documentation block.  It does NOT appear when another
  page calls {{User:Layer-09/Sandbox/Infobox Emacs|…}}.
-->


<noinclude>
== Usage Example ==
== Example Usage ==
Paste this on any article (e.g. “Emacs”):
Paste this into a page to see the infobox:


<pre>
<pre>
{{User:Layer-09/Sandbox/Infobox Emacs
{{User:Layer-09/Sandbox/Infobox Emacs
  | title                   = Emacs
| clip    = 1
  | image                   = EmacsIcon.svg
  | title   = Emacs
  | developer              = [[Free Software Foundation]]
  | image   = EmacsIcon.svg
| initial_release        = 1976
  | content =  
| latest_release_version  = 29.2
  <!-- replace this <ul>…</ul> with whatever HTML/wikitext content you need -->
| latest_release_date    = {{Start date and age|2024|04|12}}
  <ul>
| programming_language    = [[C (programming language)|C]], [[Emacs Lisp]]
    <li>Developer: [[Free Software Foundation]]</li>
| operating_system        = Cross-platform
    <li>Initial release: 1976</li>
| license                = [[GNU General Public License]]
    <li>Latest release: 29.2 (April 12 2024)</li>
  | footer                 = [https://www.gnu.org/software/emacs gnu.org/emacs]
    <li>Written in: C, Emacs Lisp</li>
    <li>OS: Cross‑platform</li>
    <li>License: [[GNU General Public License]]</li>
  </ul>
  | footer = [https://www.gnu.org/software/emacs gnu.org/emacs]
}}
}}
</pre>
</pre>
*Notes:* 
1. The `clip` parameter controls whether the “slanted” separator appears (`clip` nonempty → clipped; blank/omitted → straight). 
2. Everything inside `<includeonly>…</includeonly>` is what actually gets transcluded; the `<noinclude>` block here is only visible if you open this page directly.
</noinclude>
</noinclude>

Revision as of 12:32, 5 June 2025


Usage Example

Paste this on any article (e.g. “Emacs”):

{{User:Layer-09/Sandbox/Infobox Emacs
 | clip    = 1
 | title   = Emacs
 | image   = EmacsIcon.svg
 | content = 
   <!-- replace this <ul>…</ul> with whatever HTML/wikitext content you need -->
   <ul>
     <li>Developer: [[Free Software Foundation]]</li>
     <li>Initial release: 1976</li>
     <li>Latest release: 29.2 (April 12 2024)</li>
     <li>Written in: C, Emacs Lisp</li>
     <li>OS: Cross‑platform</li>
     <li>License: [[GNU General Public License]]</li>
   </ul>
 | footer  = [https://www.gnu.org/software/emacs gnu.org/emacs]
}}
  • Notes:*

1. The `clip` parameter controls whether the “slanted” separator appears (`clip` nonempty → clipped; blank/omitted → straight). 2. Everything inside `` is what actually gets transcluded; the `` block here is only visible if you open this page directly.