Template:Language/archives/Page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Preparing the template for the new format)
Line 16: Line 16:
<div class="mw-customtoggle-Lang-Select-Menu" style="display:inline-flex; gap:4px; align-items:center; line-height:10px; padding:4px; border:1px solid #65635F; border-radius:{{text-dir|ltr=3px 0 0 3px|rtl=0 3px 3px 0}}; background:linear-gradient(135deg, rgba(255 255 255 / 4%), rgba(255 255 255 / 2%))">{{Flag|{{intlang}}}}<span>{{ucfirst:{{#language:{{intlang}}}}}}</span><span style="font-size:.6em">&#x25BC;</span></div>
<div class="mw-customtoggle-Lang-Select-Menu" style="display:inline-flex; gap:4px; align-items:center; line-height:10px; padding:4px; border:1px solid #65635F; border-radius:{{text-dir|ltr=3px 0 0 3px|rtl=0 3px 3px 0}}; background:linear-gradient(135deg, rgba(255 255 255 / 4%), rgba(255 255 255 / 2%))">{{Flag|{{intlang}}}}<span>{{ucfirst:{{#language:{{intlang}}}}}}</span><span style="font-size:.6em">&#x25BC;</span></div>


<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Lang-Select-Menu" style="display:none; user-select:text; overflow:hidden; position:absolute; top:22px; {{text-dir|ltr=right|rtl=left}}:0; z-index:1001; border:1px solid #65635F; border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); width:max-content"><div style="overflow-y:auto; max-height:238px"><span class=plainlinks>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Lang-Select-Menu" style="display:none; user-select:text; overflow:hidden; position:absolute; top:22px; {{text-dir|ltr=right|rtl=left}}:0; z-index:1001; border:1px solid #65635F; border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); width:max-content"><div style="overflow-y:auto; max-height:238px"><span class=plainlinks><!--


<div style="position:sticky; top:0; overflow:hidden; padding:4px 6px; background:rgb(56 56 56 / 95%); border-bottom:1px solid rgb(101, 99, 95); font-size:1.2em">
-->{{#if: {{{strings|}}} | <div style="position:sticky; top:0; overflow:hidden; padding:4px 6px; background:rgb(56 56 56 / 95%); border-bottom:1px solid rgb(101, 99, 95); font-size:1.2em">


<div style="position:relative; background-color:rgb(0 121 0 / 12%); border:1px solid rgba(0 121 0 / 48%); border-radius:4px; padding:2px">
<div style="position:relative; background-color:rgb(0 121 0 / 12%); border:1px solid rgba(0 121 0 / 48%); border-radius:4px; padding:2px">


<div style="position:absolute; color:#E3E3E3; font-weight:900; line-height:1.1em; left:0; width:100%; text-align:center"> {{Flag|{{intlang}}}} {{#expr: ({{/Str|+}}) * 100 / ({{/Str|all}}) round 2}}% ({{#expr:{{/Str|+}}}} / {{#expr:{{/Str|all}}}}) </div>
<div style="position:absolute; color:#E3E3E3; font-weight:900; line-height:1.1em; left:0; width:100%; text-align:center"> {{Flag|{{intlang}}}} {{#expr: ({{{{{intlang}}|0}}}) * 100 / ({{{strings|}}}) round 2}}% ({{#expr:{{{{{intlang}}|0}}}}} / {{#expr:{{{strings|}}}}}) </div>


<div style="width:{{#expr: ({{/Str|+}}) * 100 / ({{/Str|all}}) round 2}}%; background-color:rgb(0 121 0); border-radius:2px; text-align:center; line-height:1.1em">&nbsp;</div>
<div style="width:{{#if: {{{strings|}}} | {{#expr: ({{{{{intlang}}|0}}}) * 100 / ({{{strings|}}}) round 2}}% | 0 }}; background-color:rgb(0 121 0); border-radius:2px; text-align:center; line-height:1.1em">&nbsp;</div>
</div>
</div>


</div>
</div>}}<!--


<table cellpadding="4px" cellspacing="0" style="background:rgb(56 56 56 / 95%)">
--><table cellpadding="4px" cellspacing="0" style="background:rgb(56 56 56 / 95%)">
<tr>
<tr>
   <td>{{Tp|en|{{/Str|all}}|{{/Str|+|force=en}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|en|{{{strings}}}|{{{en|0}}}}}</td> }}
   <td>{{Flag|en}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=en {{#language:en}}]</td>
   <td>{{Flag|en}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=en {{#language:en}}]</td>
   <td>{{Tp|ca|{{/Str|all}}|{{/Str|+|force=ca}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|ca|{{{strings}}}|{{{ca|0}}}}}</td> }}
   <td>{{Flag|ca}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ca {{#language:ca}}]</td>
   <td>{{Flag|ca}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ca {{#language:ca}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|cs|{{/Str|all}}|{{/Str|+|force=cs}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|cs|{{{strings}}}|{{{cs|0}}}}}</td> }}
   <td>{{Flag|cs}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=cs {{#language:cs}}]</td>
   <td>{{Flag|cs}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=cs {{#language:cs}}]</td>
   <td>{{Tp|de|{{/Str|all}}|{{/Str|+|force=de}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|de|{{{strings}}}|{{{de|0}}}}}</td> }}
   <td>{{Flag|de}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=de {{#language:de}}]</td>
   <td>{{Flag|de}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=de {{#language:de}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|el|{{/Str|all}}|{{/Str|+|force=el}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|el|{{{strings}}}|{{{el|0}}}}}</td> }}
   <td>{{Flag|el}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=el {{#language:el}}]</td>
   <td>{{Flag|el}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=el {{#language:el}}]</td>
   <td>{{Tp|eo|{{/Str|all}}|{{/Str|+|force=eo}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|eo|{{{strings}}}|{{{eo|0}}}}}</td> }}
   <td>{{Flag|eo}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=eo {{#language:eo}}]</td>
   <td>{{Flag|eo}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=eo {{#language:eo}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|et|{{/Str|all}}|{{/Str|+|force=et}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|et|{{{strings}}}|{{{et|0}}}}}</td> }}
   <td>{{Flag|et}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=et {{#language:et}}]</td>
   <td>{{Flag|et}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=et {{#language:et}}]</td>
   <td>{{Tp|fr|{{/Str|all}}|{{/Str|+|force=fr}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|fr|{{{strings}}}|{{{fr|0}}}}}</td> }}
   <td>{{Flag|fr}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=fr {{#language:fr}}]</td>
   <td>{{Flag|fr}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=fr {{#language:fr}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|fi|{{/Str|all}}|{{/Str|+|force=fi}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|fi|{{{strings}}}|{{{fi|0}}}}}</td> }}
   <td>{{Flag|fi}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=fi {{#language:fi}}]</td>
   <td>{{Flag|fi}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=fi {{#language:fi}}]</td>
   <td>{{Tp|he|{{/Str|all}}|{{/Str|+|force=he}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|he|{{{strings}}}|{{{he|0}}}}}</td> }}
   <td>{{Flag|he}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=he {{#language:he}}]</td>
   <td>{{Flag|he}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=he {{#language:he}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|hi|{{/Str|all}}|{{/Str|+|force=hi}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|hi|{{{strings}}}|{{{hi|0}}}}}</td> }}
   <td>{{Flag|hi}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=hi {{#language:hi}}]</td>
   <td>{{Flag|hi}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=hi {{#language:hi}}]</td>
   <td>{{Tp|hr|{{/Str|all}}|{{/Str|+|force=hr}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|hr|{{{strings}}}|{{{hr|0}}}}}</td> }}
   <td>{{Flag|hr}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=hr {{#language:hr}}]</td>
   <td>{{Flag|hr}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=hr {{#language:hr}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|hu|{{/Str|all}}|{{/Str|+|force=hu}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|hu|{{{strings}}}|{{{hu|0}}}}}</td> }}
   <td>{{Flag|hu}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=hu {{#language:hu}}]</td>
   <td>{{Flag|hu}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=hu {{#language:hu}}]</td>
   <td>{{Tp|it|{{/Str|all}}|{{/Str|+|force=it}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|it|{{{strings}}}|{{{it|0}}}}}</td> }}
   <td>{{Flag|it}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=it {{#language:it}}]</td>
   <td>{{Flag|it}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=it {{#language:it}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|ja|{{/Str|all}}|{{/Str|+|force=ja}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|ja|{{{strings}}}|{{{ja|0}}}}}</td> }}
   <td>{{Flag|ja}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ja {{#language:ja}}]</td>
   <td>{{Flag|ja}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ja {{#language:ja}}]</td>
   <td>{{Tp|ka|{{/Str|all}}|{{/Str|+|force=ka}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|ka|{{{strings}}}|{{{ka|0}}}}}</td> }}
   <td>{{Flag|ka}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ka {{#language:ka}}]</td>
   <td>{{Flag|ka}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ka {{#language:ka}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|km|{{/Str|all}}|{{/Str|+|force=km}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|km|{{{strings}}}|{{{km|0}}}}}</td> }}
   <td>{{Flag|km}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=km {{#language:km}}]</td>
   <td>{{Flag|km}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=km {{#language:km}}]</td>
   <td>{{Tp|ko|{{/Str|all}}|{{/Str|+|force=ko}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|ko|{{{strings}}}|{{{ko|0}}}}}</td> }}
   <td>{{Flag|ko}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ko {{#language:ko}}]</td>
   <td>{{Flag|ko}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ko {{#language:ko}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|ms|{{/Str|all}}|{{/Str|+|force=ms}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|ms|{{{strings}}}|{{{ms|0}}}}}</td> }}
   <td>{{Flag|ms}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ms {{#language:ms}}]</td>
   <td>{{Flag|ms}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ms {{#language:ms}}]</td>
   <td>{{Tp|nl|{{/Str|all}}|{{/Str|+|force=nl}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|nl|{{{strings}}}|{{{nl|0}}}}}</td> }}
   <td>{{Flag|nl}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=nl {{#language:nl}}]</td>
   <td>{{Flag|nl}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=nl {{#language:nl}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|no|{{/Str|all}}|{{/Str|+|force=no}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|no|{{{strings}}}|{{{no|0}}}}}</td> }}
   <td>{{Flag|no}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=no {{#language:no}}]</td>
   <td>{{Flag|no}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=no {{#language:no}}]</td>
   <td>{{Tp|pl|{{/Str|all}}|{{/Str|+|force=pl}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|pl|{{{strings}}}|{{{pl|0}}}}}</td> }}
   <td>{{Flag|pl}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=pl {{#language:pl}}]</td>
   <td>{{Flag|pl}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=pl {{#language:pl}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|pt|{{/Str|all}}|{{/Str|+|force=pt}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|pt|{{{strings}}}|{{{pt|0}}}}}</td> }}
   <td>{{Flag|pt}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=pt {{#language:pt}}]</td>
   <td>{{Flag|pt}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=pt {{#language:pt}}]</td>
   <td>{{Tp|pt-br|{{/Str|all}}|{{/Str|+|force=pt-br}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|pt-br|{{{strings}}}|{{{pt-br|0}}}}}</td> }}
   <td>{{Flag|pt-br}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=pt-br {{#language:pt-br}}]</td>
   <td>{{Flag|pt-br}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=pt-br {{#language:pt-br}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|ru|{{/Str|all}}|{{/Str|+|force=ru}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|ru|{{{strings}}}|{{{ru|0}}}}}</td> }}
   <td>{{Flag|ru}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ru {{#language:ru}}]</td>
   <td>{{Flag|ru}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=ru {{#language:ru}}]</td>
   <td>{{Tp|es|{{/Str|all}}|{{/Str|+|force=es}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|es|{{{strings}}}|{{{es|0}}}}}</td> }}
   <td>{{Flag|es}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=es {{#language:es}}]</td>
   <td>{{Flag|es}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=es {{#language:es}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|sv|{{/Str|all}}|{{/Str|+|force=sv}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|sv|{{{strings}}}|{{{sv|0}}}}}</td> }}
   <td>{{Flag|sv}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=sv {{#language:sv}}]</td>
   <td>{{Flag|sv}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=sv {{#language:sv}}]</td>
   <td>{{Tp|uk|{{/Str|all}}|{{/Str|+|force=uk}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|uk|{{{strings}}}|{{{uk|0}}}}}</td> }}
   <td>{{Flag|uk}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=uk {{#language:uk}}]</td>
   <td>{{Flag|uk}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=uk {{#language:uk}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|tr|{{/Str|all}}|{{/Str|+|force=tr}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|tr|{{{strings}}}|{{{tr|0}}}}}</td> }}
   <td>{{Flag|tr}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=tr {{#language:tr}}]</td>
   <td>{{Flag|tr}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=tr {{#language:tr}}]</td>
   <td>{{Tp|vi|{{/Str|all}}|{{/Str|+|force=vi}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|vi|{{{strings}}}|{{{vi|0}}}}}</td> }}
   <td>{{Flag|vi}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=vi {{#language:vi}}]</td>
   <td>{{Flag|vi}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=vi {{#language:vi}}]</td>
</tr>
</tr>
<tr>
<tr>
   <td>{{Tp|zh|{{/Str|all}}|{{/Str|+|force=zh}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|zh|{{{strings}}}|{{{zh|0}}}}}</td> }}
   <td>{{Flag|zh}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=zh {{#language:zh}}]</td>
   <td>{{Flag|zh}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=zh {{#language:zh}}]</td>
   <td>{{Tp|zh-tw|{{/Str|all}}|{{/Str|+|force=zh-tw}}}}</td>
   {{#if: {{{strings|}}} | <td>{{Tp|zh-tw|{{{strings}}}|{{{zh-tw|0}}}}}</td> }}
   <td>{{Flag|zh-tw}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=zh-tw {{#language:zh-tw}}]</td>
   <td>{{Flag|zh-tw}} [{{fullurl:{{FULLPAGENAME}}}}?uselang=zh-tw {{#language:zh-tw}}]</td>
</tr>
</tr>
Line 130: Line 130:
</span></div></div>
</span></div></div>
</div>
</div>
<div style="line-height:13px; border:1px solid #65635F; border-{{text-dir|ltr=left|rtl=right}}:0; border-radius:{{text-dir|ltr=0 3px 3px 0|rtl=3px 0 0 3px}}; padding:2px 4px 3px 4px; background:linear-gradient(135deg, rgba(255 255 255 / 4%), rgba(255 255 255 / 2%))">[[File:Icon-translate.png|link={{FULLPAGENAME}}/Str|13px]]</div>
</div>
</div>


Line 144: Line 142:
</div></div></indicator><div {{#if:{{{header}}}|id="firstHeading" class="firstHeading" style="color:white; padding:7px 0 7px 0; font-size:2em; margin:-15px 0 16px 0; direction:{{text-dir|ltr=ltr|rtl=rtl}}; {{{header style|}}}">{{{header|{{{title|{{FULLPAGENAME}}}}}}}}<wbr}}></div></onlyinclude></includeonly>
</div></div></indicator><div {{#if:{{{header}}}|id="firstHeading" class="firstHeading" style="color:white; padding:7px 0 7px 0; font-size:2em; margin:-15px 0 16px 0; direction:{{text-dir|ltr=ltr|rtl=rtl}}; {{{header style|}}}">{{{header|{{{title|{{FULLPAGENAME}}}}}}}}<wbr}}></div></onlyinclude></includeonly>
{{Wip|type=wip2|[[User:Max34|Max34]]|Designed for the new page format.}}
{{Wip|type=wip2|[[User:Max34|Max34]]|Designed for the new page format.}}
{{Important|This template is still under development, so it may have many flaws.
Apart from this template, I ({{U|Max34}}) am working on a chrome extension called [[User:Max34/VDCEditor|VDCEditor]] in which I also plan to implement support for this whole page template system to make editing much easier.}}


{{Todo|1=
{{Todo|1=
Line 153: Line 148:
☐ 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).
☐ 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).


☐ Experiment with adding new lines without constantly copying a large piece of code or make this process simpler).
(For copying: ☐ <span style="color:green">☑</span> <span style="color:yellow">☒</span>)
 
☐ Do something to be able to preview when editing a strings subpage (maybe we should go back to Str template instead of using /Str).
 
(For copying: ☐ <span style="color:green">☑</span> <span style="color:red">☒</span>)
}}
}}


New version of the {{Tl2|MultiPage}} template. Uses a completely different page structure, compressing everything into two pages (main one and strings subpage), without the need for language subpages.
New version of the {{Tl2|MultiPage}} template. Uses a completely different page structure, compressing everything into one page, without the need for language subpages.


== Usage ==
== Usage ==
Line 186: Line 177:


{{Code|<nowiki>{{Page|icons=[[File:ESRB E10 Rating.png|link=|24px]] [[File:Hl2-16px.png|link=|24px]]}}</nowiki>}}
{{Code|<nowiki>{{Page|icons=[[File:ESRB E10 Rating.png|link=|24px]] [[File:Hl2-16px.png|link=|24px]]}}</nowiki>}}
'''Optional'''. The {{Code|<nowiki>{{{strings}}}</nowiki>}} 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.
{{Code|<nowiki>{{Page|strings=10|en=10|es=5|ru=8}}</nowiki>}}

Revision as of 09:55, 17 June 2024

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: ☐ )

New version of the {{MultiPage}} template. Uses a completely different page structure, compressing everything into one page, without the need for language subpages.

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}}