User:Zackmann08/pp
Automatic maps in infoboxes
[edit]To insert into an Infobox, simply add the following to automatically support pushpin maps.
| image2 = {{#invoke:Location map|infobox_pushpin_map
| pushpin_map = {{if empty|{{{PARAM|}}}|{{{pushpin_map|}}}}}
| pushpin_relief = {{if empty|{{{PARAM|}}}|{{{pushpin_relief|}}}}}
| pushpin_label = {{if empty|{{{PARAM|}}}|{{{pushpin_label|}}}}}
}}
| pushpin_map_args = y
- You can use
{{Location map/doc/infobox parameters}}. - If any default values are modified in the #invoke calls, add them as parameters in the form |parameter_name=value.
=== Pushpin map ===
{{Location map/doc/infobox parameters}}
Adoption
[edit]Pushpin map cleanup
[edit]As part of a larger refactor of Module:Location map, I will be refactoring the way that this Infobox calls the location map code. The only noticeable change for most will be that the parameter names related to the pushpin maps will now all start with |pushpin_...=. This is part of a larger effort to make things consistent across Infoboxes. When this is done, ALL infoboxes using pushpin maps will use the same parameters. For more information about this, please see this post. As part of this cleanup, I am also going to resolving any conflicting parameters that I can find and cleaning up parameter names that fail to conform to MOS:INFOBOXNAME. Note that this follows a long list of similar clean ups that I have done on countless other Infoboxes. The parameters I plan to replace are the following:
| Deprecate | Replace with |
|---|
Please chime in below with any questions, comments or concerns about this cleanup.