|
|
Line 1: |
Line 1: |
− | <includeonly>{{#switch: {{{1}}} | + | <noinclude>[[Category:Utility Templates|{{PAGENAME}}]]</noinclude><includeonly><span style="font-family:monospace;"><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!-- |
− | | Arirang = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{2|}}}| |
− | | Asuka = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | |{{{2}}} |
− | | Atlantic = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | }}<!-- |
− | | Baja = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{3|}}}| |
− | | Balhae = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | |{{{3}}} |
− | | Catskills = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | }}<!-- |
− | | Chesapeake = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{4|}}}| |
− | | Drachenfels = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | |{{{4}}} |
− | | Europa = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | }}<!-- |
− | | Formosa = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{5|}}}| |
− | | Great Lakes = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | |{{{5}}} |
− | | Hokuto = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | }}<!-- |
− | | Izumo = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{6|}}}| |
− | | Lake Austin = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | |{{{6}}} |
− | | Lake Superior = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | }}<!-- |
− | | Legends = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{7|}}}| |
− | | Mizuho = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | |{{{7}}} |
− | | Mugen = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | }}<!-- |
− | | Napa Valley = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{8|}}}| |
− | | Oceania = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | |{{{8}}} |
− | | Origin = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | }}<!-- |
− | | Pacific = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{9|}}}| |
− | | Sakura = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | |{{{9}}} |
− | | Siege Perilous = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | }}<!-- |
− | | Sonoma = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{10|}}}| |
− | | Wakoku = [[Category:{{{1}}} Shard]] {{#ifeq:{{{sub|}}}}|{{{sub|-}}}} | [[Category:{{{sub}}} on {{{1}}}]] | }} {{#ifeq: {{{ShardLine}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | |{{{10}}} |
− | | Yamato = [[Category:{{{1}}} Shard]] {{#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}}} | OFF | | :'''''{{{1}}} Shard Article''''' }}
| + | -->{{#if:{{{11|}}}| |
− | | [[Category:Shard template name not recognized]]
| + | |{{{11}}} |
− | }}</includeonly><noinclude> | + | }}<!-- |
− | == Purpose ==
| + | -->{{#if:{{{12|}}}| |
− | # 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 Communities|Shard Community]] (e.g., Atlantic|Guild, Chesapeake|Auction House, Sonoma|Character).
| + | }}<nowiki>}}</nowiki></span></includeonly> |
− | | + | |
− | '''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>'''.
| + | |
− | | + | |
− | == Usage ==
| + | |
− | Typically place this template on the first line of your article.
| + | |
− | | + | |
− | {{Tlx|Shard|''shardname''|<nowiki>sub=</nowiki>''sub-category''|<nowiki>ShardLine=</nowiki>''OFF''}}
| + | |
− | | + | |
− | where:
| + | |
− | * <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>ShardLine=''OFF''</tt> (optional, ON by default) removes the one-line text showing what shard this article relates to.
| + | |
− | | + | |
− | == Examples ==
| + | |
− | | + | |
− | {| class="wikitable" border="1" | + | |
− | |-
| + | |
− | ! Usage
| + | |
− | ! Syntax
| + | |
− | ! Examples
| + | |
− | |-
| + | |
− | | One shard
| + | |
− | | {{Tlx|Shard|''shardname''}}
| + | |
− | | <tt><nowiki>{{Shard|Pacific}}</nowiki></tt>
| + | |
− | |- | + | |
− | | More than one shard (if article pertains to multiple shards)
| + | |
− | | {{Tlx|Shard|''shardname1''}}{{Tlx|Shard|''shardname2''}} ... {{Tlx|Shard|''shardnameN''}}
| + | |
− | | <tt><nowiki>{{Shard|Atlantic}}{{Shard|Europa}}{{Shard|Sonoma}}</nowiki></tt>
| + | |
− | |-
| + | |
− | | One shard and a sub-category
| + | |
− | | {{Tlx|Shard|''shardname''|<nowiki>sub=</nowiki>''sub-category''}}
| + | |
− | | <tt><nowiki>{{Shard|Pacific|<nowiki>sub=</nowiki>Guild}}</nowiki></tt>
| + | |
− | |-
| + | |
− | | Many variations
| + | |
− | | colspan="2" | <tt><nowiki>{{Shard|Pacific|sub=Guild}}{{Shard|Pacific|sub=Auction House}}{{Shard|Sonoma|sub=Auction House}}</nowiki></tt>
| + | |
− | |}
| + | |
− | :: | + | |
− | === Usage without sub-category ===
| + | |
− | (copy one or more of the following as the first line of your article)
| + | |
− | :: <tt><nowiki>{{Shard|Arirang}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Asuka}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Atlantic}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Baja}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Balhae}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Catskills}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Chesapeake}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Drachenfels}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Europa}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Formosa}}</nowiki></tt> | + | |
− | :: <tt><nowiki>{{Shard|Great Lakes}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Hokuto}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Izumo}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Lake Austin}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Lake Superior}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Legends}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Mizuho}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Mugen}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Napa Valley}}</nowiki></tt> | + | |
− | :: <tt><nowiki>{{Shard|Oceania}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Origin}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Pacific}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Sakura}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Siege Perilous}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Sonoma}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Wakoku}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|Yamato}}</nowiki></tt>
| + | |
− | :: <tt><nowiki>{{Shard|ALL}}</nowiki></tt> - 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 '''<tt>Shard template name not recognized</tt>'''.
| + | |
− | | + | |
− | === 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.
| + | |
− | :: <tt>Alliance</tt>
| + | |
− | :: <tt>Arena</tt>
| + | |
− | :: <tt>Auction House</tt>
| + | |
− | :: <tt>Book Library</tt>
| + | |
− | :: <tt>Character</tt>
| + | |
− | :: <tt>Community</tt>
| + | |
− | :: <tt>Community Center</tt>
| + | |
− | :: <tt>Event</tt>
| + | |
− | :: <tt>Establishment</tt>
| + | |
− | :: <tt>Guild</tt>
| + | |
− | :: <tt>Museum</tt>
| + | |
− | :: <tt>News</tt>
| + | |
− | :: <tt>News Service</tt>
| + | |
− | :: <tt>Player Town</tt>
| + | |
− | :: <tt>Regular Event</tt>
| + | |
− | :: <tt>Rune Library</tt>
| + | |
− | :: <tt>Tavern</tt>
| + | |
− | :: <tt>Unique Location</tt>
| + | |
− | | + | |
− | To understand the internal coding for this template, see also:
| + | |
− | * [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]
| + | |
− | [[Category: Community Templates|{{PAGENAME}}]]</noinclude>
| + | |