Difference between revisions of "Template:Guide top"
ADVERTISEMENT
From Diablo Wiki
m |
m |
||
(39 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<span style="font-weight:bold; font-size:115%; color:white;"><u>{{{game}}} Strategy Guide Info:</u></span><div style="float:right;">{{editlink|Template:Guide_top|edit|diablo2|a|a}}</div><br> | <span style="font-weight:bold; font-size:115%; color:white;"><u>{{{game}}} Strategy Guide Info:</u></span><div style="float:right;">{{editlink|Template:Guide_top|edit|diablo2|a|a}}</div><br> | ||
− | {{#if: {{{patch|}}}|* '''Patch:''' v{{{patch}}} {{#if: {{{ | + | {{#if: {{{patch|}}}|* '''Patch:''' v{{{patch}}} }}<!-- |
− | {{#if: {{{ | + | |
− | {{#if: {{{class|}}}|* '''Class:''' [[{{{class}}}]] {{#if: {{{ | + | -->{{#if: {{{pvp|}}}|{{#if: {{{pve|}}}|* '''Gametype:''' [[PvE|PvE/PvM]] and [[PvP]] |* '''Gametype:''' [[PvP]]}} |{{#if: {{{pve|}}}|* '''Gametype:''' [[PvE|PvE/PvM]]}} }}<!-- |
− | {{#if: {{{ | + | |
− | {{#if: {{{ | + | -->{{#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}}}| }} }} }} }}<!-- |
− | {{#if: {{{ | + | |
− | {{#if: {{{ | + | -->{{#if: {{{class|}}}|* '''Class:''' [[{{{class}}}]] |*'''Class:''' Not class-specific }}<!-- |
− | {{#if: {{{catexclude|}}}||[[Category:Strategy guides | + | -->{{#if: {{{class2|}}}|, [[{{{class2}}}]] }}<!-- |
+ | -->{{#if: {{{class3|}}}|, [[{{{class3}}}]] }}<!-- | ||
+ | -->{{#if: {{{class4|}}}|, [[{{{class4}}}]] }}<!-- | ||
+ | -->{{#if: {{{class5|}}}|, [[{{{class5}}}]] }}<!-- | ||
+ | -->{{#if: {{{class6|}}}|, [[{{{class6}}}]] }}<!-- | ||
+ | -->{{#if: {{{class7|}}}|, [[{{{class7}}}]] }}<!-- | ||
+ | |||
+ | -->{{#if: {{{spec|}}}|* '''Specialisation:''' {{{spec}}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{author|}}}|* '''Author:''' [[:Category:Strategy guides by {{{author}}}|{{{author}}}]]{{#if: {{{co-author|}}} |, {{{co-author}}} }}|* '''Author:''' ''Unknown''}}<!-- | ||
+ | |||
+ | -->{{#if: {{{pages|}}}|* '''Pages:''' {{{pages}}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{related|}}}|* '''Related Article(s):''' {{{related}}} }}<!-- | ||
+ | |||
+ | -->{{#if: {{{outdated|}}}|<br><ul>'''''Please note''' that strategy guides from v{{{patch}}} have vastly different [[skill]] and [[item]] stats, thus may not be applicable to the latest version of the game.''</ul>}}<!-- | ||
+ | |||
+ | -->{{#if: {{{catexclude|}}}||[[Category:Strategy guides ({{{game}}})]]}}<!-- | ||
+ | -->{{#if: {{{patch|}}} |{{#if: {{{catexclude|}}}||[[Category:Patch {{{patch}}} strategy guides ({{{game}}})]]}} }}<!-- | ||
+ | -->{{#if: {{{pve|}}} |{{#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: {{{level|}}} |{{#if: {{{catexclude|}}}||[[Category:Level strategy guides ({{{game}}})]]}} }}<!-- | ||
+ | -->{{#if: {{{class|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class}}} strategy guides ({{{game}}})]]}} }}<!-- | ||
+ | -->{{#if: {{{class2|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class2}}} strategy guides ({{{game}}})]]}} }}<!-- | ||
+ | -->{{#if: {{{class3|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class3}}} strategy guides ({{{game}}})]]}} }}<!-- | ||
+ | -->{{#if: {{{class4|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class4}}} strategy guides ({{{game}}})]]}} }}<!-- | ||
+ | -->{{#if: {{{class5|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class5}}} strategy guides ({{{game}}})]]}} }}<!-- | ||
+ | -->{{#if: {{{class6|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class6}}} strategy guides ({{{game}}})]]}} }}<!-- | ||
+ | -->{{#if: {{{class7|}}} |{{#if: {{{catexclude|}}}||[[Category:{{{class7}}} strategy guides ({{{game}}})]]}} }}<!-- | ||
+ | -->{{#if: {{{author|}}} |{{#if: {{{catexclude|}}}||[[Category:Strategy guides by {{{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 16: | Line 49: | ||
− | '''IMPORTANT:''' Comment out or | + | 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! | ||
{{clear-both}} | {{clear-both}} | ||
− | + | {{Guide_top/example}} | |
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 49: | Line 69: | ||
|pve= Yes | |pve= Yes | ||
|pvp= Yes | |pvp= Yes | ||
+ | |monster= [[Baal]] | ||
+ | |level= Worldstone Keep | ||
+ | |item= Windforce | ||
|class= Amazon | |class= Amazon | ||
|class2= Assassin | |class2= Assassin | ||
Line 57: | Line 80: | ||
|class7= Sorceress | |class7= Sorceress | ||
|spec= Lightning Fury Javazon | |spec= Lightning Fury Javazon | ||
− | |author= [[ | + | |author= Flux |
+ | |co-author= [[Leord]] | ||
|pages= '''One''', Two, Three | |pages= '''One''', Two, Three | ||
− | |related= [[ | + | |related= [[Javazon v1.09, by Flux, Part I]] |
+ | |outdated= Yes | ||
|catexclude= Yes | |catexclude= Yes | ||
− | + | }} | |
[[category:Templates]]</noinclude> | [[category:Templates]]</noinclude> |
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:
[edit]