Powered by MediaWiki

  Template  Discussion  View source  History 

Template:Adventuretop

From TheKolWiki

{{Adventuretop}}
<includeonly>{{#if:{{{num|}}}|<div style="text-align:right; float: right; font-size:80%">'''[[Choice Adventures by Number ({{#ifexpr:{{{num}}}<100|1-99|{{#expr:({{{num}}} - 50) round -2}}-{{#expr:(({{{num}}} + 50) round -2) - 1}}}})|Choice adventure number{{#if:{{{extranums|}}}|s}}]]: '''{{{num}}}{{#if:{{{extranums|}}}|, {{{extranums}}}}}'''</div>{{clear}}}}

<div style="text-align:center;">{{#ifeq:{{{noname}}}|yes||'''{{{name}}}'''<br />}}{{#ifeq:{{{noname}}}|yes|{{#if:{{{image|}}}|[[image:{{{image}}}]]}}|{{#if:{{{image|}}}|[[image:{{{image}}}|{{{name}}}]]|}}}}</div> {{#ifeq:{{{autocat|yes}}}|no||{{#if:{{{num|}}}|[[Category:Choice Adventures]]|[[Category:Non-combat Adventures]]}}}}</includeonly><noinclude> {{Code2}}

==Usage== This template accepts the following parameters:

  • <code>noname=</code> Set this value to 'yes' if you wish to suppress the adventure name from appearing above the image.
  • <code>name=</code> The name of the adventure. If ''noname'' is set to 'yes', this will only be used when displaying the image, provided an image is provided.
  • <code>image=</code> The name of the image the adventure uses. If this parameter is not passed in, no image will be displayed.
  • <code>num=</code> Puts a link in the upper right corner to the [[Choice Adventures by Number]] page, displaying the given text as the number(s) associated to this particular adventure page. No link is displayed if this parameter is not passed to the template.
  • <code>autocat=</code> Set this to 'no' if you do not want the page to automatically be categorized in [[:Category:Non-combat Adventures]]. The page will automatically be categorized in any other case.
[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude>

Usage

This template accepts the following parameters:

  • noname= Set this value to 'yes' if you wish to suppress the adventure name from appearing above the image.
  • name= The name of the adventure. If noname is set to 'yes', this will only be used when displaying the image, provided an image is provided.
  • image= The name of the image the adventure uses. If this parameter is not passed in, no image will be displayed.
  • num= Puts a link in the upper right corner to the Choice Adventures by Number page, displaying the given text as the number(s) associated to this particular adventure page. No link is displayed if this parameter is not passed to the template.
  • autocat= Set this to 'no' if you do not want the page to automatically be categorized in Category:Non-combat Adventures. The page will automatically be categorized in any other case.
This page was last modified on 26 July 2009, at 05:01.
This page has been accessed 1,049 times.
About TheKolWiki  Disclaimers
 
© 2005 - 2008 Coldfront L.L.C.
About Coldfront | Privacy Policy | Advertising