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
(typo)
Line 176: Line 176:
 
         | top10TmpMessage =  
 
         | top10TmpMessage =  
 
           {{#switch: {{{year}}}  
 
           {{#switch: {{{year}}}  
             | 2017 =              ==This page is outdated. It is part of the Top 10-2017 RC1 which has been rejected.<br/><br/>==If you wish to comment, please file an [https://github.com/OWASP/Top10/issues issue on GitHub]. Changes to this page will be lost!==<br/><br/>==More information available [https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project#tab=OWASP_Top_10_for_2017_Release_Candidate_1 here]].==
+
             | 2017 =              ==This page is outdated. It is part of the Top 10-2017 RC1 which has been rejected.<br/><br/>==If you wish to comment, please file an [https://github.com/OWASP/Top10/issues issue on GitHub]. Changes to this page will be lost!==<br/><br/>==More information available [https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project#tab=OWASP_Top_10_for_2017_Release_Candidate_1 here].==
 
             | 2013 =              <noinclude>==The Top 10-2013 Wiki is under Construction. The Content is Not Finished yet==</noinclude>
 
             | 2013 =              <noinclude>==The Top 10-2013 Wiki is under Construction. The Content is Not Finished yet==</noinclude>
 
           }}
 
           }}

Revision as of 19:55, 11 August 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)