Vorlage:Languages/Interface: Unterschied zwischen den Versionen

Aus OpenSeaMap-dev
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: <includeonly>{{{1}}}{{#ifexist: {{{1}}}:{{{2}}} |e|m}}</includeonly><noinclude> == Purpose == This template is used in Template:Languages. If a page exists in a pa...)
 
 
Zeile 1: Zeile 1:
<includeonly>{{{1}}}{{#ifexist: {{{1}}}:{{{2}}} |e|m}}</includeonly><noinclude>
+
<includeonly><div style="margin: 0px; padding: 2px 2px 0px 2px; border: none; border-collapse:collapse; clear:both; ">
== Purpose ==
+
<span style="float:right; font-weight:normal; font-size: x-small;">[[Wiki Translation|{{int:help}}]]</span><div style="background-color:#e9e9e9; border-style:solid; border-width:1px; border-color:#aaa; padding: 0pt 4pt 8pt 4pt; font-size: 95%; text-align:center;">'''Available languages'''</div>
This template is used in [[Template:Languages]].
+
<div style="border: 1px solid #aaa; background-color: #f9f9f9; border-collapse:collapse; font-size: 95%; padding: 2pt 4pt 2pt 4pt; margin: 0px;">{{{ame|}}} {{{are|}}} {{{bge|}}} {{{bre|}}} {{{cae|}}} {{{coe|}}} {{{cze|}}} {{{dae|}}} {{{dee|}}} {{{ele|}}} {{{ene|}}} {{{eoe|}}} {{{ese|}}} {{{ete|}}} {{{eue|}}} {{{fie|}}} {{{fre|}}} {{{fye|}}} {{{gcfe|}}} {{{hee|}}} {{{hre|}}} {{{HUe|}}} {{{iae|}}} {{{ise|}}} {{{ite|}}} {{{jae|}}} {{{koe|}}} {{{lte|}}} {{{lve|}}} {{{mke|}}} {{{nle|}}} {{{nne|}}} {{{noe|}}} {{{ple|}}} {{{pte|}}} {{{pt-bre|}}} {{{roe|}}} {{{ro-mde|}}} {{{rue|}}} {{{ske|}}} {{{sle|}}} {{{sve|}}} {{{tre|}}} {{{uke|}}} {{{vie|}}} {{{zh-hanse|}}} {{{zh-hante|}}} {{{zh-twe|}}}
 +
</div>
 +
</div>
 +
<div class="NavFrame" style="border:none; clear:none; margin: 0px; padding-top: 0px;">
 +
<div class="NavHead" style="background-color:#e9e9e9; border-style:solid; border-width:1px; border-color:#aaa; margin: 0px; padding: 0pt 4pt 8pt 4pt; font-size: 95%;">'''Missing languages'''</div>
 +
<div class="NavContent" style="border: 1px solid #aaa; background-color: #f9f9f9; border-collapse:collapse; font-size: 95%; padding: 2pt 4pt 2pt 4pt;">{{{amm|}}} {{{arm|}}} {{{bgm|}}} {{{brm|}}}{{{cam|}}} {{{com|}}} {{{czm|}}} {{{dam|}}} {{{dem|}}} {{{elm|}}} {{{enm|}}} {{{eom|}}} {{{esm|}}} {{{etm|}}} {{{eum|}}} {{{fim|}}} {{{frm|}}} {{{fym|}}} {{{gcfm|}}} {{{hem|}}} {{{hrm|}}} {{{HUm|}}} {{{iam|}}} {{{ism|}}} {{{itm|}}} {{{jam|}}} {{{kom|}}} {{{ltm|}}} {{{lvm|}}} {{{mkm|}}} {{{nlm|}}} {{{nnm|}}} {{{nom|}}} {{{plm|}}} {{{ptm|}}} {{{pt-brm|}}} {{{rom|}}} {{{ro-mdm|}}} {{{rum|}}} {{{skm|}}} {{{slm|}}} {{{svm|}}} {{{trm|}}} {{{ukm|}}} {{{vim|}}} {{{zh-hansm|}}} {{{zh-hantm|}}} {{{zh-twm|}}}
 +
</div>
 +
</div><div class="NavFrame" style="border:none;display:none;"><!-- KEEP THIS nonsense div to make the default state of the missing language box to be hide. --></div>
 +
</includeonly><noinclude>
 +
This template is called by [[Template:Languages]] to make the default interface of the language bar.
  
If a page exists in a particular language, this template generates a parameter name for [[Template:Languages/Interface]] to show the existence. '''Don't use this for "en"'''. "en" case has a special naming rule, then it was separated to [[Template:LanguageExistingEn]].
+
== example ==
 +
{{Languages/Interface|ene=English exist|frm=French is missing}}
  
== Input parameters ==
+
[[Category:Template:Internationalisation]]
* 1st: language code (must be inputed)
 
* 2nd: Page name (must be inputed)
 
 
 
== Return ==
 
* <nowiki>{{{1}}}e</nowiki> if it exists.
 
* <nowiki>{{{1}}}m</nowiki> if it doesn't exist.
 
 
 
[[Category:Template:Internationalisation|LanguageExisting]]
 
 
</noinclude>
 
</noinclude>

Aktuelle Version vom 29. Dezember 2009, 18:59 Uhr

This template is called by Template:Languages to make the default interface of the language bar.

example

Hilfe
Available languages
English exist