Template:Location page: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
(Added no output option to simply insert a location silently)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{Main namespace only|
<includeonly>{{#if: {{{no output|}}} ||{{Main namespace only|{{PageSeo
{{PageSeo
| image = {{{image|}}}
| image = {{{image|}}}
| description = {{{name|{{PAGENAME}}}}} {{#if: {{{alt name|}}} | (also known as {{{alt name}}})<nowiki> </nowiki>}}is a {{#if: {{{region|}}} | [[location]] within the [[{{{region}}}]] | [[region]] }} in {{#switch: {{{act}}} | prologue = the [[Prologue]] of | one = [[Act One]] of | two = [[Act Two]] of | three = [[Act Three]] of }} [[Baldur's Gate 3]]. {{{summary|}}}
| description = {{#if: {{{prefix|}}} | {{{prefix}}}<nowiki> </nowiki>}}{{{name|{{PAGENAME}}}}} {{#if: {{{alt name|}}} | (also known as {{#if: {{{alt name prefix|}}} | {{{alt name prefix}}}<nowiki> </nowiki>}}{{{alt name}}})<nowiki> </nowiki>}}is a {{#if: {{{region|}}} | location within {{#if: {{{region prefix|}}} | {{{region prefix}}}<nowiki> </nowiki>}}{{{region}}} | region }} in {{#switch: {{{act}}} | prologue = the Prologue of | one = Act One of | two = Act Two of | three = Act Three of }} Baldur's Gate 3. {{{summary|}}}
}}
}}}}{{#if: {{{image|}}} | [[File:{{{image}}}|thumb|{{NoExcerpt|{{{image description|}}}}}]] }}{{#if: {{{north|}}}{{{west|}}}{{{east|}}}{{{south|}}}|{{Relative location
}}
{{#if: {{{image|}}} | [[File:{{{image}}}|thumb|{{NoExcerpt|{{{image description|}}}}}]] }}
{{#if: {{{north|}}}{{{west|}}}{{{east|}}}{{{south|}}}|{{Relative location
| region = {{{region|}}}
| region = {{{region|}}}
| location = {{{name|{{PAGENAME}}}}}
| location = {{{name|{{PAGENAME}}}}}
Line 13: Line 9:
| west = {{{west|}}}
| west = {{{west|}}}
| south = {{{south|}}}
| south = {{{south|}}}
}}}}
}}}}{{#if: {{{prefix|}}} | {{{prefix}}}<nowiki> </nowiki>}}'''{{{name|{{PAGENAME}}}}}''' {{#if: {{{alt name|}}} | (also known as {{#if: {{{alt name prefix|}}} | {{{alt name prefix}}}<nowiki> </nowiki>}}'''{{{alt name}}}''')<nowiki> </nowiki>}}is a {{#if: {{{region|}}} | [[Location]] within {{#if: {{{region prefix|}}} | {{{region prefix}}}<nowiki> </nowiki>}}[[{{{region}}}]] | [[region]] }} in {{#switch: {{{act}}} | prologue = the [[Prologue]] of | one = [[Act One]] of | two = [[Act Two]] of | three = [[Act Three]] of }} [[Baldur's Gate 3]]. {{{summary|}}}  
'''{{{name|{{PAGENAME}}}}}''' {{#if: {{{alt name|}}} | (also known as {{{alt name}}})<nowiki> </nowiki>}}is a {{#if: {{{region|}}} | [[location]] within the [[{{{region}}}]] | [[region]] }} in {{#switch: {{{act}}} | prologue = the [[Prologue]] of | one = [[Act One]] | two = [[Act Two]] of | three = [[Act Three]] of }} [[Baldur's Gate 3]]. {{{summary|}}}
{{TOC|limit=3}}


{{Main namespace only|[[Category:Locations]][[Category:{{#switch: {{{act}}} | prologue = Prologue | one = Act One | two = Act Two | three = Act Three }} Locations]]{{#cargo_store:
{{Main namespace only|[[Category:Locations]][[Category:{{#switch: {{{act}}} | prologue = Prologue | one = Act One | two = Act Two | three = Act Three }} Locations]]}}}}{{Main namespace only|{{#cargo_store:
_table = locations
_table = locations
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
| name = {{{name|{{#titleparts: {{PAGENAME}} }} }}}
| act = {{{act}}}
| act = {{{act}}}
| region = {{{region|}}}
| region = {{{region|}}}
| summary = {{{summary}}}
| summary = {{{summary|}}}
}}
}}
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare:
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare:

Latest revision as of 09:01, 27 August 2024

Template documentation

This template displays part of a Location page. It is responsible for the summary, main image and relative location template.

It will also insert a row into the locations Cargo table.

Copy-ready:

{{Location page
| prefix = 
| name =
| alt name prefix = 
| alt name =
| image = 
| image description = 
| act =
| summary =
| region prefix = 
| region = 
| north =
| west =
| east = 
| south =
}}

Examples

Usage:

{{Location page
| prefix = The
| name = Ebonlake Grotto
| alt name prefix = the
| alt name = Myconid Colony
| image = Ebonlake Grotto Overview.jpg
| image description = Overview of the area.
| act = one
| summary = It is the home of the [[Myconid]] Circle, a group of mushroom-like telepaths led by Sovereign {{CharLink|Spaw}}.
| region prefix = the
| region = Underdark
| north = 
| west = Dread Hollow
| east = Storehouse
| south = Decrepit Village
}}

Result

Underdark
Dread Hollow Ebonlake Grotto Storehouse
Decrepit Village
The Ebonlake Grotto (also known as the Myconid Colony) is a Location within the Underdark in Act One of Baldur's Gate 3. It is the home of the Myconid Circle, a group of mushroom-like telepaths led by Sovereign Spaw Spaw.

Template data

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
prefixprefix

What to prefix the name with

Stringoptional
namename

If specified, overrides the name. Otherwise, it will take the name of the article

Stringrequired
alt name prefixalt name prefix

What to prefix the alt name with

Stringoptional
alt namealt name

Alternative name for the location

Stringoptional
imageimage

Image to use as the main page image at the top right

Fileoptional
image descriptionimage description

Description of the main page image, displayed underneath.

Stringoptional
actact

Which act of the game this location appears in

Suggested values
prologue one two three
Stringrequired
summarysummary

Summary of the location. Also used for SEO purposes.

Contentoptional
region prefixregion prefix

What to prefix the region name with

Stringoptional
regionregion

The region where this location is located within. Slightly changes the summary.

Example
Underdark
Page nameoptional
northnorth

The location to the north of this location.

Page nameoptional
easteast

The location to the east of this location.

Page nameoptional
southsouth

The location to the south of this location.

Page nameoptional
westwest

The location to the west of this location.

Page nameoptional
no outputno output

If yes, don't output anything and just insert into the table.

Stringoptional
This template defines the table "locations". View table.