Difference between revisions of "Template:Shard"
(updated with more logic and parameters.) |
(put category in pagename) |
||
Line 126: | Line 126: | ||
* [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions MediaWiki ParserFunctions extension] | * [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions MediaWiki ParserFunctions extension] | ||
* [http://www.mediawiki.org/wiki/Help:Parser_functions_in_templates Parser Functions in Templates] | * [http://www.mediawiki.org/wiki/Help:Parser_functions_in_templates Parser Functions in Templates] | ||
− | [[Category: Community Templates]]</noinclude> | + | [[Category: Community Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 19:39, 22 March 2010
Contents
Purpose
- Attach your article to one (or more) Shard Communities (e.g., Atlantic, Chesapeake, Great Lakes).
- Optionally attach your article to a sub-category within that Shard Community (e.g., Atlantic|Guild, Chesapeake|Auction House, Sonoma|Character).
PREVIEW your article before saving! ... the Shard category (and sub-category if entered) will show up at the bottom of your preview. This template also checks if you entered a valid shard name. If not valid, your category at the bottom will show up in the Category Shard template name not recognized.
Usage
Typically place this template on the first line of your article.
{{Shard|shardname|sub=sub-category|ShardLine=OFF}}
where:
- shardname (required) is the name of the shard.
- sub=sub-category (optional) is a sub-category in the shard community on this wiki.
- ShardLine=OFF (optional, ON by default) removes the one-line text showing what shard this article relates to.
Examples
Usage | Syntax | Examples |
---|---|---|
One shard | {{Shard|shardname}} | {{Shard|Pacific}} |
More than one shard (if article pertains to multiple shards) | {{Shard|shardname1}}{{Shard|shardname2}} ... {{Shard|shardnameN}} | {{Shard|Atlantic}}{{Shard|Europa}}{{Shard|Sonoma}} |
One shard and a sub-category | {{Shard|shardname|sub=sub-category}} | {{Shard|Pacific|<nowiki>sub=Guild}}</nowiki> |
Many variations | {{Shard|Pacific|sub=Guild}}{{Shard|Pacific|sub=Auction House}}{{Shard|Sonoma|sub=Auction House}} |
Usage without sub-category
(copy one or more of the following as the first line of your article)
- {{Shard|Arirang}}
- {{Shard|Asuka}}
- {{Shard|Atlantic}}
- {{Shard|Baja}}
- {{Shard|Balhae}}
- {{Shard|Catskills}}
- {{Shard|Chesapeake}}
- {{Shard|Drachenfels}}
- {{Shard|Europa}}
- {{Shard|Formosa}}
- {{Shard|Great Lakes}}
- {{Shard|Hokuto}}
- {{Shard|Izumo}}
- {{Shard|Lake Austin}}
- {{Shard|Lake Superior}}
- {{Shard|Legends}}
- {{Shard|Mizuho}}
- {{Shard|Mugen}}
- {{Shard|Napa Valley}}
- {{Shard|Oceania}}
- {{Shard|Origin}}
- {{Shard|Pacific}}
- {{Shard|Sakura}}
- {{Shard|Siege Perilous}}
- {{Shard|Sonoma}}
- {{Shard|Wakoku}}
- {{Shard|Yamato}}
- {{Shard|ALL}} - use this only if an article partains to ALL shards, such as a UO All-Shards event or quest.
- Note: If the Shard name is not recognized or spelled properly, the default category is Shard template name not recognized.
Some typical shard community sub-categories
You can add and use more sub-categories if you like, but try to stay consistent between shards if possible.
- Alliance
- Arena
- Auction House
- Book Library
- Character
- Community
- Community Center
- Event
- Establishment
- Guild
- Museum
- News
- News Service
- Player Town
- Regular Event
- Rune Library
- Tavern
- Unique Location
To understand the internal coding for this template, see also: