Difference between revisions of "Template:Location"

From EVE University Wiki
Jump to: navigation, search
(revert)
m (Test for empty/non-present parameters.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{| class="wikitable" style="margin-left: 10px;width: 85%"
 
<includeonly>{| class="wikitable" style="margin-left: 10px;width: 85%"
| '''{{{name}}}'''|| {{#if: {{{system}}} | Location: {{{system}}} }}
+
| {{anchor|{{{name}}} }}'''{{{name}}}'''|| {{#if: {{{system}}} | Location: {{{system}}} }}
 
|-
 
|-
| style="width: 350px" rowspan="2"| {{#if: {{{image}}} | [[Image:{{{image}}}|350px]] | [[Image:Transparent.png|350px]] }} ||style="vertical-align:top;width: 100%"| {{{text}}} {{#if: {{{quote}}} | {{quote|{{{quote}}}}}}}  
+
| style="width: 350px" {{#if: {{{link|}}} | rowspan="2"}} | {{#if: {{{image|}}} | [[Image:{{{image}}}|350px]] | [[Image:Transparent.png|350px]] }} || style="vertical-align:top;width: 100%" | {{{text|}}} {{#if: {{{quote|}}} | {{quote|{{{quote}}} }} }}  
 
|-
 
|-
{{#if: {{{link}}} | {{!}} style="height: 25px" {{!}} {{{link}}} }}
+
{{#if: {{{link|}}} | {{!}} style="height: 25px" {{!}} {{{link}}} }}
 
|}
 
|}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
(example out of doc since the formatting breaks inside the box)
 
(example out of doc since the formatting breaks inside the box)
{{Template:Location
+
{{Location
|name = The Solitaire
+
|name   = The Solitaire
 
|system = Ienakkamon
 
|system = Ienakkamon
|image = Solitaire.jpg
+
|image = Solitaire.jpg
|quote = A ghost ship of enormous proportions, this Ragnarok-class Titan should be at the core of a Minmatar strike force or planetary defense, yet here it floats in silence. Its hull is airtight, yet all useful technology has been meticulously stripped from it, including weapons systems, propulsion, and electronics. There is no trace of its crew, despite all of its escape pods being present.
+
|quote = A ghost ship of enormous proportions, this Ragnarok-class Titan should be at the core of a Minmatar strike force or planetary defense, yet here it floats in silence. Its hull is airtight, yet all useful technology has been meticulously stripped from it, including weapons systems, propulsion, and electronics. There is no trace of its crew, despite all of its escape pods being present.
|text = The remains of a Ragnarok-class Titan. It is unknown why the ship is in Caldari space. You can use entosis module on the ship to retrieve items for [[Project Discovery treasure hunt]].  
+
|text   = The remains of a Ragnarok-class Titan. It is unknown why the ship is in Caldari space. You can use entosis module on the ship to retrieve items for [[Project Discovery treasure hunt]].  
|link=
+
|link   =
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Latest revision as of 14:05, 28 March 2024

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template is used for making location boxes.
The template will also add an anchor for the location name.
Syntax
{{Location
|name   = 
|system =
|image  = 
|quote  = 
|text   = 
|link   = 
}}
Parameters
name is mandatory. All other parameters may be omitted.
name
Name of the location
system
Name of the system the location is in
image
File name of the image with type but without brackets.
quote
In-game description
text
Description
link
Relevant link with with square brackets.
Sample output
{{Location
|name   = The Solitaire
|system = Ienakkamon
|image  = Solitaire.jpg
|quote  = A ghost ship of enormous proportions, this Ragnarok-class Titan should be at the core of a Minmatar strike force or planetary defense, yet here it floats in silence. Its hull is airtight, yet all useful technology has been meticulously stripped from it, including weapons systems, propulsion, and electronics. There is no trace of its crew, despite all of its escape pods being present.
|text   = The remains of a Ragnarok-class Titan. It is unknown why the ship is in Caldari space. You can use entosis module on the ship to retrieve items for [[Project Discovery treasure hunt]].
|link   = 
}}
gives...
Visit Template:Location/doc to edit this text! (How does this work?) (Refresh this text - why?)

(example out of doc since the formatting breaks inside the box)

The Solitaire Location: Ienakkamon
Solitaire.jpg The remains of a Ragnarok-class Titan. It is unknown why the ship is in Caldari space. You can use entosis module on the ship to retrieve items for Project Discovery treasure hunt.

A ghost ship of enormous proportions, this Ragnarok-class Titan should be at the core of a Minmatar strike force or planetary defense, yet here it floats in silence. Its hull is airtight, yet all useful technology has been meticulously stripped from it, including weapons systems, propulsion, and electronics. There is no trace of its crew, despite all of its escape pods being present.