This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Template:Top 10:LanguageFile"

From OWASP
Jump to: navigation, search
(Updated ByTheNumbers (en) according to the OWASP Top 10-2017 Release)
(added documentRootTop10New)
Line 170: Line 170:
 
     {{#switch: {{{text}}} <noinclude>
 
     {{#switch: {{{text}}} <noinclude>
 
         <!-- BEGIN Document-Root --> </noinclude>
 
         <!-- BEGIN Document-Root --> </noinclude>
         | documentRootTop10 =                 Top 10 {{{year}}}
+
        | documentRootTop10New =                Top 10-{{{year}}}
         | documentRootTop10DeveloperEdition = Top 10 {{{year}}} Developer Edition<noinclude>
+
        | documentRootTop10NewDeveloperEdition = Top 10-{{{year}}} Developer Edition<noinclude>
 +
         | documentRootTop10 =                   Top 10 {{{year}}}
 +
         | documentRootTop10DeveloperEdition =   Top 10 {{{year}}} Developer Edition<noinclude>
 
         <!-- END Document-Root -->   
 
         <!-- END Document-Root -->   
 
         <!-- BEGIN of Top Ten Section for Top 10 2013-CenterLinkTemplate + Top 10 2013:Top and Bottom(Advanced)Template(s) --> </noinclude>
 
         <!-- BEGIN of Top Ten Section for Top 10 2013-CenterLinkTemplate + Top 10 2013:Top and Bottom(Advanced)Template(s) --> </noinclude>

Revision as of 00:15, 12 December 2017

Usage:

This File contains all the text that is used by OWASP Top 10 Templates
Please leave a message to Torsten Gigler @ if you liked to add a new localization
If you use an undefined language you will get English output (default language).

{{Top_10:LanguageFile

|text=<parameter> <!-- take one of the defined parmeters, e.g. tableOfContents -->
|language=<your language> <!-- actually only English (=en) and German (=de) are valid parameters) -->
|year=<year> <!-- optional for some texts -->

}}

Example:

{{Top_10:LanguageFile|text=tableOfContents|language=de}} => Inhaltsverzeichnis


Healthcheck

tbd.
In the meantime, please check:


If you use an unknown parameter you will get the following Error message in your wiki page:
ERROR in the 'Language File' (Use of an unknown Object)