Template:Translated: Difference between revisions
Jump to navigation
Jump to search
Yaakiyu.jp (talk | contribs) Copied from User:Yaakiyu.jp/sandbox/Template:Translated (tried moving, but failed) |
Yaakiyu.jp (talk | contribs) m Fixed position again (I can't test it on preview page;;) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#if:{{{title|}}}|<!-- Title replacement -->{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}} | {{#if:{{{title|}}}|<!-- Title replacement -->{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}} | ||
<div style="margin-top: -1. | <div style="margin-top: -1.7em; background: white; position: relative; z-index: 100; font-size: 2em;"> | ||
{{{title}}}<hr style="margin-bottom: 1em;" /> | {{{title}}}<hr style="margin-bottom: 1em;" /> | ||
</div>|}}<div style="display: flex; justify-content: flex-end; margin: 0;"><div style="background-color: #dff5f4;">Languages: {{#switch: {{lc:{{SUBPAGENAME}}}} | </div>|}}<div style="display: flex; justify-content: flex-end; margin: 0;"><div style="background-color: #dff5f4;">Languages: {{#switch: {{lc:{{SUBPAGENAME}}}} | ||
| Line 6: | Line 6: | ||
|ja | |ja | ||
|es | |es | ||
|zh = [[{{NAMESPACE}}:{{BASEPAGENAME}}|en]]{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/fr|/[[{{NAMESPACE}}:{{BASEPAGENAME}}/fr | |zh = [[{{NAMESPACE}}:{{BASEPAGENAME}}|en]]{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/fr|/[[{{NAMESPACE}}:{{BASEPAGENAME}}/fr|fr]]|}}{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/ja|/[[{{NAMESPACE}}:{{BASEPAGENAME}}/ja|ja]]|}}{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/es|/[[{{NAMESPACE}}:{{BASEPAGENAME}}/es|es]]|}}{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/zh|/[[{{NAMESPACE}}:{{BASEPAGENAME}}/zh|zh]]|}} | ||
|[[{{FULLPAGENAME}}|en]]{{#ifexist:{{FULLPAGENAME}}/fr|/[[{{FULLPAGENAME}}/fr | |[[{{FULLPAGENAME}}|en]]{{#ifexist:{{FULLPAGENAME}}/fr|/[[{{FULLPAGENAME}}/fr|fr]]|}}{{#ifexist:{{FULLPAGENAME}}/ja|/[[{{FULLPAGENAME}}/ja|ja]]|}}{{#ifexist:{{FULLPAGENAME}}/es|/[[{{FULLPAGENAME}}/es|es]]|}}{{#ifexist:{{FULLPAGENAME}}/zh|/[[{{FULLPAGENAME}}/zh|zh]]|}} | ||
}}</div></div><noinclude> | }}</div></div><noinclude> | ||
<div style="width: 95%; border: 1px solid gray; background-color: #d4f7c3; padding: 0.5em 1em 1em 1em;"> | <div style="width: 95%; border: 1px solid gray; background-color: #d4f7c3; padding: 0.5em 1em 1em 1em;"> | ||
Latest revision as of 14:19, 2 February 2026
Languages: en
This template is used in articles which has translated subpages.
How to use
In English articles, you simply put this template at the top or the end of it:
{{translated}}
In Other languages page (it must be a subpage of the English version), you can also specify the article's title:
{{translated|title=メインページ}}
Then, the page's title will be replaced to the language's title. Note that you must put it on the top of the article when you specify the language's title.