Difference between revisions of "Template:Shard"

(put category in pagename)
m (Purpose: removed Shard Communities as a wiki page name (not created) and just using article Shard as list of info about player communities.)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1}}}
 
<includeonly>{{#switch: {{{1}}}
  | Arirang = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Arirang = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Asuka = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Asuka = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Atlantic = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Atlantic = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Baja = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Baja = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Balhae = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Balhae = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Catskills = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Catskills = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Chesapeake = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Chesapeake = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Drachenfels = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Drachenfels = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Europa = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Europa = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Formosa = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Formosa = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Great Lakes = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Great Lakes = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Hokuto = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Hokuto = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Izumo = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Izumo = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Lake Austin = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Lake Austin = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Lake Superior = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Lake Superior = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Legends = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Legends = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Mizuho = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Mizuho = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Mugen = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Mugen = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Napa Valley = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Napa Valley = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Oceania = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Oceania = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Origin = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Origin = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Pacific = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Pacific = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Sakura = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Sakura = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Siege Perilous = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Siege Perilous = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Sonoma = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Sonoma = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Wakoku = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Wakoku = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | Yamato = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | Yamato = [[Category:{{{1}}}]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
  | ALL = [[Category:{{{1}}} Shards]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
+
  | ALL = [[Category:{{{1}}} Shards]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | ON | :'''''{{{1}}} Shard Article''''' | }}
 
  | [[Category:Shard template name not recognized]]
 
  | [[Category:Shard template name not recognized]]
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
== Purpose ==
 
== Purpose ==
# Attach your article to one (or more) [[Shard Communities]] (e.g., Atlantic, Chesapeake, Great Lakes).
+
# Attach your article to one (or more) [[Shard]] categories (e.g., Atlantic, Chesapeake, Great Lakes).
# Optionally attach your article to a sub-category within that [[Shard Communities|Shard Community]] (e.g., Atlantic|Guild, Chesapeake|Auction House, Sonoma|Character).
+
# Optionally attach your article to a sub-category within that [[Shard]] (e.g., Atlantic|Guild, Chesapeake|Auction House, Sonoma|Character).
 +
* Note that after adding a sub-category, go to the sub-category page you entered and look at the description and it's category at the bottom.  The description should have the text <nowiki>[[Category:name of the shard]]</nowiki>, e.g., <nowiki>[[Category:Chesapeake]]</nowiki>.  If it doesn't, then manually add it; if you don't, the sub-category won't show up in the Shard category list.
  
 
'''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 '''<tt>Shard template name not recognized</tt>'''.
 
'''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 '''<tt>Shard template name not recognized</tt>'''.
Line 39: Line 40:
 
Typically place this template on the first line of your article.
 
Typically place this template on the first line of your article.
  
  {{Tlx|Shard|''shardname''|<nowiki>sub=</nowiki>''sub-category''|<nowiki>ShardLine=</nowiki>''OFF''}}
+
  {{Tlx|Shard|''shardname''|<nowiki>sub=</nowiki>''sub-category''|<nowiki>ShardLine=</nowiki>''ON''}}
  
 
where:
 
where:
 
* <tt>''shardname''</tt> (required) is the name of the shard.
 
* <tt>''shardname''</tt> (required) is the name of the shard.
 
* <tt>sub=''sub-category''</tt> (optional) is a sub-category in the shard community on this wiki.
 
* <tt>sub=''sub-category''</tt> (optional) is a sub-category in the shard community on this wiki.
* <tt>ShardLine=''OFF''</tt> (optional, ON by default) removes the one-line text showing what shard this article relates to.  
+
* <tt>ShardLine=''ON''</tt> (optional, OFF by default) adds the one-line of text at top of page showing what shard this article relates to.
  
 
== Examples ==
 
== Examples ==
Line 64: Line 65:
 
| One shard and a sub-category
 
| One shard and a sub-category
 
| {{Tlx|Shard|''shardname''|<nowiki>sub=</nowiki>''sub-category''}}
 
| {{Tlx|Shard|''shardname''|<nowiki>sub=</nowiki>''sub-category''}}
| <tt><nowiki>{{Shard|Pacific|<nowiki>sub=</nowiki>Guild}}</nowiki></tt>
+
| <tt><nowiki>{{Shard|Pacific|sub=Guild}}</nowiki></tt>
 
|-
 
|-
 
| Many variations
 
| Many variations
Line 122: Line 123:
 
:: <tt>Tavern</tt>
 
:: <tt>Tavern</tt>
 
:: <tt>Unique Location</tt>
 
:: <tt>Unique Location</tt>
 +
 +
If an article needs more information (and you may be pleaing to the community to help), then add the sub-category:
 +
:: <tt>Article needs information</tt>
  
 
To understand the internal coding for this template, see also:  
 
To understand the internal coding for this template, see also:  

Latest revision as of 10:54, 14 June 2012

Purpose

  1. Attach your article to one (or more) Shard categories (e.g., Atlantic, Chesapeake, Great Lakes).
  2. Optionally attach your article to a sub-category within that Shard (e.g., Atlantic|Guild, Chesapeake|Auction House, Sonoma|Character).
  • Note that after adding a sub-category, go to the sub-category page you entered and look at the description and it's category at the bottom. The description should have the text [[Category:name of the shard]], e.g., [[Category:Chesapeake]]. If it doesn't, then manually add it; if you don't, the sub-category won't show up in the Shard category list.

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=ON}}

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=ON (optional, OFF by default) adds the one-line of text at top of page 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|sub=Guild}}
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

If an article needs more information (and you may be pleaing to the community to help), then add the sub-category:

Article needs information

To understand the internal coding for this template, see also: