Difference between revisions of "Template:Sw.slr"

From Second Life Wiki
Jump to navigation Jump to search
m (wiki-fu)
m (overly technical usage manual)
Line 9: Line 9:
|<strong style="color:red;">No Input</strong>
|<strong style="color:red;">No Input</strong>
}}</includeonly><noinclude>
}}</includeonly><noinclude>
*{{:User:SignpostMarv Martin/Template:sw.slr|resident|SignpostMarv Martin}}
== Usage ==
*{{:User:SignpostMarv Martin/Template:sw.slr|resident|SignpostMarv Martin|land}}
<nowiki>{{sw.slr|</nowiki><strong style="color:red;">entity type</strong>|<strong style="color:red;">entity name</strong>|<strong style="color:red;">entity sub-name/url text</strong>|<strong style="color:red;">url text</strong><nowiki>}}</nowiki>
*{{:User:SignpostMarv Martin/Template:sw.slr|resident|SignpostMarv Martin|mentioned}}
=== Parameters ===
*{{:User:SignpostMarv Martin/Template:sw.slr|region|Hippotropolis}}
# entity type can be:
*{{:User:SignpostMarv Martin/Template:sw.slr|place|Hippotropolis|Linden Open Source Project HQ}}
#* resident
#* region
#* place
# entity name
#* the name of a Resident
#* the name of a region
# 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''
# 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 ==
*{{sw.slr|resident|SignpostMarv Martin}}
*{{sw.slr|resident|SignpostMarv Martin|land}}
*{{sw.slr|resident|SignpostMarv Martin|mentioned}}
*{{sw.slr|region|Hippotropolis}}
*{{sw.slr|place|Hippotropolis|Linden Open Source Project HQ}}
</noinclude>
</noinclude>

Revision as of 23:46, 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