Help:PTemplates

From OpenStreetMap Wiki
Jump to navigation Jump to search

The pTemplates is a set of templates, whose names start with a p and that accede to parameters of a well structured WikiProject.

If your WikiProject has a sub-page called WikiProject */params with parameters set, the pTemplates would return the desired value.

Parameters

The param subpage stores slash separated data.

Those data are, in order :

name/lat/lon/zoom/west/bottom/right/top/type/population

Available templates

Those templates are :

pName
{{pName|Besançon}} = Besançon
pLat
{{pLat|Besançon}} = 47.2553
pLon
{{pLon|Besançon}} = 6.0121
pLeft
{{pLeft|Besançon}} = 5.8935
pBottom
{{pBottom|Besançon}} = 47.1981
pRight
{{pRight|Besançon}} = 6.1307
pTop
{{pTop|Besançon}} = 47.3125
pWest
alias of pLeft
pSouth
alias of pBottom
pEast
alias of pRight
pNorth
alias of pTop
pBbox
shorthand for pLeft,pBottom,pRight,pTop. {{pBbox|Besançon}} = 5.8935,47.1981,6.1307,47.3125
pZoom
{{pZoom|Besançon}} = 12
pPopulation
{{pPopulation|Besançon}} = 115400

Using the pTemplates

In a WikiProject

In the scope of your WikiProject, i.e. in the main page, or in a sub-page of the project, simply write the name of the template, e.g. {{pLat}}, to get the desired value.

Out of a WikiProject

Out of the scope of a WikiProject, you can get a param by writing the name of the template and passing the WikiProject as first argument, e.g. {{pLat|WikiProject France}} will return 47.14.