Template:ImageLocation: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly><div class="bg3wiki-imagetext" style="display: inline-table; margin: 3px; padding-bottom:20px"> <div class="bg3wiki-imagetext-image" style="display: flex; justify-content: center; align-items: center; width: 250px; height:150px; overflow:hidden;">[[File:{{{1}}}|{{#if:{{{tall|}}}|250px|x150px}}|{{{2}}}|link={{{2}}}]]</div> <div class="bg3wiki-imagetext-text" style="width: 250px; text-align: center;">[[{{{2}}}]]<br><span style="font-size: 80%;">{{{3}}}</span>...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="bg3wiki-imagetext" style="display: inline-table; margin: 3px; padding-bottom:20px">
<includeonly><div style="display: inline-table; margin: 3px; padding-bottom:20px; width:250px; text-align:center;">
<div class="bg3wiki-imagetext-image" style="display: flex; justify-content: center; align-items: center; width: 250px;  height:150px; overflow:hidden;">[[File:{{{1}}}|{{#if:{{{tall|}}}|250px|x150px}}|{{{2}}}|link={{{2}}}]]</div>
<div style="height:150px; width:250px; overflow:hidden;>
<div class="bg3wiki-imagetext-text" style="width: 250px; text-align: center;">[[{{{2}}}]]<br><span style="font-size: 80%;">{{{3}}}</span></div>
[[File:{{{1}}}|x150px|link={{{2}}}|alt=An image of the location "{{{2|}}}"]]
</div>
<p style="margin-bottom:5px;">[[{{{2}}}]]</p>
<p style="margin-bottom:5px;">{{{3|}}}</p>
{{#if:{{{4|}}}|{{ublist|
{{{4}}}
}}}}
</div></includeonly>
</div></includeonly>
<noinclude>
<noinclude>
Based on [[:Template:ImageQuest]]. Usage:<br>
Based on [[:Template:ImageQuest]]. Usage:<br>
<code><nowiki>{{ImageLocation|img|name|description|tall=y if img taller than wide}}</nowiki></code>
<code><nowiki>{{ImageLocation|img|name|description|sub-locations}}</nowiki></code>


{{ImageLocation|Grand Mausoleum Vestibule.jpg|Grand Mausoleum|The Thorm family mausoleum, resting place of Melodia Thorm and entrance to the Gauntlet of Shar<br>
{{ImageLocation|Grand Mausoleum Vestibule.jpg|Grand Mausoleum|The Thorm family mausoleum, resting place of Melodia Thorm and entrance to the Gauntlet of Shar|* [[Gauntlet of Shar]]
[[Gauntlet of Shar]]
}}
}}
{{ImageLocation|Arcane Tower.jpg|Arcane Tower|An isolated wizard tower protected by Arcane Cannons|tall=y}}
{{ImageLocation|Arcane Tower South.png|Arcane Tower|An isolated wizard tower protected by Arcane Cannons}}
{{ImageLocation|Open Hand Temple Front.jpg|Open Hand Temple|A temple dedicated to Ilmater, currently grieving the loss of their head priest<br>
{{ImageLocation|Open Hand Temple Front.jpg|Open Hand Temple|A temple dedicated to Ilmater, currently grieving the loss of their head priest|* [[Open Hand Temple Cellar]]
[[Open Hand Temple Cellar]]<br>
* [[Under Temple Cave Area]]
[[Under Temple Cave Area]]
}}
}}
[[Category:Templates]]
 
</noinclude>
== Template data ==
<templatedata>
{
"params": {
"1": {
"aliases": [
"Image name"
],
"description": "An image of the location.",
"example": "Lower City.jpg",
"type": "wiki-file-name",
"required": true
},
"2": {
"aliases": [
"Location name"
],
"description": "The page name of the location. Is used to link to the article.",
"example": "Lower City",
"type": "wiki-page-name",
"required": true
},
"3": {
"aliases": [
"Description"
],
"description": "A description of the location.",
"example": "An isolated wizard tower.",
"type": "string",
"suggested": true
},
"4": {
"label": "Sub-locations",
"description": "A bulleted list of any sub-locations in the area.",
"example": "* [[The Hollow]]"
}
},
"description": "A div styled info box for linking location pages.",
"paramOrder": [
"1",
"2",
"3",
"4"
],
"format": "block"
}
</templatedata>
 
[[Category:Templates]]</noinclude>

Latest revision as of 10:03, 25 February 2024


Based on Template:ImageQuest. Usage:
{{ImageLocation|img|name|description|sub-locations}}

An image of the location "Grand Mausoleum"

Grand Mausoleum

The Thorm family mausoleum, resting place of Melodia Thorm and entrance to the Gauntlet of Shar

An image of the location "Arcane Tower"

Arcane Tower

An isolated wizard tower protected by Arcane Cannons

An image of the location "Open Hand Temple"

Open Hand Temple

A temple dedicated to Ilmater, currently grieving the loss of their head priest


Template data

A div styled info box for linking location pages.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
11 Image name

An image of the location.

Example
Lower City.jpg
Filerequired
22 Location name

The page name of the location. Is used to link to the article.

Example
Lower City
Page namerequired
33 Description

A description of the location.

Example
An isolated wizard tower.
Stringsuggested
Sub-locations4

A bulleted list of any sub-locations in the area.

Example
* [[The Hollow]]
Unknownoptional