Modèle

Sparkline/doc

De Mi caja de notas

< Modèle:Sparkline
Révision datée du 19 juin 2016 à 02:58 par Xtof (discussion | contributions) (Page créée avec « <span class="p-summary">The '''<dfn>sparkline template</dfn>''' is used to display an inline photo with a <code>u-photo</code> microformat. It is commonly used to create t... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

The sparkline template is used to display an inline photo with a u-photo microformat. It is commonly used to create templates for users to sign their name on event RSVPs or other wiki pages.

Blank Template

Copy, paste, and fill in URL of the photo:

{{sparkline| http://example.com/profile.jpg}}

Parameters

This template accepts one unnamed parameter, which should be the URL of the photo.

How to make a small h-card template

To make a small h-card template that allows you to easily add your name, link, and photo to a wiki page:

  • On any wiki page, add {{yourname}}
  • Click the resulting link to edit the template.
  • Copy, paste, and edit with your information:
<span class="h-card">{{sparkline| http://example.com/your-profile-image.jpg}} [[User:Example.com|Your Display Name]]</span>

How to include your h-card in your wiki signature

After creating your h-card template, open the Special:Preferences page and scroll to the "Signature" section. In the "New Signature" field, add {{subst:yourname}}. Check the box for "Treat signature as wikitext (without an automatic link)" and click "Save."

You will now be able to sign your comments on the wiki with your h-card, using three tildes: ~~~

To sign with your h-card + current datetime, use four tildes: ~~~~

Examples

sparkline:

{{sparkline| http://tantek.com/logo.jpg}}

Will generate: portrait

small h-card template using sparkline: (see: Template:t)

<span class="h-card">{{sparkline|https://twitter.com/t/profile_image}}[[User:Tantek.com|Tantek Çelik]]</span>

Will generate: portrait Tantek Çelik