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
m (vulnComponents (en): changed short version to 'Vulnerable Components' (according Top10-2017))
(Changed centerLink2 to ' PDF version')
Line 192: Line 192:
 
         | centerLink2 =
 
         | centerLink2 =
 
           {{#switch: {{{year}}}
 
           {{#switch: {{{year}}}
             | 2017    = [[Top 10-{{{year}}} Top 10|{{{year}}} Top 10 List]]
+
             | 2017    = [[Media:OWASP_Top_10-2017_(en).pdf.pdf| PDF version]] <noinclude>
 +
      <!--- | 2017    = [[Top 10-{{{year}}} Top 10|{{{year}}} Top 10 List]] ----></noinclude>
 
             | #default = [[Top_10_{{{year}}}-Top 10|{{{year}}} Top 10 List]]
 
             | #default = [[Top_10_{{{year}}}-Top 10|{{{year}}} Top 10 List]]
 
           }}
 
           }}

Revision as of 20:24, 20 January 2018

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 unknown Object '{{{text}}}')