Template:Language/archives/Page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Optimization)
mNo edit summary
Line 139: Line 139:
</div>
</div>


</div></div></indicator>{{#if:{{{header}}}|<div id="firstHeading" class="firstHeading" dir="{{Text-dir|ltr=ltr|rtl=rtl}}" style="color:white; padding:7px 0; font-size:2em; margin:-15px 0 16px 0;  {{{header style|}}}">{{{header|{{{title|{{FULLPAGENAME}}}}}}}}<wbr></div>}}</onlyinclude></includeonly>{{Page}}
</div></div></indicator>{{#if:{{{header}}}|<div id="firstHeading" class="firstHeading" dir="{{Text-dir|ltr=ltr|rtl=rtl}}" style="color:white; padding:8px 0 7px; font-size:2em; margin:-16px 0 16px 0;  {{{header style|}}}">{{{header|{{{title|{{FULLPAGENAME}}}}}}}}<wbr></div>}}</onlyinclude></includeonly>{{Page}}
{{Wip|type=wip2|[[User:Max34|Max34]]|Designed for the new page format.}}
{{Wip|type=wip2|[[User:Max34|Max34]]|Designed for the new page format.}}



Revision as of 00:21, 26 June 2024

Template:Language/archives/Page
Under construction.png
This Template page is currently Work in Progress and it's not recommended to be used on pages.
As a courtesy, please do not edit this Template while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The user who added this notice, should you wish to contact them, is: Max34 tr = idir.
Additional Notes: Designed for the new page format.

Todo: ☐ Add an icon for the subpage button instead of /...

☐ Either modify the maintenance templates to make it easier to work with this template, or embed the maintenance templates directly into this template (which will give more options to the maintenance templates).

(For copying: ☐ )

This template adds a panel at the top of the article (at the header level), which consists of a drop-down list for selecting the language in which the page will be displayed, a button for showing all sub-pages of this page, and a button for Purging the page.

Usage

Default template usage.

{{Page}}

Changes the name of the page that will be displayed in the header and when searching on the Internet. Without this parameter, the default page title will be used.

{{Page|title=Example title}}

Changes the page header. Does not change the name of the page for the Internet.

{{Page|header=Interesting header that can use <div> tags, for example}}

The header can be removed completely if you specify it empty.

{{Page|header=}}

Access to header style.

{{Page|header style=color:green}}

An area for adding icons or other small elements. Maximum available height: 31 pixels. If the content of this parameter exceeds this height, the entire panel will begin to slide down and the content will begin to overlap the line and below. Preferred icon size: 24 pixels.

{{Page|icons=[[File:ESRB E10 Rating.png|link=|24px]] [[File:Hl2-16px.png|link=|24px]]}}

Optional. The {{{strings}}} parameter is used to enter the total number of lines on the page (manually). To indicate the number of translated strings in a particular language, use their language codes. All these numbers are needed for the correct categorization of pages in the appropriate categories of the translation process, as well as for a better understanding of whether a page has been translated into a particular language.

{{Page|strings=10|en=10|es=5|ru=8}}