Template:Common: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><!-- intentionally left blank as a stub --></includeonly><noinclude>This template is used to do common process for every page. It is called in {{tl|language info}}.</noinclude>") |
(Use this for the displaytitle handling that was previously in {{translation projects}}.) |
||
Line 1: | Line 1: | ||
<includeonly><!-- |
|||
⚫ | |||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
|||
DISPLAYTITLE |
|||
Display the translated page title for translation project |
|||
pages and/or display the italicized page title. |
|||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
|||
// #var:__global__trp_displaytitle is set in {{translation projects}} |
|||
// #var:__global__is_italic_title is set in {{italic title}} |
|||
-->{{#vardefine:_displaytitle|<!-- |
|||
-->{{#if:{{#var:__global__trp_displaytitle}}|<!-- |
|||
// display the translated page title |
|||
-->{{#if:{{#var:__global__is_italic_title}}|<!-- |
|||
--><i>{{#var:__global__trp_displaytitle}}</i><!-- |
|||
-->|<!-- |
|||
-->{{#var:__global__trp_displaytitle}}<!-- |
|||
-->}}<!-- |
|||
-->{{#var:__global__trp_displaytitle_suffix}}<!-- |
|||
-->|<!-- |
|||
// display the regular title |
|||
-->{{#if:{{#var:__global__is_italic_title}}|<!-- |
|||
-->{{#ifeq:{{NAMESPACENUMBER}}|0||{{NAMESPACE}}:}}<i>{{PAGENAME}}</i><!-- don't italicize the namespace |
|||
-->}}<!-- |
|||
-->}}<!-- |
|||
-->}}<!-- |
|||
-->{{#if:{{#var:_displaytitle}}|{{DISPLAYTITLE:{{#var:_displaytitle}}|noreplace}}}}<!-- |
|||
--></includeonly><!-- |
|||
--><noinclude> |
|||
⚫ | |||
{{category|Templates}} |
|||
</noinclude> |
Revision as of 17:11, 24 June 2022
This template is used for common processes on every page. It is called in {{language info}}.