"Module:Asbox": अवतरणों में अंतर

Content deleted Content added
imported>Codehydro
छोNo edit summary
imported>Codehydro
hmm, didn't realize it included the doc
पंक्ति 116:
-- Note: Original Asbox/templatepage checks for valid category names and whether they exist here.
-- Module has already done these at the first call of stubCats, avoiding a repeat checking if category# args are set.
.. require('Module:Documentation').main{
content = frame:preprocess'\n{{Asbox/stubtree}}\n\n== About this template ==\n\nThis template is used to identify a{{#if:{{{subject|}}}|&#32;{{{subject|}}}}} stub{{#if:{{{qualifier|}}}|&#32;{{{qualifier|}}}}}. It uses {{tl|asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.\n\n=== Usage ===\n\nTyping <code><nowiki>{{</nowiki>{{#ifeq:{{PAGENAME:{{{name}}}}}|Stub|stub|{{PAGENAME:{{{name}}}}} }}<nowiki>}}</nowiki></code> produces the message shown at the beginning, and adds the article to the following categor{{#if:{{{category1|}}}{{{category2|}}}|ies|y}}:\n* [[:Category:{{{category}}}]] (population: {{PAGESINCAT:{{{category}}}}}){{#if:{{{category1|}}}|* [[:Category:{{{category1}}}]] (population: {{PAGESINCAT:{{{category1}}}}})\n}}{{#if:{{{category2|}}}|* [[:Category:{{{category2}}}]] (population: {{PAGESINCAT:{{{category2}}}}})\n}}<!--\n\n*** Transclusion of /doc if it exists ***\n-->\n{{#ifexist:{{FULLPAGENAME}}/doc|{{{{FULLPAGENAME}}/doc}}\n}}<!--\n\n*** Generic documentation ***\n-->\n== General information ==\n\n{{Stub documentation}}\n\n|link box=This documentation is automatically generated by [[Template:Asbox/templatepage]]. <br/>The general information is transcluded from [[Template:Stub documentation]]. <span style="font-size: smaller; font-style: normal; line-height: 130%;">([{{fullurl:Template:Stub documentation|action=edit}} edit] &#124; [{{fullurl:Template:Stub documentation|action=history}} history])</span>{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop\n |{{sp}}<br/>This template is [[WP:PROTECT|fully protected]] and any [[WP:CAT|categories]] should be added to the template\'s [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Category_interwiki/preload}} /doc] subpage, which is not protected.\n}}\n\n}}'
}
end
 
"https://hi.wikipedia.org/wiki/Module:Asbox" से प्राप्त