InterMapes
L'InterMapa (també conegut a altres wikis com a InterWiki) és un sistema per a definir enllaços entre llocs WikiWikiWeb, desenvolupat per primer cop per UseMod i `Meatball (vegeu UseMod:InterWiki i Meatball:InterWiki). El mètode consisteix en usar una paraula que es tradueix per un camí prèviament definit. Els enllaços InterMapa tenen la forma PrefixeMapa:CamiALaPagina, on PrefixeMapa es converteix en un URL parcial d'acord amb la informació dels fitxers intermap.txt i localmap.txt.
El fitxer intermap.txt distribuït amb PmWiki (al directori scripts/) inclou les següents entrades InterMapa:
PmWiki: http://www.pmwiki.org/wiki/PmWiki/ Cookbook: http://www.pmwiki.org/wiki/Cookbook/ Wiki: http://www.c2.com/cgi/wiki? UseMod: http://www.usemod.com/cgi-bin/wiki.pl? Meatball: http://www.usemod.com/cgi-bin/mb.pl? Wikipedia: http://www.wikipedia.com/wiki/ PITS: http://www.pmwiki.org/PITS/ PmL10n: http://www.pmwiki.org/wiki/Localization/ Path:
Site.InterMap inclou les següents entrades:
PmWikiHome: https://www.pmwiki.org/wiki/ Category: https://www.pmwiki.org/wiki/Category/ MoinMoin: https://moinmo.in/ PmWikiUsers: https://pmichaud.com/pipermail/pmwiki-users/ RFC: https://tools.ietf.org/html/rfc Wiktionary: https://en.wiktionary.org/wiki/ Wikimedia: https://meta.wikimedia.org/wiki/ Wikitravel: https://wikitravel.org/en/ Wikivoyage: https://en.wikivoyage.org/wiki/ Wikiquote: https://en.wikiquote.org/wiki/ Wikinews: https://en.wikinews.org/wiki/ Wikibooks: https://en.wikibooks.org/wiki/ Wikisource: https://en.wikisource.org/wiki/ Wikispecies: https://species.wikimedia.org/wiki/ Wikiversity: https://en.wikiversity.org/wiki/ DOI: https://dx.doi.org/$1
Així doncs, "PmWiki:Variables" esdevé "http://www.pmwiki.org/wiki/PmWiki/" + "Variables," un enllaç a la pàgina PmWiki.Variables del lloc web oficial de PmWiki, Wiki:FrontPage és un enllaç a la portada del primer WikiWikiWeb, i Wikipedia:Stonehenge ens condueix a l'article de la Wikipedia sobre els famosos megàlits d'Anglaterra.
Igual que amb els altres enllaços, podeu usar la sintaxi de claudàtors dobles per aconseguir canviar el text de l'enllaç:
* [[Meatball:StartingPoints | punts inicials]] a Meatball * [[punts inicials -> Meatball:StartingPoints]] a Meatball |
|
Si voleu enllaçar a l'intermapa sense afegir-hi res (p.ex. http://www.wikipedia.com/wiki/ per a la Wikipedia), aleshores feu [[Wikipedia:. | Portada de la Wikipedia]], obtenint: Portada de la Wikipedia. Fixeu-vos en el . (punt) després de la referència Mapa:.
L'InterMapa especial Path: es pot usar per a crear "urls relatius" als enllaços.
El conjunt actual d'enllaços InterMapa de qualsevol lloc, el defineix l'administrador/a mitjançant la pàgina Site.InterMap i el fitxer local/localmap.txt; per a més detalls, vegeu CustomInterMaps.
Traducció de PmWiki.InterMap -
Pàgina original a PmWikiCa.InterMap -
Retroenllaços