Difference between revisions of "Template:Sw.slr"
Jump to navigation
Jump to search
m (wiki-typo) |
(just realised the zero-configuration mode programed in :-P) |
||
Line 10: | Line 10: | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
=== Basic === | |||
The basic usages are for those situations where zero configuration is a bonus! | |||
Not so much for resident articles, but more for regions, the zero configuration mode means not having to alter the parameters of the wiki code if the region is renamed- just move the wiki article itself to reflect the region's name change :-P | |||
* <nowiki>{{sw.slr|resident}}</nowiki> in an article on a Resident or in the Resident's wiki profile will give a direct link to that Resident's semantic web profile | |||
* <nowiki>{{sw.slr|region}}</nowiki> in an article on a region will give a direct link to that region's semantic web profile | |||
=== Advanced === | |||
<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> | <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 === | === Parameters === |
Revision as of 07:45, 7 March 2008
Usage
Basic
The basic usages are for those situations where zero configuration is a bonus!
Not so much for resident articles, but more for regions, the zero configuration mode means not having to alter the parameters of the wiki code if the region is renamed- just move the wiki article itself to reflect the region's name change :-P
- {{sw.slr|resident}} in an article on a Resident or in the Resident's wiki profile will give a direct link to that Resident's semantic web profile
- {{sw.slr|region}} in an article on a region will give a direct link to that region's semantic web profile
Advanced
{{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.