Template:Doc/sandbox: Difference between revisions
Jump to navigation
Jump to search

Tag: Undo |
m (autolang replace) |
||
Line 11: | Line 11: | ||
<div style="width:100%"><div style="display:flex; gap:8px; background:#505050; padding:6px 6px 6px 10px; flex-direction:{{#switch:{{uselang}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|hr|khw|kk-Arab|kk-CN|ks|ks-Arab|ku-Arab|lki|lrc|luz|mzn|pnb|ps|sd|sdh|skr|skr-Arab|ug|ug-Arab|ur|yi=row-reverse| align=right|#default=row"}}><div style="display:flex; flex-direction:{{#switch:{{uselang}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|hr|khw|kk-Arab|kk-CN|ks|ks-Arab|ku-Arab|lki|lrc|luz|mzn|pnb|ps|sd|sdh|skr|skr-Arab|ug|ug-Arab|ur|yi=row-reverse|#default=row}}; align-items:center; font-size:1.2em; color:#D8D8D8;">{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}} | <div style="width:100%"><div style="display:flex; gap:8px; background:#505050; padding:6px 6px 6px 10px; flex-direction:{{#switch:{{uselang}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|hr|khw|kk-Arab|kk-CN|ks|ks-Arab|ku-Arab|lki|lrc|luz|mzn|pnb|ps|sd|sdh|skr|skr-Arab|ug|ug-Arab|ur|yi=row-reverse| align=right|#default=row"}}><div style="display:flex; flex-direction:{{#switch:{{uselang}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|hr|khw|kk-Arab|kk-CN|ks|ks-Arab|ku-Arab|lki|lrc|luz|mzn|pnb|ps|sd|sdh|skr|skr-Arab|ug|ug-Arab|ur|yi=row-reverse|#default=row}}; align-items:center; font-size:1.2em; color:#D8D8D8;">{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}} | ||
| #default = {{Doc/strings|documentation}} | | #default = {{Doc/strings|documentation}} | ||
| Template = <span style="{{#switch:{{uselang}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|hr|khw|kk-Arab|kk-CN|ks|ks-Arab|ku-Arab|lki|lrc|luz|mzn|pnb|ps|sd|sdh|skr|skr-Arab|ug|ug-Arab|ur|yi=padding-left|#default=padding-right}}:6px;pointer-events:none;user-select:none;">[[File:Curly_brackets_white.png|32px|link=]]</span>{{ | | Template = <span style="{{#switch:{{uselang}}|aeb|aeb-Arab|ar|arc|arq|arz|azb|bcc|bgn|bqi|ckb|dv|fa|glk|he|hr|khw|kk-Arab|kk-CN|ks|ks-Arab|ku-Arab|lki|lrc|luz|mzn|pnb|ps|sd|sdh|skr|skr-Arab|ug|ug-Arab|ur|yi=padding-left|#default=padding-right}}:6px;pointer-events:none;user-select:none;">[[File:Curly_brackets_white.png|32px|link=]]</span>{{#switch: {{language}}|#default = Template Documentation|eo=Ŝablona Prio|es=Documentación de las plantillas|ru=Документация шаблона|zh=模板文档|ka=თარგი დოკუმენტაცია|de=Vorlagendokumentation}} | ||
| File = {{Doc/strings|Summary}} | | File = {{Doc/strings|Summary}} | ||
| User = {{Doc/strings|About}} | | User = {{Doc/strings|About}} | ||
Line 46: | Line 46: | ||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-doctools" style="display:none; overflow:hidden; background:#404040; border:1px solid rgba(255, 255, 255, 0.1); border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); user-select:text; position:absolute; z-index:1001; right:8px; "><!-- | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-doctools" style="display:none; overflow:hidden; background:#404040; border:1px solid rgba(255, 255, 255, 0.1); border-radius:4px; box-shadow:0 10px 20px rgb(0,0,0,.3); user-select:text; position:absolute; z-index:1001; right:8px; "><!-- | ||
--><div style="overflow-y:auto;max-height:200px;padding:2px 6px; "><span class=plainlinks><!-- | --><div style="overflow-y:auto;max-height:200px;padding:2px 6px; "><span class=plainlinks><!-- | ||
--><div>[[File:Icon-visibility.png|16px|link=]] [[Special:PrefixIndex/{{FULLPAGENAME}}/|{{ | --><div>[[File:Icon-visibility.png|16px|link=]] [[Special:PrefixIndex/{{FULLPAGENAME}}/|{{#switch: {{language}}|#default = Subpages|eo=Paĝidoj|es=Subpáginas|ru=Под­страницы|de=Unterseiten|zh=子页面}}]]</div><!-- | ||
--><div>[[File:Icon-deblur.png|16px|link=]] [{{fullurl:{{FULLPAGENAME}}|action=purge}} {{ | --><div>[[File:Icon-deblur.png|16px|link=]] [{{fullurl:{{FULLPAGENAME}}|action=purge}} {{#switch: {{language}}|#default = Purge cache|eo=Refreŝigi|es=Purga|ru=Очистить кэш|vi=Làm mới|zh=清除缓存|ka=წმენდს|de=Aktualisieren}}]</div><!-- | ||
--><div>[[File:Strings icon.png|16px|link=]] [{{fullurl:{{FULLPAGENAME}}/strings|{{#ifexist:{{FULLPAGENAME}}/strings||action=edit&preload={{urlencode:Template:Strings subpage/preload}}}}}} {{ | --><div>[[File:Strings icon.png|16px|link=]] [{{fullurl:{{FULLPAGENAME}}/strings|{{#ifexist:{{FULLPAGENAME}}/strings||action=edit&preload={{urlencode:Template:Strings subpage/preload}}}}}} {{#switch: {{language}}|#default = Strings|zh=字符串}}]</div><!-- | ||
--><div>{{#switch:{{{tools|}}}|#default=[[File:Icon-sandbox.png|16px|link=]] {{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/sandbox}}| [[{{FULLPAGENAME}}/sandbox|{{ | --><div>{{#switch:{{{tools|}}}|#default=[[File:Icon-sandbox.png|16px|link=]] {{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/sandbox}}| [[{{FULLPAGENAME}}/sandbox|{{#switch: {{language}}|#default = Sandbox|eo=Designejeto|es=Terreno de pruebas|ru=Песоч­ница|zh=沙盒}}]] | [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit&preload={{urlencode:{{FULLPAGENAME}} }} }} {{#switch: {{language}}|#default = Sandbox|eo=Designejeto|es=Terreno de pruebas|ru=Песоч­ница|zh=沙盒}}]}}</div><!-- | ||
--><div>{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/testcases}}| [[{{FULLPAGENAME}}/testcases|{{ | --><div>{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/testcases}}| [[{{FULLPAGENAME}}/testcases|{{#switch: {{language}}|#default = Testcase|eo=Provkazo|es=Pruebas|ru=Тестиро­вание}}]] |[[File:Icon-task alt.png|16px|link=]] [{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} {{#switch: {{language}}|#default = Testcase|eo=Provkazo|es=Pruebas|ru=Тестиро­вание|zh=测试用例}}]}}|1=}}</div><!-- | ||
--></span></div><!-- | --></span></div><!-- | ||
--></div> | --></div> | ||
Line 101: | Line 101: | ||
[[Category:Template documentation pages]]}} | [[Category:Template documentation pages]]}} | ||
| 1 = {{messagebox|borderstyle=|image=[[File:Sandbox.png|40px|link=]] | | 1 = {{messagebox|borderstyle=|image=[[File:Sandbox.png|40px|link=]] | ||
|text= {{Doc/strings|Sandboxsp}} ([{{fullurl:Special:ComparePages|page1={{NAMESPACEE}}:{{ROOTPAGENAMEE}}&page2={{FULLPAGENAMEE}}}} {{ | |text= {{Doc/strings|Sandboxsp}} ([{{fullurl:Special:ComparePages|page1={{NAMESPACEE}}:{{ROOTPAGENAMEE}}&page2={{FULLPAGENAMEE}}}} {{#switch: {{language}}|#default = diff|ru=Сравнить}}])}}[[Category:Sandbox pages]] | ||
| 2 = {{messagebox|borderstyle=|image=[[File:Sandbox Not.png|40px|link=]] | | 2 = {{messagebox|borderstyle=|image=[[File:Sandbox Not.png|40px|link=]] | ||
|text={{Doc/strings|NotSandbox 1}}}} | |text={{Doc/strings|NotSandbox 1}}}} | ||
Line 110: | Line 110: | ||
|text={{Doc/strings|MultiDocsp}}}}[[Category:Template documentation pages]] | |text={{Doc/strings|MultiDocsp}}}}[[Category:Template documentation pages]] | ||
}}{{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}|<div class="plainlinks" style="background:#323232; border:1px solid #505050; border-radius:2px; padding:0.4em 1em; margin-top:1em;"> | }}{{#ifexist:{{{docpage|{{FULLPAGENAME}}/doc}}}|<div class="plainlinks" style="background:#323232; border:1px solid #505050; border-radius:2px; padding:0.4em 1em; margin-top:1em;"> | ||
''{{Doc/strings|transcluded}}'' <small>([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} {{ | ''{{Doc/strings|transcluded}}'' <small>([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} {{#switch: {{language}}|#default = edit|zh=编辑}}] {{!}} [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} {{#switch: {{language}}|#default = history|zh=页面历史}}])</small><br> | ||
''{{Doc/strings|Sandbox}}''<br> | ''{{Doc/strings|Sandbox}}''<br> | ||
''{{Doc/strings|Cat}}'' | ''{{Doc/strings|Cat}}'' |
Revision as of 18:45, 5 August 2024
Todo: Exclude Sandbox subpage and other from this template. Also do some code cleanup.
Todo: Fix the document page does not exist bug after changes to MultiPage.

This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Please follow the format on this subpage(s) to add translations.

This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Please follow the format on this subpage(s) to add translations.
Header
Test page that uses for testing the new style of the template.
Changes made
- Added {{{DocParam1}}} ~ {{{DocParam5}}} for /doc page
- Useful for pages transcluding from a page and needing a very small change.
Example
{{Doc/sandbox|docpage=abc|DocParam1=Half-Life 2|DocParam2=hl2}}
In a /doc page:
{{ {{{DocParam1|Half-Life 2}}}|4|nt={{{DocParam2|}}} }}
- DocParam1:
Half-Life 2
- DocParam2:
HL2
Test parameters
The above documentation is transcluded from [[{{{docpage}}}]]. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this page.