Vorlage:RelatedTerm: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
Zeile 1: Zeile 1:
<includeonly>''{{ #if: {{{2|}}} | [http://wiki.openstreetmap.org/w/index.php?title=Special%3ASearch&search={{{2}}} {{{2}}}] ({{{1}}}) | [http://wiki.openstreetmap.org/w/index.php?title=Special%3ASearch&search={{{1}}} {{{1}}}]}}''. </includeonly><noinclude>
+
<includeonly>''{{ #if: {{{2|}}} | [http://wiki.openstreetmap.org/w/index.php?title=Special%3ASearch&search={{urlencode:{{{2}}}}} {{{2}}}] ({{{1}}}) | [http://wiki.openstreetmap.org/w/index.php?title=Special%3ASearch&search={{urlencode:{{{1}}}}} {{{1}}}]}}''. </includeonly><noinclude>
 
Related terms in English and non-English language versions.
 
Related terms in English and non-English language versions.
  
Zeile 15: Zeile 15:
  
 
'''Usage Example''':
 
'''Usage Example''':
 +
 
What you type:
 
What you type:
 
   ----
 
   ----

Version vom 6. September 2011, 23:00 Uhr

Related terms in English and non-English language versions.

Insert the Template at the bottom of the wiki page (e.g. before categories as shown in the example below). In one wiki page there can be one or several related terms including the term about the main topic of the page.

Usage:

{{RelatedTerm|term }}
{{RelatedTerm|lang |term }}
Parameters
  • term= term: any term i.e. one or many words with a whitespace in between.
  • lang= xx (optional): the language name space, e.g. EN, EN_uk, EN_us, DE, DE_ch.

For more information about related terms see Taginfo/RelatedTerm.

Usage Example:

What you type:

 ----
 Related Terms: {{RelatedTerm|church}}{{RelatedTerm|en_UK|chapel}}

What you get:


Related Terms: {{ #if: | {{{2}}} (church) | church}}. {{ #if: chapel | chapel (en_UK) | en_UK}}.