Template:Page snippet/doc
This template will display a short description of a single Appropedia page. The template includes the page title, description, image, and selected semantic properties. Use it to display project lists on portal pages.
Examples
[edit source]Text
[edit source]{{Page snippet
| page = Global Field Ready Portfolio/Baby Crib
| type = text
| title-prefix = Global Field Ready Portfolio/
}}
Horizontal
[edit source]{{Page snippet
| page = Global Field Ready Portfolio/Baby Crib
| type = horizontal
| properties = Page location
| title-prefix = Global Field Ready Portfolio/
}}
Vertical
[edit source]{{Page snippet
| page = Global Field Ready Portfolio/Baby Crib
| type = vertical
| properties = Page location
| title-prefix = Global Field Ready Portfolio/
}}
Inline
[edit source]{{Page snippet
| page = Global Field Ready Portfolio/Baby Crib
| type = inline
| properties = Page location
| title-prefix = Global Field Ready Portfolio/
}}
Using with Semantic MediaWiki
[edit source]Use #ask with format=template to display multiple pages:
{{#ask:
[[Category:Global Field Ready Portfolio]]
[[!Global Field Ready Portfolio]]
| format = template
| template = Page snippet
| userparam = inline;Page location,SDG;Global Field Ready Portfolio/
| named args = no
| link = none
| sep =
| limit = 100
}}
The userparam values specify the display type, semantic properties, and title prefix, separated by semicolons.
Template data
[edit source]Display a page as a text snippet, an inline entry, or a card.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page | page 1 | Full title of the page to display. | Page name | required |
| Display type | type | Layout type.
| String | optional |
| Title | title | Optional custom display title. | String | optional |
| Short title | short-title | Remove the page title prefix.
| Boolean | optional |
| Title prefix | title-prefix | Title prefix to remove, including the trailing slash.
| String | optional |
| Description | description | Custom description, overriding the Page description semantic property. | String | optional |
| Show description | description-show | Whether to display a description in card and inline layouts.
| Boolean | optional |
| Show image | image | Whether to display a page image if available.
| Boolean | optional |
| Semantic properties | properties | Comma-separated semantic properties displayed as metadata chips.
| String | optional |