# Display

The [Display metadata view](https://github.com/onflow/flow-nft/blob/461524168b50d015fffec23f33bba5adabdbe791/contracts/MetadataViews.cdc#L94) tells Flowty how to show an NFT. Display provides specifications for NFT cards, asset detail pages, and activity pages.&#x20;

NFT cards make use of **name** and **thumbnail** from the Display view:

<figure><img src="/files/5ylKQAMwiB9oanJ4kMqe" alt=""><figcaption><p>Example NFT card (<a href="https://github.com/Flowtyio/avataaars">Avataaars</a>)</p></figcaption></figure>

{% tabs %}
{% tab title="Sample" %}

```
pub resource NFT: NonFungibleToken.INFT, MetadataViews.Resolver {
    // ...

    pub fun resolveView(_ view: Type): AnyStruct? {
        switch view {
            case Type<MetadataViews.Display>():
                return MetadataViews.Display(
                    name: "Avataaars #".concat(self.id.toString()),
                    description: "This is a procedurally generated avatar! You can learn more about it here: https://avataaars.com/",
                    thumbnail: MetadataViews.HTTPFile(
                        url: Avataaars.imageBaseURL.concat(self.id.toString())
                    )
                )
            // truncated other metadata views...
    
        }
        return nil
    }
    
    // ...
}
```

{% endtab %}

{% tab title="Definition" %}

```
/// Display is a basic view that includes the name, description and
/// thumbnail for an object. Most objects should implement this view.
///
pub struct Display {

    /// The name of the object.
    ///
    /// This field will be displayed in lists and therefore should
    /// be short an concise.
    ///
    pub let name: String

    /// A written description of the object.
    ///
    /// This field will be displayed in a detailed view of the object,
    /// so can be more verbose (e.g. a paragraph instead of a single line).
    ///
    pub let description: String

    /// A small thumbnail representation of the object.
    ///
    /// This field should be a web-friendly file (i.e JPEG, PNG)
    /// that can be displayed in lists, link previews, etc.
    ///
    pub let thumbnail: AnyStruct{File}

    // init truncated
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flowty.io/developer-docs/nft-metadata-standard/display.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
