Jump to content

Template:Page snippet/doc

From Appropedia

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]
{{Page snippet
| page = Global Field Ready Portfolio/Baby Crib
| type = text
| title-prefix = Global Field Ready Portfolio/
}}
Baby Crib: Provides a safe area for a baby to sleep

Horizontal

[edit source]
{{Page snippet
| page = Global Field Ready Portfolio/Baby Crib
| type = horizontal
| properties = Page location
| title-prefix = Global Field Ready Portfolio/
}}
Provides a safe area for a baby to sleep
Colombia

Vertical

[edit source]
{{Page snippet
| page = Global Field Ready Portfolio/Baby Crib
| type = vertical
| properties = Page location
| title-prefix = Global Field Ready Portfolio/
}}
Provides a safe area for a baby to sleep
Colombia

Inline

[edit source]
{{Page snippet
| page = Global Field Ready Portfolio/Baby Crib
| type = inline
| properties = Page location
| title-prefix = Global Field Ready Portfolio/
}}
Baby Crib: Provides a safe area for a baby to sleep
Colombia

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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Pagepage 1

Full title of the page to display.

Page namerequired
Display typetype

Layout type.

Suggested values
text inline horizontal vertical
Default
text
Stringoptional
Titletitle

Optional custom display title.

Stringoptional
Short titleshort-title

Remove the page title prefix.

Default
yes
Booleanoptional
Title prefixtitle-prefix

Title prefix to remove, including the trailing slash.

Example
Global Field Ready Portfolio/
Stringoptional
Descriptiondescription

Custom description, overriding the Page description semantic property.

Stringoptional
Show descriptiondescription-show

Whether to display a description in card and inline layouts.

Default
yes
Booleanoptional
Show imageimage

Whether to display a page image if available.

Default
yes
Booleanoptional
Semantic propertiesproperties

Comma-separated semantic properties displayed as metadata chips.

Example
Page location,SDG
Stringoptional

See also

[edit source]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.