Difference between revisions of "Template:Guide top"

ADVERTISEMENT
From Diablo Wiki
Jump to: navigation, search
m
m
 
(13 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
{{#if: {{{patch|}}}|* '''Patch:''' v{{{patch}}} }}<!--
 
{{#if: {{{patch|}}}|* '''Patch:''' v{{{patch}}} }}<!--
  
-->{{#if: {{{pvp|}}}
+
-->{{#if: {{{pvp|}}}|{{#if: {{{pve|}}}|* '''Gametype:''' [[PvE|PvE/PvM]] and [[PvP]] |* '''Gametype:''' [[PvP]]}} |{{#if: {{{pve|}}}|* '''Gametype:''' [[PvE|PvE/PvM]]}} }}<!--
                  |{{#if: {{{pve|}}}
 
                                    |* '''Gametype:''' [[PvE|PvE/PvM]] and [[PvP]]
 
                                    |* '''Gametype:''' [[PvP]]
 
                    }}
 
                  |{{#if: {{{pve|}}}
 
                                    |* '''Gametype:''' [[PvE|PvE/PvM]]
 
                    }}
 
  }}
 
  
 
+
-->{{#if: {{{level|}}}|{{#if: {{{monster|}}}|{{#if: {{{item|}}}|{{#if: {{{exp|}}}|* '''Guide Topics:''' {{{exp}}}, {{{item}}}, {{{monster}}} and {{{level}}}|* '''Guide Topics:''' {{{item}}}, {{{monster}}} and {{{level}}} }}|{{#if: {{{exp|}}}|* '''Guide Topics:''' {{{exp}}}, {{{monster}}} and {{{level}}}|* '''Guide Topics:''' {{{monster}}} and {{{level}}} }} }}|{{#if: {{{item|}}}|{{#if: {{{exp|}}}|* '''Guide Topics:''' {{{exp}}}, {{{item}}}, and {{{level}}}|* '''Guide Topics:''' {{{item}}} and {{{level}}} }}|{{#if: {{{exp|}}}|* '''Guide Topics:''' {{{exp}}} and {{{level}}}|* '''Guide Topic:''' {{{level}}} }} }} }}|{{#if: {{{monster|}}}|{{#if: {{{item|}}}|{{#if: {{{exp|}}}|* '''Guide Topics:''' {{{exp}}}, {{{item}}} and {{{monster}}}|* '''Guide Topics:''' {{{item}}} and {{{monster}}} }}|{{#if: {{{exp|}}}|* '''Guide Topics:''' {{{exp}}} and {{{monster}}}|* '''Guide Topic:''' {{{monster}}} }} }}|{{#if: {{{item|}}}|{{#if: {{{exp|}}}|* '''Guide Topics:''' {{{exp}}} and {{{item}}}|* '''Guide Topic:''' {{{item}}} }}|{{#if: {{{exp|}}}|* '''Guide Topic:''' {{{exp}}}| }} }} }} }}<!--
* '''Gametype:''' [[PvE|PvE/PvM]] }}<!--
 
 
 
-->{{#if: {{{level|}}}
 
                    |{{#if: {{{monster|}}}
 
                                      |{{#if: {{{item|}}}
 
                                                        |* '''Gametype:''' [[Item]], [[Monster]] and [[Level]]
 
                                                        |* '''Gametype:''' [[Monster]] and [[Level]]
 
                                        }}
 
                                      |{{#if: {{{item|}}}
 
                                                        |* '''Gametype:''' [[Item]], and [[Level]]
 
                                                        |* '''Gametype:''' [[Level]]
 
                                        }}
 
                      }}
 
                    |{{#if: {{{monster|}}}
 
                                      |{{#if: {{{item|}}}
 
                                                        |* '''Gametype:''' [[Item]] and [[Monster]]
 
                                                        |* '''Gametype:''' [[Monster]]
 
                                        }}
 
                                      |{{#if: {{{item|}}}
 
                                                        |* '''Gametype:''' [[Item]]
 
                                        }}
 
                      }}
 
  }}
 
 
 
 
 
<!--
 
 
 
 
 
{{#if: {{{monster|}}}|* '''Monster:''' {{{monster}}} }}<!--
 
 
 
{{#if: {{{level|}}}|* '''Level:''' {{{level}}} }}<!--
 
  
 
-->{{#if: {{{class|}}}|* '''Class:''' [[{{{class}}}]] |*'''Class:''' Not class-specific }}<!--
 
-->{{#if: {{{class|}}}|* '''Class:''' [[{{{class}}}]] |*'''Class:''' Not class-specific }}<!--
Line 56: Line 17:
 
-->{{#if: {{{spec|}}}|* '''Specialisation:''' {{{spec}}} }}<!--
 
-->{{#if: {{{spec|}}}|* '''Specialisation:''' {{{spec}}} }}<!--
  
-->{{#if: {{{author|}}}|* '''Author:''' {{{author}}}{{#if: {{{co-author|}}} |, {{{co-author}}} }}|* '''Author:''' ''Unknown''}}<!--
+
-->{{#if: {{{author|}}}|* '''Author:''' [[:Category:Strategy guides by {{{author}}}|{{{author}}}]]{{#if: {{{co-author|}}} |, {{{co-author}}} }}|* '''Author:''' ''Unknown''}}<!--
  
 
-->{{#if: {{{pages|}}}|* '''Pages:''' {{{pages}}} }}<!--
 
-->{{#if: {{{pages|}}}|* '''Pages:''' {{{pages}}} }}<!--
Line 67: Line 28:
 
-->{{#if: {{{patch|}}} |{{#if: {{{catexclude|}}}||[[Category:Patch {{{patch}}} strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{patch|}}} |{{#if: {{{catexclude|}}}||[[Category:Patch {{{patch}}} strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{pve|}}} |{{#if: {{{catexclude|}}}||[[Category:PvE strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{pve|}}} |{{#if: {{{catexclude|}}}||[[Category:PvE strategy guides ({{{game}}})]]}} }}<!--
-->{{#if: {{{pvp|}}} |{{#if: {{{catexclude|}}}||[[Category:PvE strategy guides ({{{game}}})]]}} }}<!--
+
-->{{#if: {{{pvp|}}} |{{#if: {{{catexclude|}}}||[[Category:PvP strategy guides ({{{game}}})]]}} }}<!--
 +
-->{{#if: {{{exp|}}} |{{#if: {{{catexclude|}}}||[[Category:Experience gaining strategy guides ({{{game}}})]] }} }}<!--
 +
-->{{#if: {{{item|}}} |{{#if: {{{catexclude|}}}||[[Category:Item strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{monster|}}} |{{#if: {{{catexclude|}}}||[[Category:Monster strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{monster|}}} |{{#if: {{{catexclude|}}}||[[Category:Monster strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{level|}}} |{{#if: {{{catexclude|}}}||[[Category:Level strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{level|}}} |{{#if: {{{catexclude|}}}||[[Category:Level strategy guides ({{{game}}})]]}} }}<!--
-->{{#if: {{{item|}}} |{{#if: {{{catexclude|}}}||[[Category:Item strategy guides ({{{game}}})]]}} }}<!--
 
 
-->{{#if: {{{class|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class}}} strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{class|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class}}} strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{class2|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class2}}} strategy guides ({{{game}}})]]}} }}<!--
 
-->{{#if: {{{class2|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class2}}} strategy guides ({{{game}}})]]}} }}<!--
Line 80: Line 42:
 
-->{{#if: {{{author|}}} |{{#if: {{{catexclude|}}}||[[Category:Strategy guides by {{{author}}}]]}} }}<!--
 
-->{{#if: {{{author|}}} |{{#if: {{{catexclude|}}}||[[Category:Strategy guides by {{{author}}}]]}} }}<!--
 
-->{{#if: {{{author|}}} ||{{#if: {{{catexclude|}}}||[[Category:Strategy guides by Unknown author]]}} }}
 
-->{{#if: {{{author|}}} ||{{#if: {{{catexclude|}}}||[[Category:Strategy guides by Unknown author]]}} }}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
This [[Help:Template|Template]] creates a Strategy Guide Info top information header that also correctly categorises all data in a guide. Any variable that is not used in the top will also be hidden in the info header, and it will not produce any categories.
 
This [[Help:Template|Template]] creates a Strategy Guide Info top information header that also correctly categorises all data in a guide. Any variable that is not used in the top will also be hidden in the info header, and it will not produce any categories.
Line 94: Line 55:
  
 
{{clear-both}}
 
{{clear-both}}
<nowiki>{{Guide top</nowiki>
+
{{Guide_top/example}}
<nowiki>|game= Diablo II</nowiki>                              Game variable - REQUIRED
+
 
<nowiki>|patch= 1.09</nowiki>                                  Only use if patch-specific. Only numbers, not "version"/"patch".
 
<nowiki>|pve= Yes</nowiki>                                    Either "Yes", or REMOVE. Do not write "no"!
 
<nowiki>|pvp= Yes</nowiki>                                    Either "Yes", or REMOVE. Do not write "no"!
 
<nowiki>|monster= [[Baal]]</nowiki>                            Optional; Name of monster(s). Can be used to link.
 
<nowiki>|level= Worldstone Keep</nowiki>                      Optional; Name of level(s). Can be used to link.
 
<nowiki>|item= Windforce</nowiki>                              Optional; Name of item(s). Can be used to link.
 
<nowiki>|class= Amazon</nowiki>                                Add a class here (spelling crucial).
 
<nowiki>|class2= Assassin</nowiki>                            Add a class here (spelling crucial).
 
<nowiki>|class3= Barbarian</nowiki>                            Add a class here (spelling crucial).
 
<nowiki>|class4= Druid</nowiki>                                Add a class here (spelling crucial).
 
<nowiki>|class5= Necromancer</nowiki>                          Add a class here (spelling crucial).
 
<nowiki>|class6= Paladin</nowiki>                              Add a class here (spelling crucial).
 
<nowiki>|class7= Sorceress</nowiki>                            Add a class here (spelling crucial).
 
<nowiki>|spec= Lightning Fury Javazon</nowiki>                Optional; additional info. Can be used to link.
 
<nowiki>|author= Flux</nowiki>                                Optional, but important.
 
<nowiki>|co-author= [[Leord]]</nowiki>                        Optional, but important. Can be used to link.
 
<nowiki>|pages= '''One''', Two, Three</nowiki>                If more than one page, link up the other pages.
 
<nowiki>|related= [[Javazon v1.09, by Flux, Part I]]</nowiki>  Any related articles to this one? Can be used to link.
 
<nowiki>|outdated= Yes</nowiki>                                Either "Yes", or REMOVE. Do not write "no"!
 
<nowiki>|catexclude= Yes</nowiki>                              Use this to remove ALL categorisation.
 
<nowiki>}}</nowiki>
 
  
  
Line 131: Line 71:
 
|monster= [[Baal]]
 
|monster= [[Baal]]
 
|level= Worldstone Keep
 
|level= Worldstone Keep
|level= Windforce
+
|item= Windforce
 
|class= Amazon
 
|class= Amazon
 
|class2= Assassin
 
|class2= Assassin

Latest revision as of 12:50, 14 December 2009

This Template creates a Strategy Guide Info top information header that also correctly categorises all data in a guide. Any variable that is not used in the top will also be hidden in the info header, and it will not produce any categories.


The template will always put any the article using it in the [[Category:Strategy guides ({{{game}}})]] category, unless you use the "catexclude=" variable.


If the "Outdated" variable is used, the template will also display a warning message to readers that the information may be outdated.


IMPORTANT: Comment out or REMOVE any variables you are not going to use!

{{Guide top
|game= Diablo II                              Game variable - REQUIRED
|patch= 1.09                                  Only use if patch-specific. Only numbers, not "version"/"patch".
|pve= Yes                                     Either "Yes", or REMOVE. Do not write "no"!
|pvp= Yes                                     Either "Yes", or REMOVE. Do not write "no"!
|monster= [[Baal]]                            Optional; Name of monster(s). Can be used to link.
|level= Worldstone Keep                       Optional; Name of level(s). Can be used to link.
|item= Windforce                              Optional; Name of item(s). Can be used to link.
|class= Amazon                                Add a class here (spelling crucial).
|class2= Assassin                             Add a class here (spelling crucial).
|class3= Barbarian                            Add a class here (spelling crucial).
|class4= Druid                                Add a class here (spelling crucial).
|class5= Necromancer                          Add a class here (spelling crucial).
|class6= Paladin                              Add a class here (spelling crucial).
|class7= Sorceress                            Add a class here (spelling crucial).
|spec= Lightning Fury Javazon                 Optional; additional info. Can be used to link.
|author= Flux                                 Optional, but important.
|co-author= [[Leord]]                         Optional, but important. Can be used to link and cat.
|pages= '''One''', Two, Three                 If more than one page, link up the other pages.
|related= [[Javazon v1.09, by Flux, Part I]]  Any related articles to this one? Can be used to link.
|outdated= Yes                                Either "Yes", or REMOVE. Do not write "no"!
|catexclude= Yes                              Use this to remove ALL categorisation.
}}


Below here is an example of how it can look, when using all variables:



Diablo II Strategy Guide Info:
[edit]