Template:List entry: Difference between revisions

From FHX Wiki
(Created page with "<includeonly><div style="float:left; margin-right:5px; margin-bottom:5px;"> {| 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]] | 120x120px }} | style="height:30px" | '''''{{#if: {{{displayname|}}}|[[{{{name|}}}|{{{displayname|}}}]]|{{cname|{{{name}}}}}}}''''' |- | valig...")
 
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="float:left; margin-right:5px; margin-bottom:5px;">
<includeonly><div style="float:left; margin-right:5px; margin-bottom:5px;">
{| cellpadding="5" cellspacing="0" style="border:1px solid darkgray; width:33em; height:14em;"
{| cellpadding="5" cellspacing="0" style="border:1px solid darkgray; width:30em; height:10em;"
  |-  
  |-  
  | 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|link={{{name}}}]] | ''Image needed.'' }}
  | style="height:30px" | '''''{{#if: {{{displayname|}}}|[[{{{name|}}}|{{{displayname|}}}]]|{{cname|{{{name}}}}}}}'''''
  | style="height:30px" | '''''{{#if: {{{name|}}}|[[{{{name}}}]]|Name required.}}'''''
  |-
  |-
  | valign="top" | {{{desc}}}
  | valign="top" style="font-size:0.9em" | {{#if: {{{desc|}}}|{{{desc}}}|Description needed.}}
|}
|}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
==Description==
== Description ==
This is the '''{{PAGENAME}}''' template. This template is used for listings things with images and an associated short description.
It should be transcluded in the following format:
<pre>
<pre>
{{List entry
{{List entry
| name =
| image =
| image =
| name =
| desc =
| desc =
}}
}}
</pre>
</pre>
This template is used for listings of things with pictures and an associated short description.
Include <code><nowiki>{{clear}}</nowiki></code> after a group of entries, before starting a new section.
 
== Parameters ==
; name : Required. Title of the list entry (eg. Bat, Gorgon, Rog Imperial City (V3), etc.)
; image : Required. Image file for the list entry.
; desc : Required. Description of the list entry. Include links where appropriate.


;Example
== Example ==
{{List entry
<pre>
|image=https://cdn.fhxrestoration.com/common/entities/characterRaces/icons/highelf.gif
{{List entry|name=Lorem|image=Missing icon.png|desc=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud...}}
|name=High-Elf
{{List entry|name=Barbarian|image=Barbarian icon.gif|desc=Large humanoid creatures.}}
|desc=Humanoid creatures with pointy ears.}}
{{List entry|name=:Category:Gorgon{{!}}Gorgon|image=Hatti Copper Gorgon-42.png|desc=Quadrupedal bovine creatures clad in heavy armor. They use a '''Poison Breath''' attack that deals continuous damage to their target.}}
{{List entry|name=High-Elf|image=High-Elf Icon.gif|desc=Humanoid creatures with pointy ears.}}
{{List entry|name=Cult Priest|image=Boss-cultpriest.png|desc=Level 65 world boss that spawns in [[Depthless Orifice/50+|50+ pvp]]. She is a taller than average [[High-Elf]].}}
{{List entry|name=Rog Imperial City (V3){{!}}Rog Imperial City|image=Rog Imperial Castle city.png|desc=Capital city of [[South Rog Frontier|South Rog Frontier (Idios)]], the starting location for all new characters, and the hub for [[List of daily quests|level 30+ daily quests]].}}
{{clear}}
</pre>
{{List entry|name=Lorem|image=Missing icon.png|desc=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud...}}
{{List entry|name=Barbarian|image=Barbarian icon.gif|desc=Large humanoid creatures.}}
{{List entry|name=:Category:Gorgon{{!}}Gorgon|image=Hatti Copper Gorgon-42.png|desc=Quadrupedal bovine creatures clad in heavy armor. They use a '''Poison Breath''' attack that deals continuous damage to their target.}}
{{List entry|name=High-Elf|image=High-Elf Icon.gif|desc=Humanoid creatures with pointy ears.}}
{{List entry|name=Cult Priest|image=Boss-cultpriest.png|desc=Level 65 world boss that spawns in [[Depthless Orifice/50+|50+ pvp]]. She is a taller than average [[High-Elf]].}}
{{List entry|name=Rog Imperial City (V3){{!}}Rog Imperial City|image=Rog Imperial Castle city.png|desc=Capital city of [[South Rog Frontier|South Rog Frontier (Idios)]], the starting location for all new characters, and the hub for [[List of daily quests|level 30+ daily quests]].}}
{{clear}}
 
== TODO ==
* Separate style formatting into a styles.css page
* Adjust entry cell size to fit 3 across a page
** Might be limited by global page formatting


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

Latest revision as of 15:32, 12 September 2024

Description

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

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

Include {{clear}} after a group of entries, before starting a new section.

Parameters

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

Example

{{List entry|name=Lorem|image=Missing icon.png|desc=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud...}}
{{List entry|name=Barbarian|image=Barbarian icon.gif|desc=Large humanoid creatures.}}
{{List entry|name=:Category:Gorgon{{!}}Gorgon|image=Hatti Copper Gorgon-42.png|desc=Quadrupedal bovine creatures clad in heavy armor. They use a '''Poison Breath''' attack that deals continuous damage to their target.}}
{{List entry|name=High-Elf|image=High-Elf Icon.gif|desc=Humanoid creatures with pointy ears.}}
{{List entry|name=Cult Priest|image=Boss-cultpriest.png|desc=Level 65 world boss that spawns in [[Depthless Orifice/50+|50+ pvp]]. She is a taller than average [[High-Elf]].}}
{{List entry|name=Rog Imperial City (V3){{!}}Rog Imperial City|image=Rog Imperial Castle city.png|desc=Capital city of [[South Rog Frontier|South Rog Frontier (Idios)]], the starting location for all new characters, and the hub for [[List of daily quests|level 30+ daily quests]].}}
{{clear}}
Lorem
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud...
Barbarian
Large humanoid creatures.
Gorgon 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.
Rog Imperial City Rog Imperial City
Capital city of South Rog Frontier (Idios), the starting location for all new characters, and the hub for level 30+ daily quests.

TODO

  • Separate style formatting into a styles.css page
  • Adjust entry cell size to fit 3 across a page
    • Might be limited by global page formatting