تشخیص فضای نام: تفاوت میان نسخه‌ها

از ایران پدیا
پرش به ناوبری پرش به جستجو
www>Amirobot
جز الگو:Namespace detect» را محافظت کرد: ربات:حفاظت فهرستی از صفحه‌ها ([edit=sysop] (بی‌پایان) [move=sysop] (بی‌پایان)))
جز (۶ نسخه واردشده)
 
(۱۰ نسخهٔ میانی ویرایش شده توسط ۵ کاربر نشان داده نشد)
خط ۱: خط ۱:
{{#switch:
{{#invoke:Namespace detect|main}}<noinclude>
  {{lc:              <!--Lower case the result-->
    <!--If no or empty "demospace" parameter then detect namespace-->
    {{#if:{{{demospace|}}}
    | {{{demospace}}}
    | {{#ifeq:{{NAMESPACE}}|{{ns:0}}
      | main
      | {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
        | talk
        | {{NAMESPACE}}
        }}
      }}
    }}
  }}
<!-- Only one of the lines below will be executed -->
<!-- Respecting empty parameters on purpose -->
| main      = {{{main| {{{other|}}} }}}
| talk      = {{{talk| {{{other|}}} }}}
| user      = {{{user| {{{other|}}} }}}
| iran-pedia = {{{iran-pedia| {{{other|}}} }}}
| image    = {{{image| {{{other|}}} }}}
| mediawiki = {{{mediawiki| {{{other|}}} }}}
| template  = {{{template| {{{other|}}} }}}
| help      = {{{help| {{{other|}}} }}}
| category  = {{{category| {{{other|}}} }}}
| portal    = {{{portal| {{{other|}}} }}}
| other
| #default  = {{{other|}}}   <!--"demospace=other" or a new namespace-->


}}<!--End switch--><noinclude>
{{توضیحات}}
[[en:Template:Namespace detect]]
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
</noinclude>
</noinclude>

نسخهٔ کنونی تا ‏۲۷ مارس ۲۰۲۰، ساعت ۱۹:۲۷


توضیحات[ایجاد]