Template:Intro: Difference between revisions

From My Wiki
Jump to navigation Jump to search
imported>Tlosk
No edit summary
imported>Tlosk
(added parameters to include links to retired versions and the current version of an item, split documentation)
Line 16: Line 16:
|}
|}
|align=right|
|align=right|
{{#ifeq:{{{Rare Number|}}}|||'''[[Rares{{!}}Rare #{{{Rare Number|}}}]]'''
{{#ifeq:{{{Retired Versions|}}}|||<b><font color=#606060>Retired Versions:&nbsp;</font></b> '''{{{Retired Versions|}}}'''}}{{#ifeq:{{{Current Version|}}}|||<b><font color=#606060>Current Version:&nbsp;</font></b> {{{Current Version|}}}}}{{#ifeq:{{{Rare Number|}}}|||'''[[Rares{{!}}Rare #{{{Rare Number|}}}]]'''
}}
}}
|}
|}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
{{Related|Wiki Templates|Page Templates}}
{{Documentation}}
== Syntax ==
[[Category:Wiki Template]][[Category:Summary Template]]
<pre>
{{Intro
| Patch Introduced =
|  Related Quests =
|          Updated =
}}
</pre>
 
<pre>
{{Intro
| Patch Introduced = [[<Patch>]]
|  Related Quests = [[<Quest>]], [[<Quest>]]
|          Updated = [[<Patch>]], [[<Patch>]]
|      Rare Number = <Number>
}}
</pre>
 
== Usage ==
This is a component template that is used within many [[Page Templates]] and displays the patch introduced, related quests and patches when the item was updated. Leave blank any sections that do not apply. Items should be enclosed in link brackets <nowiki>( [[ ]] )</nowiki>.
 
If an item is a [[Rare]], setting <code>Rare Number = <??></code> will categorize the page as a rare and display a link in the upper right. For non-rares simply leave this value out all together.
 
[[Category:Wiki Template]]
</noinclude>
</noinclude>

Revision as of 17:29, 10 January 2010

Template Documentation: Edit Documentation

Related topics: Wiki Templates, Page Templates

Syntax

{{Intro
 | Patch Introduced = 
 |   Related Quests = 
 |          Updated = 
}}
{{Intro
 | Patch Introduced = [[<Patch>]]
 |   Related Quests = [[<Quest>]], [[<Quest>]]
 |          Updated = [[<Patch>]], [[<Patch>]]
 | Retired Versions = [[<Page>|1]], [[<Page>|2]]
 |  Current Version = [[<Page>]]
 |      Rare Number = <Number>
}}

Usage

This is a component template that is used within many Page Templates and displays the patch introduced, related quests and patches when the item was updated. Leave blank any sections that do not apply. Items should be enclosed in link brackets ( [[ ]] ).


If an item is a Rare, setting Rare Number = <??> will categorize the page as a rare and display a link in the upper right. For non-rares simply leave this value out all together.


You can display prominent links to retired versions on the page for the current version, and vice versa, by adding the appropriate parameter shown above (you can delete parameters that don't apply).