Hesperian Health Guides

Template:SideSupplement

Every day 20,000 people visit the HealthWiki for lifesaving health information. A gift of just $5 helps make this possible!

Make a giftMake a gift to support this essential health information people depend on.


HealthWiki > All Pages > Side Supplement Template


Usage

On a topic page
{{SideSupplement|bookabbreviation|buylink|chapterpdf|page|booktitle}}
On a chapter page
{{SideSupplement|bookabbreviation|buylink||booktitle}}

Add an image linked to external site (to locally override the default ad) {{adimage=image|adlink=link}} To disable ad image entirely, find the </ul>{{#if: enable| line in this template, and delete "enable" (add it back to re-enable).

Suppress the "Print this page" button {{notprintable=true}}


Example

Specific content page; book not for sale

{{SideSupplement|bookabbreviation|chapterpdf|notforsale=true}}

TOC page; book for sale

{{SideSupplement|bookabbreviation|chapterpdf||}}

Different copy for page

{{SideSupplement|pagealt=is from|chapterpdf||}}

Specific content page; no PDF available

{{SideSupplement|bookabbreviation|||}}

Specific content page; book title to be displayed is not the namespace

{{SideSupplement|bookabbreviation|chapterpdf|page|booktitle=Donde No Hay Doctor}}

Ad copy and link

{{SideSupplement|adimage=WikiImage.png|adcaption=Use code HEALTHWIKI at checkout |adlink=http://www.parter.org/link.html}}



This displays the fake sidebar on content pages. Includes:

  • a link to the main page (Static)
  • book cover (pass in abbreviation, pulled from stylesheet)
  • info where the content is from (from template) (by page)
  • links to
    • buy this book (generated based off the book abbreviation)
    • print/download this chapter (passed in)
    • print this page (static)
    • create your own (static)
  • link to topic page (static)

Note: on TOC pages, pass in bookurl booktitle parameter that matches the desired link/namespace.

Elsewhere (foreign language pages), use the booktitle parameter to change the display of the title "this content comes from page XX in book
{{{booktitle}}}

If you do not want to use the default "This content is from page XX from book YY", you can pass in a separate "pagealt" parameter. This content will be displayed as "This content {{pagealt}} book YY".