Vorlage:RelatedTerm: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
 
(28 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly>''{{{1}}}''{{#if:{{{2}}}}}. </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>
Usage:
+
Related terms in English and non-English language versions.
: <code><nowiki>{{RelatedTerm|</nowiki>''term''<nowiki>}}</nowiki></code>
 
: <code><nowiki>{{RelatedTerm|</nowiki>''lang''|''term''<nowiki>}}</nowiki></code>
 
  
;Related terms in 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.
Insert the parameters somewhere in the template. ''xx'' indicates the namespace of a language.
 
* '''term'''=term: any term i.e. one or many words with on whitespaces in between.
 
* '''lang'''=xx: the language name space for the key page.
 
  
[[Category:Templates|Tag]]
+
'''Usage''':
 +
: <code><nowiki>{{RelatedTerm|</nowiki>''term'' <nowiki>}}</nowiki></code>
 +
: <code><nowiki>{{RelatedTerm|</nowiki>''lang'' |''term'' <nowiki>}}</nowiki></code>
 +
 
 +
;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 [[RelatedTerms]].
 +
 
 +
'''Usage Example''':
 +
 
 +
What you type:
 +
  ----
 +
  Related Terms: <nowiki>{{RelatedTerm|church}}{{RelatedTerm|en_UK|chapel}}</nowiki>
 +
 
 +
What you get:
 +
----
 +
Related Terms: {{RelatedTerm|church}}{{RelatedTerm|en_UK|chapel}}
 +
 
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Aktuelle Version vom 27. September 2011, 21:01 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 RelatedTerms.

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}}.