Difference between revisions of "Template:SL-hCard"

From Second Life Wiki
Jump to navigation Jump to search
m (Added comment)
(→‎Known Bugs: {{Jira|WEB-3}} is fixed)
 
(17 intermediate revisions by 6 users not shown)
Line 5: Line 5:
| colspan="2" style="text-align:center;" | {{{image}}}
| colspan="2" style="text-align:center;" | {{{image}}}
|-
|-
| class="fn item" style="text-align:center;font-size:120%;font-weight: bolder ;border-bottom:1px solid #000;padding:0.2em;" | '''{{{name}}}'''
| class="fn item" style="text-align:center;font-size:120%;font-weight: bolder ;border-bottom:1px solid #000;padding:0.2em;" | '''{{sw.slr|resident|{{{name}}}}}'''
|-
|-
| colspan="2" |  
| colspan="2" |  
<div class="summary">
<div class="summary">
<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="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|&nbsp;}}}</div>
<div style="color:#93a9d5;font-weight:bold;">Account:</div>
<div style="color:#93a9d5;font-weight:bold;">Account:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{account}}}</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{account|&nbsp;}}}</div>
<div style="color:#93a9d5;font-weight:bold;">Partner:</div>
<div style="color:#93a9d5;font-weight:bold;">Partner:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{partner}}}</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{partner|&nbsp;}}}</div>
<div style="color:#93a9d5;font-weight:bold;">About:</div>
<div style="color:#93a9d5;font-weight:bold;">About:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">
{{{about}}}
{{{about|&nbsp;}}}
</div>
</div>
<div style="color:#93a9d5;font-weight:bold;">Achievements:</div>
<div style="color:#93a9d5;font-weight:bold;">Achievements:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">
{{{achieve}}}
{{{achieve|&nbsp;}}}
</div>
</div>
<div style="color:#93a9d5;font-weight:bold;">See Also:</div>
<div style="color:#93a9d5;font-weight:bold;">See Also:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">
{{{links}}}
{{{links|&nbsp;}}}
</div>
</div>
</div>
</div>
|}</includeonly>
|}</includeonly>
<noinclude>
<noinclude>
:''Consider using [[Template:SL-hCard/2.0]] instead of this template, as it is more customisable than this template.''
I ([[User:SignpostMarv Martin|SignpostMarv Martin]]) quickly ported this template over from the SL History Wiki.
I ([[User:SignpostMarv Martin|SignpostMarv Martin]]) quickly ported this template over from the SL History Wiki.


Line 48: Line 48:


==Known Bugs==
==Known Bugs==
#<del>This installation of MediaWiki seems to want to convert the closing tags on a lot of the elements to HTML entities for some reason.<small>discovered by [[User:SignpostMarv Martin|SignpostMarv Martin]] 09:25, 8 January 2007 (PST)</small> I modified the source a bit, using divs now. Unfortunately the lists are not displayed correctly now...<small>discovered by [[User:Anders Nordberg|Anders Nordberg]] 05:16, 9 January 2007 (PST)</small></del> fixed --[[User:Anders Nordberg|Anders Nordberg]] 14:50, 9 January 2007 (PST)
# External image loading is disabled- see {{JIRA|WEB-11}}
#<del>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.<small>discovered by [[User:SignpostMarv Martin|SignpostMarv Martin]] 09:25, 8 January 2007 (PST)</small></del> External images must be allowed in the mediawiki-config. See [http://meta.wikimedia.org/wiki/Help:Images_and_other_uploaded_files#Embedding_external_images WikiMedia-Wiki]. <strike>I'll check it tomorrow at work.</strike><small>[[User:Anders Nordberg|Anders Nordberg]] 08:23, 9 January 2007 (PST)</small> With that mentioned parameter set to true it works <small>--[[User:Anders Nordberg|Anders Nordberg]] 23:50, 9 January 2007 (PST)</small>


==Example==
==Example==
{{User:SignpostMarv Martin/hcard}}
Example for a code:
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]
<div style="font-size:140%;">
<pre>
<nowiki>
{{SL-hCard|name=SL-Username
|photo_x=200
|photo_y=200
|image=
|rezday=01/01/2000
|rezdayISO=2000-01-01
|account=
|partner=
|about=
|achieve=
|links=
}}
</nowiki>
</pre>
</div>
 
If you're not sure of your UUID, you can get it in-world by creating the following script:
 
<lsl style="font-size:140%;">
default
{
state_entry()
{
llOwnerSay((string)llGetOwner());
}
}
</lsl>
 
* The UUID is optional. If you delete it, the corresponding part is not displayed.
* Please refrain from adding UUIDs to someone else's hCard
* Please refrain from using other Resident's UUIDs (even if it's an alt of yours)
</noinclude>
</noinclude>

Latest revision as of 19:56, 3 June 2008


Consider using Template:SL-hCard/2.0 instead of this template, as it is more customisable than this template.

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. External image loading is disabled- see WEB-11

Example

Example for a code:


{{SL-hCard|name=SL-Username
|photo_x=200
|photo_y=200
|image=
|rezday=01/01/2000
|rezdayISO=2000-01-01
|account=
|partner=
|about=
|achieve=
|links=
}}

If you're not sure of your UUID, you can get it in-world by creating the following script:

<lsl style="font-size:140%;"> default { state_entry() { llOwnerSay((string)llGetOwner()); } } </lsl>

  • The UUID is optional. If you delete it, the corresponding part is not displayed.
  • Please refrain from adding UUIDs to someone else's hCard
  • Please refrain from using other Resident's UUIDs (even if it's an alt of yours)