Template:DallasMap/downtown

From Wikipedia, the free encyclopedia


This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.

Contents

[edit] How to use

This template does not use "x=", "y=" etc. — the parameters must be entered in a specific order without equal signs.

IN IMPLEMENTATION DO NOT USE LINE BREAKS. ALL CODE SHOULD BE ON A SINGLE LINE.

{{DallasMap
|suffix used for image and subtemplate
|master neighborhood link (first parameter of pipe link)
|master neighborhood link name (second parameter of pipe link)
|what you call subdivisions ("districts", "communities", "neighborhoods")
|width of map (in pixels) (do not add "px" to end, just use a number)
|optional cite.php reference
}}

[edit] how the suffix works

  • (ex) of map name using suffix
  • (ex) of template name using suffix

[edit] A working example

IN IMPLEMENTATION DO NOT USE LINE BREAKS. ALL CODE SHOULD BE ON A SINGLE LINE.

{{DallasMap
|downtown
|Downtown Dallas
|downtown Dallas
|Districts
|400
}}
Districts of downtown Dallas

[edit] Extensibility

This template is designed to allow any number of maps to work within it.

Though it is called DallasMap, no coding is Dallas-specific and any locale can be used.

Remember than in order for your template to work, you have to create a subtemplate called "Template:DallasMap/{{first parameter used in this template}}.

If you do not feel comfortable creating a map but would like to make one, ask Drumguy8800 for help! It's fairly easy to create and it makes a great addition to articles.


[edit] About this template

This is a DallasMap area parameter template. For information on displaying it, see Template:DallasMap.

[edit] How to code

<!--Outer Items-->
{{DallasMap/item|'''display name'''|article link name|x-position|y-position|black}}
<!--Inner Items-->
{{DallasMap/item|display name|article link name|x-position|y-position|color}}
<!--Roads-->
{{DallasMap/road|road symbol image name (.svg)|size|x-position|y-position}}

[edit] Further Instruction

For more information, contact User:Drumguy8800 for help.