Difference between revisions of "Template:SL-hCard"

From Second Life Wiki
Jump to navigation Jump to search
m (Added comment)
(UUID is optional, added some comments)
Line 9: Line 9:
| colspan="2" |  
| colspan="2" |  
<div class="summary">
<div class="summary">
<div style="color:#93a9d5;font-weight:bold;">Photo:</div>  
{{ #if:  {{{uuid|}}} | <div style="color:#93a9d5;font-weight:bold;">Photo:</div>  
<div style="border:1px inset #000;margin-left:0;width:{{{photo_x}}}px;">http://static.slopenid.net/img/sl-avatar/{{{mode}}}/{{{photo_x}}}/{{{photo_y}}}/{{{uuid}}}.jpg</div>
<div style="border:1px inset #000;margin-left:0;width:{{{photo_x}}}px;">http://static.slopenid.net/img/sl-avatar/{{{mode}}}/{{{photo_x}}}/{{{photo_y}}}/{{{uuid}}}.jpg</div>
| }}
<div style="color:#93a9d5;font-weight:bold;">Born:</div>
<div style="color:#93a9d5;font-weight:bold;">Born:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{rezday}}}</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{rezday}}}</div>
Line 54: Line 55:
{{User:SignpostMarv Martin/hcard}}
{{User:SignpostMarv Martin/hcard}}
The wiki-code for using the SL hCard template can be viewed on [[User:SignpostMarv Martin/hcard|my user space]] and [http://history.secondserver.net/index.php/User:SignpostMarv_Martin/hcard my user space on the SL History Wiki]  
The wiki-code for using the SL hCard template can be viewed on [[User:SignpostMarv Martin/hcard|my user space]] and [http://history.secondserver.net/index.php/User:SignpostMarv_Martin/hcard my user space on the SL History Wiki]  
Example for a code:
<pre>
{{SL-hCard|name=SL-Username
|uuid=00000000-0000-0000-0000-000000000000
|mode=size
|photo_x=200
|photo_y=200
|image=[[Image:User_USERNAME.jpg|right|thumb|50px|USERNAME]]
|rezday=01/01/2000
|rezdayISO=2000-01-01
|account=
|partner=
|about=
|achieve=
|links=
}}
</pre>
The UUID is optional. If you delete it, the corresponding part is not displayed
</noinclude>
</noinclude>

Revision as of 02:00, 10 January 2007


I (SignpostMarv Martin) quickly ported this template over from the SL History Wiki.

It's a geeky method of emulating the SL Profile and uses the hCard Microformat, and is in need of being modified to be more efficient- using the Parser functions if this wiki has them installed.

Guidelines for usage

It is suggested that SL hCard be created in your account's userspace as a separate article, purely for the convenience and flexibility to modify the hCard without affecting the edit history of an article it is included in, and also to make it easier to include the hCard in other articles as shown below.

Guidelines for modification

  • Please don't modify the code extensively if you're not familiar with MediaWiki syntax.
  • Please sign a bug with <small>discovered by ~~~~</small>
    • Similarly, please sign when a bug has been fixed by using <del>example</del> around the bug description followed by <ins>fixed by ~~~~</ins>
  • Once the bugs are fixed, it would be appreciated if the template was locked from being edited by non-admins, for the same reasons the Infobox templates are locked on the Wikipedia

Any random questions about the SL-hCard should be made on the talk page for this template, or on my talk page

Known Bugs

  1. This installation of MediaWiki seems to want to convert the closing tags on a lot of the elements to HTML entities for some reason.discovered by SignpostMarv Martin 09:25, 8 January 2007 (PST) I modified the source a bit, using divs now. Unfortunately the lists are not displayed correctly now...discovered by Anders Nordberg 05:16, 9 January 2007 (PST) fixed --Anders Nordberg 14:50, 9 January 2007 (PST)
  2. The external image URL provided the SLOpenID avatar profile photo caching service isn't displayed on this wiki, but is on the SL History Wiki.discovered by SignpostMarv Martin 09:25, 8 January 2007 (PST) External images must be allowed in the mediawiki-config. See WikiMedia-Wiki. I'll check it tomorrow at work.Anders Nordberg 08:23, 9 January 2007 (PST) With that mentioned parameter set to true it works --Anders Nordberg 23:50, 9 January 2007 (PST)

Example

Profile
SignpostMarv Martin (ArtRaged).jpg
Born:
10/08/2005
About:
Demonically Possesed Albino
Re-license Contributions
I, SignpostMarvMartin declare my intention to make all contributions I have made to this Wiki under the following licenses:
Achievements:
  • created first MegaTokyo fan group in SL, '
  • Only got suspended once (12 hours for harrasing Adam Linden)
  • Became a Second Life Mentor
  • Made two long term additions to Help Island
    • Test Track (removed to lower the physics usage in the Help Island sims)
    • Teleporter map (still there, uses instant touch-to-llSitTarget()
Links:

The wiki-code for using the SL hCard template can be viewed on my user space and my user space on the SL History Wiki

Example for a code:

{{SL-hCard|name=SL-Username
|uuid=00000000-0000-0000-0000-000000000000
|mode=size
|photo_x=200
|photo_y=200
|image=[[Image:User_USERNAME.jpg|right|thumb|50px|USERNAME]]
|rezday=01/01/2000
|rezdayISO=2000-01-01
|account=
|partner=
|about=
|achieve=
|links=
}}

The UUID is optional. If you delete it, the corresponding part is not displayed