Difference between revisions of "User:SignpostMarv Martin/Sandbox/SL-hCard"

From Second Life Wiki
Jump to navigation Jump to search
(testing if loops)
 
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="vcard hreview" style="width:25em;text-align: left; font-size: 95%;float:right;border:1px outset #000;background:#3e3e3e;color:#fff;margin-left: 1em;"
{{#if:{{{name}}}|<table class="vcard" style="width:25em;text-align: left; font-size: 95; float-right: border: 1px outset #000;background:#3e3e3e;color:#fff;margin-left:1em;">
| colspan="2" style="color:#93a9d5;font-size:140%" |Profile{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center;" >{{{image}}}</td></td>|}}
<tr><td style="color:#93a9d5;font-size:140%">Profile</td></tr>{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center;" >{{{image}}}</td></tr>|}}
|-
<tr><td class="fn" style="text-align:center;font-size:120%;font-weight: bolder; border-bottom: 1px solid #000;padding: 0.2em;">{{SL-status|{{{name}}}|}}'''{{{name}}}'''</td></tr>
| class="fn item" style="text-align:center;font-size:120%;font-weight: bolder ;border-bottom:1px solid #000;padding:0.2em;" | {{SL-status|{{{name}}}|}}'''{{{name}}}'''
<tr><td>{{#if: {{{uuid|}}} && {{{photo_x|}}} && {{{photo_y|}}}|<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/size/{{{photo_x}}}/{{{photo_y}}}/{{{uuid}}}.jpg</div>
| colspan="2" |
</td></tr>|}}{{#if: {{{rezday|}}} || {{{account|}}} || {{{partner|}}} || {{{achieve}}} || {{{links}}}|<tr><td>{{#if: {{{rezday|}}}|<div style="color:#93a9d5;font-weight:bold;">Born:</div>
<div class="summary">
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{rezday}}}</div>|}}{{#if: {{{account|}}}|<div style="color:#93a9d5;font-weight:bold;">Account:</div>
{{ #if: {{{uuid|}}} | <div style="color:#93a9d5;font-weight:bold;">Photo:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{account}}}</div>|}}{{#if:{{{parnter|}}}|<div style="color:#93a9d5;font-weight:bold;">Partner:</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;padding:0.1em;margin-left:0;">{{{partner}}}</div>|}}{{#if:{{{about|}}}|<div style="color:#93a9d5;font-weight:bold;">About:</div>
| }}
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{about}}}</div>|}}{{#if:{{{acieve|}}}|<div style="color:#93a9d5;font-weight:bold;">Achievements:</div>
<div style="color:#93a9d5;font-weight:bold;">Born:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{achieve}}}</div>|}}{{#if:{{{links|}}}|<div style="color:#93a9d5;font-weight:bold;">See Also:</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;">{{{links}}}</div>|}}</td></tr>|}}
<div style="color:#93a9d5;font-weight:bold;">Account:</div>
</table>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">{{{account}}}</div>
</includeonly>
<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="color:#93a9d5;font-weight:bold;">About:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">
{{{about}}}
</div>
<div style="color:#93a9d5;font-weight:bold;">Achievements:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">
{{{achieve}}}
</div>
<div style="color:#93a9d5;font-weight:bold;">See Also:</div>
<div style="border:1px inset #000;padding:0.1em;margin-left:0;">
{{{links}}}
</div>
</div>
|}</includeonly>
<noinclude>
<noinclude>
I ([[User:SignpostMarv Martin|SignpostMarv Martin]]) quickly ported this template over from the SL History Wiki.
{{SL-hCard
 
It's a geeky method of emulating the SL Profile and uses the [http://microformats.org/wiki/hcard 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 <small>as shown below</small>.
 
==Guidelines for modification==
*Please don't modify the code extensively if you're not familiar with MediaWiki syntax.
*Please sign a bug with <code>&lt;small&gt;discovered by <nowiki>~~~~</nowiki>&lt;/small&gt;</code>
**Similarly, please sign when a bug has been fixed by using <code>&lt;del&gt;example&lt;/del&gt;</code> around the bug description followed by <code>&lt;ins&gt;fixed by <nowiki>~~~~</nowiki>&lt;/ins&gt;</code>
*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 [[Template talk:SL-hCard|talk page for this template]], or on [[User talk:SignpostMarv Martin|my talk page]]
 
==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)
#<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==
{{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]
 
Example for a code:
<div style="font-size:140%;">
<pre>
<nowiki>
{{SL-hCard|name=SL-Username
|uuid=
|uuid=
|mode=size
|mode=size
Line 65: Line 22:
|image=
|image=
|rezday=01/01/2000
|rezday=01/01/2000
|rezdayISO=2000-01-01
|account=
|account=
|partner=
|partner=
Line 71: Line 27:
|achieve=
|achieve=
|links=
|links=
}}
}}</noinclude>
</nowiki>
</pre>
</div>
 
If you're not sure of your UUID, you can get it in-world by creating the following script:
 
<div style="font-size:140%;">
<code><pre>
default
{
state_entry()
{
llOwnerSay((string)llGetOwner());
}
}
</pre>
</code>
</div>
 
* 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>

Latest revision as of 09:20, 16 January 2007


Profile
'
Born:
01/01/2000
Account:
Partner:
About:
Achievements:
See Also: