Template:SLurl

From Second Life Wiki
Revision as of 18:26, 12 January 2007 by SignpostMarv Martin (talk | contribs) (added 'display-url' option)
Jump to navigation Jump to search

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=
|}}

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.
  • display-url outputs the link as a full URL, instead of a numbered or titled link. This should be set to enabled if you intend to use it. This option forces the 'no-title' option to be ignored.
{{Slurl
|region=
|x=
|y=
|z=
|title=
|no-title=
|image=
|message=
|iframe=
|width=
|height=
|}}

Examples

Basic

{{ #ifreq: {{{display-url}}}|enabled||[}}http://slurl.com/secondlife/Ahern/18/11/20/?title=Ahern+Welcome+Area{{ #ifreq: {{{display-url}}}|enabled|| Ahern Welcome Area]}}

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

Basic, no title

{{ #ifreq: {{{display-url}}}|enabled||[}}http://slurl.com/secondlife/Ahern/18/11/20/?title=Ahern+Welcome+Area{{ #ifreq: {{{display-url}}}|enabled||]}}

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

Basic, displayed as URL

{{ #ifreq: enabled|enabled||[}}http://slurl.com/secondlife/Ahern/18/11/20/?title=Ahern+Welcome+Area{{ #ifreq: enabled|enabled|| Ahern Welcome Area]}}

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