Pour pouvoir importer des images sur le serveur et consulter le wiki sans publicité, vous devez vous connecter.
Différences entre les versions de « Modèle:Localisation »
Aller à la navigation
Aller à la recherche
m |
|||
(22 versions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
[[ | <includeonly><!-- | ||
* '''[[Continent]]''': [[{{{continent}}}]] | |||
** '''[[Région]]''': [[{{{region}}}]] | SMW | ||
-->{{ #set: Se situe sur le continent={{{continent}}}}}<!-- | |||
-->{{ #if: {{{region|}}} | {{ #set: Se situe dans la région={{{region}}}}} |}}<!-- | |||
-->{{ #if: {{{lieu|}}} | {{ #set: Se situe dans la zone={{{lieu}}}}} |}}<!-- | |||
-->{{ #if: {{{niveau|}}} | {{ #set: Se situe au niveau={{{niveau}}}}} |}}<!-- | |||
-->{{ #if: {{{position|}}} | {{lieu|{{{lieu}}}}}<!-- | |||
-->{{ #if: {{{precision|}}} | <br>{{{precision}}} |}} | |||
{{#gwcarto: | |||
| position = {{{position|}}} | |||
| name = {{PAGENAME}} | |||
| continent = {{{continent|Tyrie}}} | |||
| region = {{{region|}}} | |||
| zone = {{{lieu|}}} | |||
| floor = {{{niveau|0}}} | |||
| center = {{{position|}}} | |||
| zoom = 5 | |||
}}<!-- | |||
== NOTES == | |||
* "zoom" is the user defined zoom, | |||
it could be overriden by gwcarto automatically (if agent is a polygon, a geom collection etc... -> zoom to extent!) | |||
* "center" is the user defined focus center, | |||
gwcarto will focus the agent location (if it is a point, otherwise it focus on the center of the feature/collection extent) | |||
* "position" defines an exact agent position (how to deals with multipoints, polygon and collection?) | |||
-> do not use "position" and use only "area" and/or "center" to get the focus? | |||
* "area" can be a zone, region or continent... focus, zoom and center should be defined by area (area extent) if these properties are not defined by user... | |||
* "name" is used to search an agent by name and display all its positions, and zoom to the extent of all these positions... | |||
--> | |||
| | |||
<table> | |||
<tr> | |||
<td style="width: auto; text-align: center; vertical-align: middle;">[[Fichier:{{{nom|{{PAGENAME}}}}}-{{#replace:{{{lieu}}}|/|-}}.jpg|{{{lieu}}}|left|thumb|200px]]</td> | |||
<td style="width: auto; vertical-align: top;"> | |||
* '''[[Continent]]''' : [[{{{continent}}}]] | |||
** '''[[Région]]''' : [[{{{region}}}]] | |||
*** '''[[{{{lieu}}}]]''' | *** '''[[{{{lieu}}}]]''' | ||
{{{precision}}} | {{ #if: {{{precision|}}} |{{{precision}}}|}}<!-- | ||
{{ | --></td> | ||
</tr> | |||
</table> | |||
}}</includeonly><noinclude>__NOEDITSECTION__ | |||
== Description == | |||
Ce modèle sert à décrire la localisation d'un boss, PNJ ou tout autre chose. | |||
== Syntaxe == | |||
<pre> | |||
{{localisation | |||
| continent = nom_du_continent | |||
| region = nom_de_la_region | |||
| lieu = nom_du_lieu | |||
| precision = | |||
| position = [0, 0] | |||
}} | |||
</pre> | |||
== Exemples == | |||
<pre> | |||
{{localisation | |||
| continent = Tyrie | |||
| region = Ascalon (Eden) | |||
| lieu = Cité d'Ascalon (Eden) | |||
| precision = Des précisions sur la localisation... | |||
}} | |||
</pre> | |||
{{localisation | |||
| nom = Baron Egan | |||
| continent = Tyrie | |||
| region = Ascalon (Eden) | |||
| lieu = Cité d'Ascalon (Eden) | |||
| precision = Des précisions sur la localisation... | |||
}} | |||
[[Catégorie:Module]]</noinclude> |
Version actuelle datée du 18 juin 2019 à 20:22
Description
Ce modèle sert à décrire la localisation d'un boss, PNJ ou tout autre chose.
Syntaxe
{{localisation | continent = nom_du_continent | region = nom_de_la_region | lieu = nom_du_lieu | precision = | position = [0, 0] }}
Exemples
{{localisation | continent = Tyrie | region = Ascalon (Eden) | lieu = Cité d'Ascalon (Eden) | precision = Des précisions sur la localisation... }}
Des précisions sur la localisation... |