Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse correctly the "Multiple Locations" construct #8

Open
nicolas-raoul opened this issue Aug 7, 2015 · 0 comments
Open

Parse correctly the "Multiple Locations" construct #8

nicolas-raoul opened this issue Aug 7, 2015 · 0 comments

Comments

@nicolas-raoul
Copy link
Owner

Example:

* {{eat
| name=Harold's Chicken Shack | url= | email=
| address= | lat= | long= | directions=
| phone= | tollfree= | fax=
| hours= | price=$2–5
| content=The great South Side fried chicken chain is cheap, usually a little dirty, and always delicious. Harold's was born right near here on 47th street, by the way, in north [[Chicago/Hyde Park|Kenwood]], although the original location (at Greenwood) closed long ago.
}}
:* {{eat
| name= | url= | email=
| address=307 E 55th St | lat= | long= | directions=
| phone=+1 773 373-9016 | tollfree= | fax=
| hours=10AM-3AM daily | price=
| content=
}}
:* {{eat
| name= | url= | email=
| address=108 E 47th St | lat= | long= | directions=
| phone=+1 773 285-8362 | tollfree= | fax=
| hours=Su-Th 11AM-3AM, F Sa 11AM-4AM | price=
| content=
}}

Notice the : character before each sub-location.
Most parameters (except address, latitude, longitude, image) should be inherited from the first one. Also the url if not overridden.

Details: https://en.wikivoyage.org/wiki/Wikivoyage:Listings#Multiple_locations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant