Template:Location page: Difference between revisions
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) (Added no output option to simply insert a location silently) |
||
(17 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|}}} | | | 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|}}}}}]] }} | |||
{{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|}}} | [[ | |||
{{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: | |||
{{Main namespace only|[[Category:Locations]][[Category:{{#switch: {{{act}}} | prologue = Prologue | one = Act One | two = Act Two | three = Act Three }} Locations]]{{#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
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 |
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
prefix | prefix | What to prefix the name with | String | optional |
name | name | If specified, overrides the name. Otherwise, it will take the name of the article | String | required |
alt name prefix | alt name prefix | What to prefix the alt name with | String | optional |
alt name | alt name | Alternative name for the location | String | optional |
image | image | Image to use as the main page image at the top right | File | optional |
image description | image description | Description of the main page image, displayed underneath. | String | optional |
act | act | Which act of the game this location appears in
| String | required |
summary | summary | Summary of the location. Also used for SEO purposes. | Content | optional |
region prefix | region prefix | What to prefix the region name with | String | optional |
region | region | The region where this location is located within. Slightly changes the summary.
| Page name | optional |
north | north | The location to the north of this location. | Page name | optional |
east | east | The location to the east of this location. | Page name | optional |
south | south | The location to the south of this location. | Page name | optional |
west | west | The location to the west of this location. | Page name | optional |
no output | no output | If yes, don't output anything and just insert into the table. | String | optional |