Template:get lang
From cppreference.com
cpp
|
|
This high-risk template has been protected from editing to prevent vandalism. Please discuss any changes on the talk page. |
Returns the programming language to use for a page by default. The output value depends on the title of the page this template is included in.
{{get lang}}
- If the page title begins with "c/", then the output value is "c", if the page title begins with "cpp/", then the output value is "cpp". Otherwise the output value is "cpp".
{{get lang formal}}
- If the page title begins with "c/", then the output value is "C", if the page title begins with "cpp/", then the output value is "C++". Otherwise the output value is "C++".
Returns the header name corresponding to the page this template is included in.
{{get header}}
- If the page title begins with "c/header/", then the output value is the last part of the page title followed by ".h", if the page title begins with "cpp/header/", then the output value is the last part of the page title. Otherwise the output value is empty.
| The above documentation is transcluded from Template:get lang/doc. (edit | history) Please add categories and interwikis to the /doc subpage. Subpages of this template. |