Difference between revisions of "Template:SLurl"

From Second Life Wiki
Jump to navigation Jump to search
(added code example)
(→‎Examples: helpfull info)
Line 1: Line 1:
<includeonly>{{ #if: {{{region|}}} && {{{x|}}} && {{{y|}}} && {{{z|}}}||<strong style="color:red;">Region name as well as X, Y and Z co-ordinates are required fields.</strong>}}[http://slurl.com/secondlife/{{urlencode:{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{ #if: {{{title|}}} |?title={{urlencode:{{{title}}}}}|}}{{ #if: {{{image|}}}|?img={{urlencode:{{{image}}}}}|}}{{ #if: {{{iframe|}}}|?iframe={{urlencode:{{{iframe}}}}}|}}{{ #ifeq: {{{no-title}}}|enabled||{{ #if: {{{title|}}}|<nowiki> </nowiki>{{{title}}}|}}|}}]</includeonly><noinclude>
<includeonly>{{ #if: {{{region|}}} && {{{x|}}} && {{{y|}}} && {{{z|}}}||<strong style="color:red;">Region name as well as X, Y and Z co-ordinates are required fields.</strong>}}[http://slurl.com/secondlife/{{urlencode:{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{ #if: {{{title|}}} |?title={{urlencode:{{{title}}}}}|}}{{ #if: {{{image|}}}|?img={{urlencode:{{{image}}}}}|}}{{ #if: {{{iframe|}}}|?iframe={{urlencode:{{{iframe}}}}}|}}{{ #ifeq: {{{no-title}}}|enabled||{{ #if: {{{title|}}}|<nowiki> </nowiki>{{{title}}}|}}|}}]</includeonly><noinclude>
This template permits the easy inclusion of a '''[http://slurl.com/ SLurl]''' as a link without the need to create them manually or via ''tinyurl'' or similar external service (which is open to spamming problems)
This template permits the easy inclusion of a '''[http://slurl.com/ SLurl]''' as a link without the need to create them manually or via ''tinyurl'' or similar external service (which is open to spamming problems)
== Usage ==
'''Minimum Requirements'''
<div style="font-size:140%"><code><pre><nowiki>{{Slurl
|region=
|x=
|y=
|z=
|title=
|}}</nowiki></pre></code></div>
'''Full Options'''
All the options found in the template are as described on the [http://slurl.com/build.php SLurl Builder], with a few exceptions:
* '''Window Width'' and '''Window Height''' are referred to as '''''width''''' and '''''height''''' respectively, in order to avoid confusing conflicts with the region co-ordinates.
* '''no-title''' disables the display of the title in the wiki link. This should be set to '''''enabled''''' if you intend to use it.
<div style="font-size:140%"><code><pre><nowiki>{{Slurl
|region=
|x=
|y=
|z=
|title=
|no-title=
|image=
|message=
|iframe=
|width=
|height=
|}}</nowiki></pre></code></div>


== Examples ==
== Examples ==
Line 12: Line 44:
|title=Ahern Welcome Area
|title=Ahern Welcome Area
|}}
|}}
<div style="font-size:160%;><code><pre><nowiki>{{SLurl
<div style="font-size:140%;"><code><pre><nowiki>{{SLurl
|region=Ahern
|region=Ahern
|x=18
|x=18
Line 29: Line 61:
|no-title=enabled
|no-title=enabled
|}}
|}}
<div style="font-size:160%;"><code><pre><nowiki>
<div style="font-size:140%;"><code><pre><nowiki>
{{SLurl
{{SLurl
|region=Ahern
|region=Ahern

Revision as of 19:12, 12 January 2007

This template permits the easy inclusion of a SLurl as a link without the need to create them manually or via tinyurl or similar external service (which is open to spamming problems)

Usage

Minimum Requirements

{{Slurl
|region=
|x=
|y=
|z=
|title=
|}}

Full Options

All the options found in the template are as described on the SLurl Builder, with a few exceptions:

  • Window Width and Window Height' are referred to as width and height respectively, in order to avoid confusing conflicts with the region co-ordinates.
  • no-title disables the display of the title in the wiki link. This should be set to enabled if you intend to use it.
{{Slurl
|region=
|x=
|y=
|z=
|title=
|no-title=
|image=
|message=
|iframe=
|width=
|height=
|}}

Examples

Basic

Ahern Welcome Area

{{SLurl
|region=Ahern
|x=18
|y=11
|z=20
|}}

Basic, no title

[1]

{{SLurl
|region=Ahern
|x=18
|y=11
|z=20
|title=Ahern Welcome Area
|no-title=enabled
|}}