Difference between revisions of "Template:SLurl"
Jump to navigation
Jump to search
(revert. Will read documentation closely to figure this out.) |
m (fixed a bug) |
||
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>}}{{ #ifeq: {{{display-url}}}|enabled||[}}http://slurl.com/secondlife/{{urlencode:{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{ #if: {{{width|}}} | | <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>}}{{ #ifeq: {{{display-url}}}|enabled||[}}http://slurl.com/secondlife/?{{urlencode:{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{ #if: {{{width|}}} |&x={{{width}}}|}}{{ #if: {{{height|}}} |&y={{{height}}}|}}{{ #if: {{{title|}}} |&title={{urlencode:{{{title}}}}}|}}{{ #if: {{{image|}}}|&img={{urlencode:{{{image}}}}}|}}{{ #if: {{{message|}}} |&message={{urlencode:{{{message}}}}}|}}{{ #if: {{{iframe|}}}|&iframe={{urlencode:{{{iframe}}}}}|}}{{ #ifeq: {{{display-url}}}|enabled||{{ #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) | ||
Line 5: | Line 5: | ||
'''Minimum Requirements''' | '''Minimum Requirements''' | ||
<div style="font-size:140%"><code><pre><nowiki>{{ | <div style="font-size:140%"><code><pre><nowiki>{{SLurl | ||
|region= | |region= | ||
|x= | |x= | ||
Line 20: | Line 20: | ||
* '''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. | * '''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. | ||
<div style="font-size:140%"><code><pre><nowiki>{{ | <div style="font-size:140%"><code><pre><nowiki>{{SLurl | ||
|region= | |region= | ||
|x= | |x= |
Revision as of 17:46, 18 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=
|}}
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
{{SLurl
|region=Ahern
|x=18
|y=11
|z=20
|title=Ahern Welcome Area
|}}
Basic, no title
{{SLurl
|region=Ahern
|x=18
|y=11
|z=20
|title=Ahern Welcome Area
|no-title=enabled
|}}
Basic, displayed as URL
http://slurl.com/secondlife/?Ahern/18/11/20/&title=Ahern+Welcome+Area
{{SLurl
|region=Ahern
|x=18
|y=11
|z=20
|title=Ahern Welcome Area
|display-url=enabled
|}}