Difference between revisions of "Template:Sw.slr"
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> | ||
== Usage == | |||
*{{ | <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> | ||
*{{ | === Parameters === | ||
*{{ | # entity type can be: | ||
*{{ | #* 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
- entity type can be:
- 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
- if the entity type is resident or region, this parameter is optional. If supplied, is used as custom text for the link
- 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.