Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox place: Difference between revisions

Template page
Content deleted Content added
Adding map
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1:
<includeonly>
<templatestyles src="Template:Infobox place/infobox.css" />
<infobox layout="stacked">
<title source="name"><default>{{PAGENAME}}</default></title>
<image source="image"><alt source="alt"></alt></image>
<data source="caption"></data>
<data source="attribution"></data>
<data source="aka"><label>Also known as:</label></data>
<group>
<header> About </header>
<data source="category"><label>Category:</label></data>
<data source="heritage-cat"><label>Heritage Category:</label></data>
<data source="heritage-grade"><label>Grade:</label></data>
<data source="times"><label>Hours:</label></data>
<data source="telephone"><label>Telephone number:</label></data>
<data source="website"><label>Website:</label></data>
</group>
<group collapse="closed">
<header> History </header>
<data source="open"><label>Opened:</label></data>
Line 20 ⟶ 25:
<group>
<header> Location </header>
<data source="maplocation"><labelformat>Map{{#display_map:center={{{location}}}|zoom={{{zoom|no}}}|scrollwheelzoom=off|static=yes}}</labelformat></data>
<data source="street"><label>Street:</label></data>
<data source="town"><label>Town:</label></data>
<data source="village"><label>Village:</label></data>
<data source="postcode"><label>Postcode:</label></data>
<data source="nearby"><label>Nearby:</label></data>
</group>
</infobox>{{#if:{{{name|}}}|[[Category:{{{name}}}]]|}}{{#if:{{{image|}}}||[[Category:Infobox without image]]}}{{#if:{{{category|}}}|[[Category:{{{category}}}]]|}}{{#if:{{{heritage-cat|}}}|[[Category:{{{heritage-cat}}}]]|}}{{#if:{{{heritage-grade|}}}|[[Category:Grade {{{heritage-grade}}} listed building]]|}}{{#if:{{{street|}}}|[[Category:Places on {{{street}}}]]|}}{{#if:{{{town|}}}|[[Category:Places in {{{town}}}]]|}}{{#if:{{{village|}}}|[[Category:Places in {{{village}}}]]|}}{{#if:{{{postcode|}}}|[[Category:Places in {{{postcode}}}]]|}}</includeonly><noinclude>
</infobox>
</includeonly><noinclude>
Use this code:
<pre>
Line 32 ⟶ 38:
|name = name of place here
|image = image here.jpg
|alt = alt text
|caption = caption of image
|attribution = attribution to image maker
|aka =
* alternative name
* other name
|category = Restaurant/Park/Church/etc.
|heritage-cat = Scheduled Monument/Listed
|heritage-grade = I/II*/II
|times =
*Monday - Friday: 9:00 - 20:00
Line 50 ⟶ 61:
*what it does 2
|link = what's it related to?
|maplocation = {{#display_map:center=Rothwell Leeds | service=google}}
|zoom =
|street = street name here
|town = Rothwell (only town allowed)
|village = Oulton/Robin Hood/Stourton etc.
|postcode = postcode here
|nearby = what's nearby?
Line 58 ⟶ 72:
{{Infobox place
|name = name of place here
|image = All Saints Church - Church Street, Woodlesford - geograph.org.uk - 841909.jpg
|image = image here.jpg
|alt = alt text
|caption = caption of image
|attribution = attribution to image maker
|aka =
* alternative name
* other name
|category = Restaurant/Park/Church/etc.
|heritage-cat = Scheduled Monument/Listed
|heritage-grade = I/II*/II
|times =
*Monday - Friday: 9:00 - 20:00
Line 77 ⟶ 96:
*what it does 2
|link = what's it related to?
|maplocation = {{#display_map:center=Rothwell Leeds | service=google}}
|zoom =
|street = street name here
|town = Rothwell (only town allowed)
|village = Oulton/Robin Hood/Stourton etc.
|postcode = postcode here
|nearby = what's nearby?
}}}</noincludetemplatedata>
{
"params": {
"name": {
"label": "Name",
"description": "The name of the place.",
"example": "Rothwell Country Park, Blackburn Hall, Carlton, etc.",
"type": "string",
"default": "Page name",
"autovalue": "{{PAGENAME}}",
"required": true
},
"aka": {
"label": "Also know as",
"description": "For other commonly used names of the place.",
"example": "Rothwell Urban District Offices, Rothwell One Stop Centre, Rothwell Area Office",
"type": "string",
"autovalue": ""
},
"image": {
"label": "Image",
"description": "An image of the place.",
"example": "imagename.jpg imagename.png",
"type": "content",
"autovalue": "",
"suggested": true
},
"category": {
"label": "Category",
"description": "The category of place it is.",
"example": "Park, Business, Office, Pub, etc.",
"type": "string",
"suggested": true
},
"times": {
"label": "Hours",
"description": "The open hours of the place. If all day, leave blank.",
"example": "7-10, 5-9",
"type": "string"
},
"telephone": {
"label": "Telephone",
"description": "The telephone number for the place.",
"example": "[tel:07891277108 07891277108] (Park Ranger)",
"type": "string"
},
"website": {
"label": "Website",
"description": "The website of the place.",
"example": "[https://www.ywt.org.uk/nature-reserves/rothwell-country-park Yorkshire Wildlife Trust]",
"type": "string"
},
"open": {
"label": "First opened",
"description": "The date the place first opened.",
"example": "1st February 1999",
"type": "string",
"suggested": true
},
"closed": {
"label": "Date of Closure",
"description": "The date the place closed.",
"example": "17th February 2019",
"type": "string"
},
"purpose": {
"label": "Purpose of the Place",
"description": "What the place was used for or created for. If the purpose is clear, leave blank.",
"example": "To house the offices of the Rothwell Urban District.",
"type": "string"
},
"link": {
"label": "Related to",
"description": "Other former or present places which are related to this place.",
"example": "Rothwell Pit for Rothwell Country Park and vice versa.",
"type": "string",
"suggested": true
},
"street": {
"label": "Street",
"description": "The street the place is on.",
"example": "Church Street",
"type": "string",
"suggested": true
},
"postcode": {
"label": "Postcode",
"description": "The postcode of the place.",
"example": "LS26 0NG",
"type": "string",
"suggested": true
},
"nearby": {
"label": "Nearby",
"description": "Other places near to this place.",
"example": "Morrisons for Allen's Newsagents and vice versa.",
"type": "string",
"suggested": true
},
"caption": {
"label": "Caption",
"description": "A caption of the image.",
"example": "Fanny Pit in 1984.",
"type": "string",
"autovalue": "",
"suggested": true
},
"heritage-cat": {
"label": "Heritage Category",
"description": "Only used if the building is listed or a scheduled monument",
"example": "Scheduled Monument or Listed",
"type": "string"
},
"heritage-grade": {
"label": "Heritage Grade",
"description": "Only used if it is a listed building",
"example": "I or II* or II",
"type": "string"
},
"location": {
"label": "Map of the Place",
"description": "The name or coordinates of the place",
"example": "Rothwell Leeds or 53.75808, -1.44646",
"type": "string",
"required": true,
"suggested": true
},
"alt": {
"label": "Alternative Text",
"description": "Alternative text for the image",
"example": "An image of mining buildings at Fanny Pit in 1984.",
"type": "string",
"suggested": true
},
"attribution": {
"label": "Attribution",
"description": "Attribution of the image's copyright owner",
"example": "[https://www.geograph.org.uk/photo/1383019 Photo] © [https://www.geograph.org.uk/profile/27348 Mike Kirby] ([https://creativecommons.org/licenses/by-sa/2.0/ cc-by-sa/2.0])",
"suggested": true
},
"zoom": {
"label": "Zoom",
"description": "Map zoom - leave unless map looks funny",
"example": "16",
"default": "no"
}
},
"description": "This infobox is for brief information about the place you are creating an article for.",
"paramOrder": [
"name",
"image",
"alt",
"caption",
"attribution",
"aka",
"category",
"heritage-cat",
"heritage-grade",
"times",
"telephone",
"website",
"open",
"closed",
"purpose",
"link",
"location",
"street",
"postcode",
"nearby",
"zoom"
],
"format": "block"
}
</templatedata></noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.