# Improving the SWI-Prolog OneBox

**URL:** <https://swi-prolog.discourse.group/t/improving-the-swi-prolog-onebox/2478>\
**Category:** Discourse forum Feedback\
**Created:** [June 6, 2020, 10:21am UTC](https://swi-prolog.discourse.group/t/improving-the-swi-prolog-onebox/2478 "2020-06-06T10:21:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [June 6, 2020, 10:21am UTC](https://swi-prolog.discourse.group/t/improving-the-swi-prolog-onebox/2478/1 "2020-06-06T10:21:48Z")

</div>

A [OneBox](https://meta.discourse.org/t/rich-link-previews-with-onebox/98088) converts your web links into useful preview excerpts that help inform readers about the target _before_ they click through.

So if a user on another site wanted to show the OneBox for [https://swi-prolog.discourse.group](https://swi-prolog.discourse.group) they would put the link on a line by itself, e.g.

```plaintext
Test to demonstrate a OneBox.
https://swi-prolog.discourse.group/
This is a test of a one box for SWI-Prolog

```

and it currently shows up as

![image](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/2X/7/74f9672de4f16040cc1a85ba379990afa46bed90.png)

Many [sites](https://swi-prolog.discourse.group/t/other-discourse-sites/2459) have a nice sentence that describes the site in the OneBox.

While we know what SWI-Prolog is, our OneBox should also state that.

The text for the OneBox is from the HTML meta field with `name="description"` and uses `content="SWI-Prolog forum"` for the wording.

```prolog
<html lang="en-US" class="desktop-view not-mobile-device text-size-normal">
  <head>
    <meta charset="utf-8">
    <title>SWI-Prolog - Users and developers of SWI-Prolog, an implementation of the Prolog programming language</title>
    <meta name="description" content="SWI-Prolog forum">

```

The Discourse setting for the content value can be found with  
Admin → Settings → Required → site description

* * *

Should we change it to

> SWI-Prolog offers a comprehensive free Prolog environment. Since its start in 1987, SWI-Prolog development has been driven by the needs of real world applications. SWI-Prolog is widely used in research and education as well as commercial applications.

Or something with one less sentence as that will probably get cut off.

NB I don’t know how to get a OneBox for this site on this site. To get the OneBox image above I had to use another site.
