Template:sparkline/doc

The  sparkline template  is used to display an inline photo with an optional  attached, e.g. to make a   microformat. It is commonly used to create templates for users to sign their chat-name on Etherpads or wiki pages.

Before You Start
IMPORTANT: Before you create a sparkline template, please: That will give you a better idea of what to use for your sparkline template.
 * Say hi in IndieWeb chat.
 * Add your chat name to chat-names

Blank Template
Copy, paste, fill in URL of the photo, then continue to the next section



If you want to add a class, add a  parameter: 

Parameters

 * 1
 * the URL of your photo


 * class
 * (optional) the class(es) to add to add to the  tag.

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:

 Your Display Name
 * On your wiki user page, temporarily add:
 * Replace "yourname" with your chat-name or other short form of your name
 * This is not your domain. You don’t use your domain in chat so please no "www." or ".com" etc. in your sparkline either.
 * Click the resulting link to edit the template.
 * Copy, paste, and edit with your information (note that you do not edit the word sparkline):
 * After saving the template, preview it on your wiki user page. Once it is working correctly, you can remove the template you initially added to your wiki user page

If you have any questions, ask us in the meta chat channel.

Browse other community members' templates

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. 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: ~

How to edit a sparkline
If you want to change an existing sparkline – for example, to update the user image – you can find the template at:

https://indieweb.org/Template:yourname

Replacing "yourname" with your name or chat-name that you used when creating the template, e.g. "aaronpk"

Examples
sparkline: 

Will generate:

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

Will generate: undefined