Template:Test: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk's Bot
No edit summary
imported>Tlosk
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>|align=left| {{#ifeq:{{{Dungeon|}}}|| -- |[[{{{Dungeon}}}]] }}
{{#switch:{{uc:{{{2|N}}}}}
|align=center| {{#ifeq:{{{Coordinates|}}}|| -- | {{{Coordinates|}}} }}
| N = {{#switch:{{uc:{{{Map|All}}}}}
|align=center| {{#ifeq:{{{Wiki Map File|}}}|| -- |[[Image:{{{Wiki Map File}}}|20x20px]] [[:File:{{{Wiki Map File}}}{{!}}{{{Wiki Map File}}}]] }}
        | ALL = {{#expr: 128 - {{{1}}} / 102.8 * 128 round 0}}
|align=center| {{#ifeq:{{{ACmaps ID|}}}|| -- |[[Media:{{{ACmaps ID}}}.gif|{{{ACmaps ID}}}]] }}
        | NE  = {{#expr: 256 - {{{1}}} / 102.8 * 256 round 0}}
|align=center| {{#ifeq:{{{Other Site Link|}}}|| -- |[{{{Other Site Link}}} {{{Other Site Name|{{{Other Site Link}}}}}}] }}
        | SE  = 0
|align=center| {{#ifeq:{{{Related Quests|}}}|| -- | {{{Related Quests|}}} }}
        | NW  = {{#expr: 256 - {{{1}}} / 102.8 * 256 round 0}}
|-</includeonly><noinclude>
        | SW  = 0
{{Related|Wiki Templates|{{mtl|Dungeon Table}}}}
        }}
== Syntax ==
| S = {{#switch:{{uc:{{{Map|All}}}}}
<pre>
        | ALL = {{#expr: 128 + {{{1}}} / 102.8 * 128 round 0}}
{{Dungeon Maps
        | NE  = 0
|         Dungeon =
        | SE  = {{#expr: {{{1}}} / 102.8 * 256 round 0}}
|    Coordinates =
        | NW  = 0
|  Wiki Map File =
        | SW  = {{#expr: {{{1}}} / 102.8 * 256 round 0}}
|      ACmaps ID =
         }}
| Other Site Name =
| Other Site Link =
|  Related Quests =
}}
}}
</pre>


== Usage ==
Used as a single row within a table, see [[Template:Dungeon Table]] for more details.


{{{Map}}}
[[Category:Wiki Template]]
 
{{{1}}}
 
{{{2}}}
 
</includeonly>
<noinclude>
 
{{Test|Map=All|90.5|N}}
 
{{Test|Map=SE|100|S}}
</noinclude>
</noinclude>

Latest revision as of 08:41, 22 November 2011

Related topics: Wiki Templates, {{Dungeon Table}}

Syntax

{{Dungeon Maps
 |         Dungeon = 
 |     Coordinates = 
 |   Wiki Map File = 
 |       ACmaps ID = 
 | Other Site Name = 
 | Other Site Link =
 |  Related Quests = 
}}

Usage

Used as a single row within a table, see Template:Dungeon Table for more details.