Template:List entry: Difference between revisions

From FHX Wiki
m (added draft warning)
No edit summary
Line 2: Line 2:
{| cellpadding="5" cellspacing="0" style="border:1px solid darkgray; width:33em; height:14em;"
{| cellpadding="5" cellspacing="0" style="border:1px solid darkgray; width:33em; height:14em;"
  |-  
  |-  
  | rowspan="2" align="center" style="width: 130px; height: 130px" | {{#if: {{{image|}}} | [[File:{{{image}}}|120x120px]] | [[File:No image available.svg|120x120px]] }}
  | rowspan="2" align="center" style="width: 130px; height: 130px" | {{#if: {{{image|}}} | [[File:{{{image}}}|120x120px]] | ''Image missing.'' }}
  | style="height:30px" | '''''{{#if: {{{displayname|}}}|[[{{{name|}}}|{{{displayname|}}}]]|{{cname|{{{name}}}}}}}'''''
  | style="height:30px" | '''''[[{{#if: {{{name|}}}|{{{name}}}|Name required.}}]]'''''
  |-
  |-
  | valign="top" | {{{desc}}}
  | valign="top" | {{#if: {{{desc|}}}|{{{desc}}}|Description required.}}
|}
|}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
==Description==
== Description ==
This is the '''{{PAGENAME}}''' template. This template is used for listings of things with images and an associated short description.
It should be transcluded in the following format:
<pre>
<pre>
{{List entry
{{List entry
Line 16: Line 18:
}}
}}
</pre>
</pre>
This template is used for listings of things with pictures and an associated short description.
== Parameters ==
; image : Required. Image file for the list entry.
; name : Required. Title of the list entry (eg. Bat, Gorgon, Rog Imperial City (V3), etc.)
; desc : Required. Description of the list entry. Include links where appropriate.


;Example
== Example ==
{{List entry
<pre>
|image=High-Elf Icon.gif
{{List entry|image=Barbarian icon.gif|name=Barbarian|desc=Large humanoid creatures.}}
|name=High-Elf
{{List entry|image=Hatti Copper Gorgon-42.png|name=Gorgon|desc=Quadrupedal bovine creatures clad in heavy armor. They use a '''Poison Breath''' attack that deals continuous damage to their target.}}
|desc=Humanoid creatures with pointy ears.}}
{{List entry|image=High-Elf Icon.gif|name=High-Elf|desc=Humanoid creatures with pointy ears.}}
{{List entry|image=Boss-cultpriest.png|name=Cult Priest|desc=Level 65 world boss that spawns in [[Depthless Orifice/50+|50+ pvp]]. She is a taller than average [[High-Elf]].}}
</pre>
{{List entry|image=Barbarian icon.gif|name=Barbarian|desc=Large humanoid creatures.}}
{{List entry|image=Hatti Copper Gorgon-42.png|name=Gorgon|desc=Quadrupedal bovine creatures clad in heavy armor. They use a '''Poison Breath''' attack that deals continuous damage to their target.}}
{{List entry|image=High-Elf Icon.gif|name=High-Elf|desc=Humanoid creatures with pointy ears.}}
{{List entry|image=Boss-cultpriest.png|name=Cult Priest|desc=Level 65 world boss that spawns in [[Depthless Orifice/50+|50+ pvp]]. She is a taller than average [[High-Elf]].}}


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Revision as of 06:22, 5 September 2024

{{page warning}message=This template is in draft.}}

Description

This is the List entry template. This template is used for listings of things with images and an associated short description. It should be transcluded in the following format:

{{List entry
| image =
| name =
| desc =
}}

Parameters

image
Required. Image file for the list entry.
name
Required. Title of the list entry (eg. Bat, Gorgon, Rog Imperial City (V3), etc.)
desc
Required. Description of the list entry. Include links where appropriate.

Example

{{List entry|image=Barbarian icon.gif|name=Barbarian|desc=Large humanoid creatures.}}
{{List entry|image=Hatti Copper Gorgon-42.png|name=Gorgon|desc=Quadrupedal bovine creatures clad in heavy armor. They use a '''Poison Breath''' attack that deals continuous damage to their target.}}
{{List entry|image=High-Elf Icon.gif|name=High-Elf|desc=Humanoid creatures with pointy ears.}}
{{List entry|image=Boss-cultpriest.png|name=Cult Priest|desc=Level 65 world boss that spawns in [[Depthless Orifice/50+|50+ pvp]]. She is a taller than average [[High-Elf]].}}
Barbarian
Large humanoid creatures.
Gorgon
Quadrupedal bovine creatures clad in heavy armor. They use a Poison Breath attack that deals continuous damage to their target.
High-Elf
Humanoid creatures with pointy ears.
Cult Priest
Level 65 world boss that spawns in 50+ pvp. She is a taller than average High-Elf.