Template:Strings subpage: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Doc}} <includeonly> <onlyinclude>{{#ifeq: {{SUBPAGENAME}} | strings |<!-- -->__NOINDEX__<!-- - Language switcher - -->{{ulf | en = {{{en|}}} | ar = {{{ar|}}} | ca = {{{ca|}}} | cs = {{{cs|}}} | de = {{{de|}}} | el = {{{el|}}} | en-GB = {{{en-GB|}}} | eo = {{{eo|}}} | es = {{{es|}}} | et = {{{et|}}} | fi = {{{fi|}}} | fr = {{{fr|}}} | he = {{{he|}}} | hr = {{{hr|}}} | hu = {{{hu|}}} | it = {{{it|}}} | ja = {{{ja|}}} | ka = {{{ka|}}} | ko = {{{ko|...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Doc}} | {{Doc}} | ||
<includeonly> | <includeonly> | ||
Line 47: | Line 48: | ||
--><div style="{{text-dir|rtl=direction:rtl;}} display:flex; flex-direction:column; justify-content:center; background-color:rgba(159,159,159,.05); border:1px solid rgba(159,159,159,.3); border-{{text-dir|ltr=left|rtl=right}}:4px solid #9F9F9F; border-radius:3px; overflow:hidden; position:relative; padding:10px; margin:6px 0"> | --><div style="{{text-dir|rtl=direction:rtl;}} display:flex; flex-direction:column; justify-content:center; background-color:rgba(159,159,159,.05); border:1px solid rgba(159,159,159,.3); border-{{text-dir|ltr=left|rtl=right}}:4px solid #9F9F9F; border-radius:3px; overflow:hidden; position:relative; padding:10px; margin:6px 0"> | ||
<div style="opacity:.05; user-select:none; pointer-events:none; position:absolute; {{text-dir|ltr=right|rtl=left}}:-32px">[[File:icon-settings.png|64px|link=]]</div> | <div style="opacity:.05; user-select:none; pointer-events:none; position:absolute; {{text-dir|ltr=right|rtl=left}}:-32px">[[File:icon-settings.png|64px|link=]]</div> | ||
<div style="font-size:16px; | <div style="font-size:16px;">{{Strings subpage/strings|sos}}</div> | ||
<div style="display: flex; flex-direction: row; align-items: center">{{#switch:{{Intlang}} | <div style="display: flex; flex-direction: row; align-items: center">{{#switch:{{Intlang}} | ||
| #default = It contains various translatable and untranslatable strings that are used in the template or anywhere else. | | #default = It contains various translatable and untranslatable strings that are used in the template or anywhere else. | ||
Line 61: | Line 62: | ||
--> </div><!-- | --> </div><!-- | ||
--><div><!-- | --><div><!-- | ||
--> <span style="background-color: rgb(255 255 255 / 10%); border-radius:.2em; display:inline-flex; position:relative; padding:.1em .5em; margin-top:.2em">[[Template:Strings subpage|<span style="width:100%; height:100%; position:absolute; top:0; left:0"></span>]]<span style="user-select:none; margin-right:.2em; margin-top:-1px">[[File:icon-gnome-document-open.png|14px|link=]]</span><span | --> <span style="background-color: rgb(255 255 255 / 10%); border-radius:.2em; display:inline-flex; position:relative; padding:.1em .5em; margin-top:.2em">[[Template:Strings subpage|<span style="width:100%; height:100%; position:absolute; top:0; left:0"></span>]]<span style="user-select:none; margin-right:.2em; margin-top:-1px">[[File:icon-gnome-document-open.png|14px|link=]]</span><span>{{Dictionary/common|Doc|lang={{ucfirst:{{intlang}}}}}}</span></div> | ||
</div>}}<!-- | </div>}}<!-- | ||
Latest revision as of 05:05, 4 January 2025
Template Documentation [subpage/Doc&action=edit edit]
A panel indicating that the page it is on contains strings that are used in lieu of complicated {{autolang}}s on the base page.
Looking for creating a Strings subpage?
If you are looking for creating a strings subpage, just create a "/strings
" subpage, then paste the following code:

Parameters and Examples
Parameter | Description | Example |
---|---|---|
No Parameters | Places the template. | |
{{{number}}}
|
Number of strings. | |
{{{<language code>}}}
|
Number of translated strings into the specified language. |
When creating a new strings subpage, click on the three dots in the top right of the documentation box and click "Strings". This will create a new strings subpage with the proper formatting already applied. Of course, this is not required and you can just create a new one from scratch if you so wish.