«قالب:توثيق»: الفرق بين المراجعتين

من Wiki Akhbar
اذهب إلى: تصفح، ابحث
ط (١ مراجعة)
ط (١ مراجعة)
سطر ١: سطر ١:
<!--
+
<div class="documentation mw-collapsible">
  Automatically add {{template sandbox notice}} when on a /sandbox page.
+
<div class="documentation-title">
-->{{#ifeq: {{SUBPAGENAME}} | sandbox
+
<span style="font-weight: bold; font-size: 120%">
| <div style="clear: both;"></div>{{template sandbox notice}}
+
[[ملف:Commons-emblem-doc.svg|معلومات القالب|25بك|وصلة=]] [[ويكيبيديا:توثيق قالب|توثيق]]
}}<!--
+
</span>
  Automatically add {{pp-template}} to protected templates.
+
{{#لوموجود:{{اسم_صفحة_كامل}}/شرح
-->{{template other
+
|<nowiki>[</nowiki>[[{{اسم_صفحة_كامل}}/شرح|شرح]]]
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
+
[[{{عنوان_كامل:{{اسم_صفحة_كامل}}/شرح|action=edit}} عدل]]
  | {{pp-template|docusage=yes}}
+
[[{{عنوان_كامل:{{اسم_صفحة_كامل}}|action=purge}} حدث]]
  | {{#if: {{PROTECTIONLEVEL:edit}}
+
|{{#لو:{{{شرح|}}}{{{1|}}}
    | {{pp-template|docusage=yes}}
+
|<nowiki>[</nowiki>[[{{{شرح|{{{1|}}}}}}|عام]]]
    | <!--Not protected, or only semi-move-protected-->
+
[[{{عنوان_كامل:قالب:{{{شرح|{{{1|}}}}}}|action=edit}} عدل]]
    }}
+
[[{{عنوان_كامل:{{اسم_صفحة_كامل}}|action=purge}} حدث]]
  }}
+
|[[{{عنوان_كامل:{{{شرح|{{اسم_صفحة_كامل}}/شرح}}}|action=edit&preload=قالب:توثيق/مسبق}} <font color=indianred>شرح</font>]]
}}<!--
 
  Start of green doc box.
 
-->{{documentation/start box2
 
| preload = {{{preload|}}}  <!--Allow custom preloads-->
 
| heading = {{{heading|¬}}}   <!--Empty but defined means no header-->
 
| heading-style = {{{heading-style|}}}
 
| content = {{{content|}}}
 
 
 
<!--Some namespaces must have the /doc, /sandbox and /testcases
 
    in talk space-->
 
| docspace = {{documentation/docspace}}
 
 
 
| 1 = {{{1|}}}  <!--Other docname, if fed-->
 
 
 
<!--The namespace is added in /start box2-->
 
| template page = {{documentation/template page}}
 
 
 
}}<!-- Start content --><!--
 
  Start load the /doc content:
 
  Note: The line breaks between this comment and the next line are necessary
 
  so  "=== Headings ===" at the start and end of docs are interpreted.
 
-->
 
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{documentation/docspace}}:{{documentation/template page}}/شرح|1|0}}
 
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110
 
| 1111 = {{{content|}}}
 
| 0110 | 0111 = {{ {{{1}}} }}
 
| 0001 | 0011 = {{ {{documentation/docspace}}:{{documentation/template page}}/شرح }}
 
| 0000 | 0100 | 0010 | 0101 =
 
 
}}
 
}}
<!--
+
}}
  End load the /doc content:
+
{{#لوموجود:{{اسم_صفحة_كامل}}/ملعب
  Note: The line breaks between this comment and the previous line are necessary
+
|<nowiki>[</nowiki>[[{{اسم_صفحة_كامل}}/ملعب|ملعب]]]
  so  "=== Headings ===" at the start and end of docs are interpreted.
+
|[[{{عنوان_كامل:{{اسم_صفحة_كامل}}/ملعب|action=edit&preload=قالب:توثيق/مسبق-ملعب}} <font color=indianred>ملعب</font>]]
-->{{documentation/end box2
+
}}
| preload = {{{preload|}}<!--Allow custom preloads-->
+
{{#لوموجود:{{اسم_صفحة_كامل}}/مختبر
| content = {{{content|}}}
+
|<nowiki>[</nowiki>[[{{اسم_صفحة_كامل}}/مختبر|مختبر]]]
| link box = {{{link box|}}<!--So "link box=off" works-->
+
|[[{{عنوان_كامل:{{اسم_صفحة_كامل}}/مختبر|action=edit&preload=قالب:توثيق/مسبق-مختبر}} <font color=indianred>مختبر</font>]]
 
+
}}
<!--Some namespaces must have the /doc, /sandbox and /testcases
+
{{#لوموجود:{{اسم_صفحة_كامل}}/وسائط
    in talk space-->
+
|<nowiki>[</nowiki>[[{{اسم_صفحة_كامل}}/وسائط|وسائط]]]
| docspace = {{documentation/docspace}}
+
<includeonly>[[تصنيف:قوالب تصلح لمعالج الوسائط]]</includeonly>
 
+
|[[{{عنوان_كامل:{{اسم_صفحة_كامل}}/وسائط|action=edit&preload=قالب:وسائط/مسبق}} <font color=indianred>وسائط</font>]]
| 1 = {{{1|}}}   <!--Other docname, if fed-->
+
}}
 
+
</div>
<!--The namespace is added in /end box2-->
+
<div class="documentation-content mw-collapsible-content">
| template page = {{documentation/template page}}
+
{{#لوموجود:{{اسم_صفحة_كامل}}/شرح|{{{{اسم_صفحة_كامل}}/شرح}}
 
+
|{{#لو:{{{شرح|}}}{{{1|}}}|{{قالب:{{{شرح|{{{1|}}}}}}}}
}}<!--
+
|{{{محتوى|}}}
  End of green doc box
+
}}
--><noinclude>
+
}}
 
+
</div>
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
</div>
</noinclude>
+
__لافهرس__

مراجعة ٠٦:٣٨، ٤ مارس ٢٠١٤

هذا القالب يضيف صندوق التوثيق كالذي تشاهده الآن، ومحتواه مضمن من صفحة أخرى مستقلة هي صفحة الشرح.

استعمال

اكتب في أسفل صفحة القالب: <noinclude>{{توثيق}}</noinclude>

أنشئ صفحة التوثيق بعد الانتهاء من إنشاء القالب. عنوانها يكون نفس عنوان القالب مضافا إليه /شرح في نهايته ومحتواها يتم تضمينه تلقائيا في الصندوق.

انظر أيضا