Template:Language/archives/Page: Difference between revisions
m (added a wip template) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{DISPLAYTITLE:<span style="display:none">{{{title|{{FULLPAGENAME}}}}}</span>}}<indicator name="Page-Tools"><div id="bodyContent" class="mw-body-content" style="user-select:none; pointer-events:none; position:absolute; top:- | <includeonly><onlyinclude>{{DISPLAYTITLE:<span style="display:none">{{{title|{{FULLPAGENAME}}}}}</span>}}<indicator name="Page-Tools"><div id="bodyContent" class="mw-body-content" style="user-select:none; pointer-events:none; position:absolute; top:-18px; {{text-dir|ltr=right|rtl=left}}:0; width:100vw; height:32px"><div id="mw-content-text" style="line-height:10px; display:grid; grid-template-columns:repeat(auto-fill, minmax(clamp((100% / 2) - 1rem, 491px, 100%), 1fr))"> | ||
<div style="height:2px;user-select:none"></div> | <div style="height:2px; user-select:none"></div> | ||
<div style="pointer-events:none; display:inline-flex; gap:4px; justify-content:flex-end"> | <div style="pointer-events:none; display:inline-flex; gap:4px; justify-content:flex-end"> | ||
< | <div style="pointer-events:auto; display:inline-flex; align-items:center; gap:4px">{{{icons|}}}</div><div></div> | ||
<div style="pointer-events:auto; display:inline-flex; align-items:center; gap:4px; margin:6px 0"><!-- | |||
<div style=" | -->{{#ifeq:{{intlang}}|en||{{#if:{{{strings|}}}|<div style="display:inline-flex; align-items:center; text-align:center">{{#expr: ({{{strings|0}}}) - (({{{strings|0}}}) round -4) }} / {{#expr: trunc (({{{strings|0}}}) / 100000) }}</div>}}}} | ||
<div class="mw-customtoggle-Lang-Select-Menu" style="line-height:10px; border:1px solid #65635F; border-radius:3px; display:inline-flex; gap:4px; align-items:center | |||
<div style="display:inline-flex; position:relative"> | |||
<div class="mw-customtoggle-Lang-Select-Menu" style="line-height:10px; border:1px solid #65635F; border-radius:3px; display:inline-flex; gap:4px; align-items:center; padding:3px">{{Flag|{{intlang}}}}<span>{{ucfirst:{{#language:{{intlang}}}}}}</span><span style="font-size:.6em">▼ </span></div> | |||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Lang-Select-Menu" style="display:none; overflow:hidden; background:#404040; border:1px solid rgba(255,255,255,.1); border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); user-select:text; position:absolute; z-index:1001; top:22px; {{text-dir|ltr=right|rtl=left}}:0; width:max-content"><div style="overflow-y:auto;max-height:200px"><span class=plainlinks> | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Lang-Select-Menu" style="display:none; overflow:hidden; background:#404040; border:1px solid rgba(255,255,255,.1); border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); user-select:text; position:absolute; z-index:1001; top:22px; {{text-dir|ltr=right|rtl=left}}:0; width:max-content"><div style="overflow-y:auto;max-height:200px"><span class=plainlinks> | ||
Line 36: | Line 38: | ||
</div> | </div> | ||
<div style=" | <div style="line-height:13px; border:1px solid #65635F; border-radius:3px; padding:1px 3px 2px 3px">[[File:Icon-edit-filled.png|link={{FULLPAGENAME}}/Strings|13px]] [[File:Icon-translate.png|link={{FULLPAGENAME}}/Strings|13px]]</div> | ||
<div style=" | <div style="line-height:13px; border:1px solid #65635F; border-radius:3px; padding:2px 4px 2px 4px" title="Subpages">'''[[Special:PrefixIndex/{{FULLPAGENAME}}/|<span style="color:white" title="Subpages">/..</span>]]'''</div> | ||
<div style="border:1px solid #65635F; border-radius:3px; padding:2px 3px 2px 3px;" title="Purge this Page">[[File:Icon-deblur.png|link={{fullurl:{{FULLPAGENAME}}|action=purge}}|12px]]</div> | |||
</div> | |||
</div> | </div> | ||
</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> | ||
{{Page}} | {{Wip|type=wip2|[[User:Max34|Max34]]|Designed for the new page format.}} | ||
{{Todo|Add an icon for the subpage button instead of {{Code|/..}}.}} | |||
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. | |||
== Usage == | |||
Default template usage. | |||
{{Code|<nowiki>{{Page}}</nowiki>}} | |||
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. | |||
{{Code|<nowiki>{{Page|title=Example title}}</nowiki>}} | |||
Changes the page header. Does not change the name of the page for the Internet. | |||
{{Code|<nowiki>{{Page|header=Interesting header that can use <div> tags, for example}}</nowiki>}} | |||
The header can be removed completely if you specify it empty. | |||
{{Code|<nowiki>{{Page|header=}}</nowiki>}} | |||
Access to header style. | |||
{{Code|<nowiki>{{Page|header style=color:green}}</nowiki>}} | |||
Used to indicate which strings should be taken into account when calculating the total number of strings and how many of them are translated. This parameter is used in conjunction with the {{Tl2|Strc}} template. If the parameter is not specified or empty, the number of lines and how many of them translated will not be displayed. It is not displayed in English because this is the default language for this site. | |||
{{ | {{Code|<nowiki>{{Page|strings= {{Strc|FirstText}} {{Strc|SecondText}} }}</nowiki>}} | ||
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. | |||
{{Code|<nowiki>{{Page|icons=[[File:ESRB E10 Rating.png|link=|24px]] [[File:Hl2-16px.png|link=|24px]]}}</nowiki>}} |
Revision as of 09:14, 18 April 2024

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.
New version of the {{MultiPage}} template. Uses a completely different page structure, compressing everything into two pages (main one and strings subpage), 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}}
Used to indicate which strings should be taken into account when calculating the total number of strings and how many of them are translated. This parameter is used in conjunction with the {{Strc}} template. If the parameter is not specified or empty, the number of lines and how many of them translated will not be displayed. It is not displayed in English because this is the default language for this site.
{{Page|strings= {{Strc|FirstText}} {{Strc|SecondText}} }}
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]]}}