Template:Adventuretop: Difference between revisions

From A KoL Wiki
imported>Flargen
m how many tries will this take, Mr. Owl?
imported>Flargen
m try again++;
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{num|}}}|<div style="text-align:right; float: right; font-size:80%">'''{{#ifexpr:{{{num}}}<100|[[Choice Adventures by Number|Choice adventure number{{#if:{{{extranums|}}}|s}}]]|[[Choice Adventures by Number ({{#expr:({{{num}}} - 50) round -2}}-{{#expr:(({{{num}}} + 50) round -2) - 1)|Choice adventure number{{#if:{{{extranums|}}}|s}}]]}}}}: '''{{{num}}}{{#if:{{{extranums|}}}|, {{{extranums}}}}}'''</div>{{clear}}|}}
{{#if:{{{num|}}}|<div style="text-align:right; float: right; font-size:80%">'''
{{
#ifexpr:{{{num}}} < 100|[[Choice Adventures by Number|Choice adventure number{{
#if:{{{extranums|}}}|s}}]]|[[Choice Adventures by Number ({{#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>
<div style="text-align:center;">{{#ifeq:{{{noname}}}|yes||'''{{{name}}}'''<br />}}{{#ifeq:{{{noname}}}|yes|{{#if:{{{image|}}}|[[image:{{{image}}}]]}}|{{#if:{{{image|}}}|[[image:{{{image}}}|{{{name}}}]]|}}}}</div>
__NOTOC__{{#ifeq:{{{autocat|yes}}}|no||{{#if:{{{num|}}}|[[Category:Choice Adventures]]|[[Category:Non-combat Adventures]]}}}}</includeonly><noinclude>
__NOTOC__{{#ifeq:{{{autocat|yes}}}|no||{{#if:{{{num|}}}|[[Category:Choice Adventures]]|[[Category:Non-combat Adventures]]}}}}</includeonly><noinclude>

Revision as of 04:44, 26 July 2009

{{#if:{{{num|}}}|<div style="text-align:right; float: right; font-size:80%">''' {{ #ifexpr:{{{num}}} < 100|[[Choice Adventures by Number|Choice adventure number{{ #if:{{{extranums|}}}|s}}]]|[[Choice Adventures by Number ({{#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>

__NOTOC__{{#ifeq:{{{autocat|yes}}}|no||{{#if:{{{num|}}}|[[Category:Choice Adventures]]|[[Category:Non-combat Adventures]]}}}}

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.