Difference between revisions of "Template:Sw.slr"

From Second Life Wiki
Jump to navigation Jump to search
m (User:SignpostMarv Martin/Template:sw.slr moved to Template:Sw.slr: template looks finished)
m (wiki-typo)
Line 1: Line 1:
<includeonly>{{#vardefine:name|{{{2|{{{name|{{PAGENAME}}}}}}}}|}}{{#vardefine:urlname|{{#urlencode:{{#var:name}}}}}}{{#switch:{{lc:{{{1|}}}}}
<includeonly>{{#vardefine:name|{{{2|{{{name|{{PAGENAME}}}}}}}}|}}{{#vardefine:urlname|{{#urlencode:{{#var:name}}}}}}{{#switch:{{lc:{{{1|}}}}}
|region=[http://svc.sl.net.marvulous.co.uk/region/{{#var:urlname}} {{{3|{{#var:name}}}}}]
|region=[http://svc.sl.net.marvulous.co.uk/region/{{#var:urlname}} {{{3|{{#var:name}}}}}]
|place={{#ifeq:{{{3|}}}||[http://svc.sl.net.marvulous.co.uk/region/{{#var:urlname}} {{#var:name}}]|[http://svc.sl.net.marvulous.co.uk/region/{{#var:urlname}}/{{#urlencode:{{{3}}}}} {{{4|{{{3}}}, {{#var:name}}}}}]}}
|place={{#ifeq:{{{3|}}}||[http://svc.sl.net.marvulous.co.uk/region/{{#var:urlname}} {{#var:name}}]|[http://svc.sl.net.marvulous.co.uk/place/{{#var:urlname}}/{{#urlencode:{{{3}}}}} {{{4|{{{3}}}, {{#var:name}}}}}]}}
|resident={{#switch:{{lc:{{{3|}}}}}
|resident={{#switch:{{lc:{{{3|}}}}}
|mentioned=[http://svc.sl.net.marvulous.co.uk/resident/{{#var:urlname}}/mentioned/ {{{4|Picks mentioning {{#var:name}}}}}]
|mentioned=[http://svc.sl.net.marvulous.co.uk/resident/{{#var:urlname}}/mentioned/ {{{4|Picks mentioning {{#var:name}}}}}]

Revision as of 23:51, 6 March 2008

Usage

{{sw.slr|entity type|entity name|entity sub-name/url text|url text}}

Parameters

  1. entity type can be:
    • resident
    • region
    • place
  2. entity name
    • the name of a Resident
    • the name of a region
  3. entity sub-name/url text
    • if the entity type is resident or region, this parameter is optional. If supplied, is used as custom text for the link
      • if the entity type is place and no parameter is specified, the template defaults to a region entity type without custom text.
      • if the entity type is place and a parameter is specified, it specified the parcel name within the region specified ny entity name
  4. url text
    • if the entity type is place, this parameter is optional. If supplied, is used as custom text for the link
    • all other entity types ignore this parameter.

Examples