الفرق بين النسختين بتاع: «قالب:Flag template documentation»

تم حذف المحتوى تمت إضافة المحتوى
don't want /doc in the main category, will this work?
rewrite
سطر 1:
<includeonly>{{#switch: {{PROTECTIONLEVEL:edit}} | sysop={{pp-template|small=yes}} | autoconfirmed={{pp-template|small=yes}} }}
<div class="template-documentation">
{{documentation subpage}}
<div style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex">
</includeonly>
<span style="font-weight: bold; font-size: 125%">[[File:Template-info.svg|50px|alt=|link=]] Template documentation</span>
</div>
<div id="template_doc_page_transcluded" class="dablink plainlinks">
This [[Wikipedia:Template documentation|documentation]] is automatically generated from [[Template:flag template documentation]]. Interwiki code is [[Wikipedia:Transclusion|transcluded]] from [[{{SUBJECTPAGENAME}}/doc]]. <small style="font-style: normal">([{{fullurl:{{SUBJECTPAGENAME}}/doc|action=edit}} edit])</small><br />
</div>
==Description==
:<code><nowiki>{{</nowiki>{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{3|}}}|{{{3}}}|{{#if:{{{4|}}}|{{{4}}}|?}}}}}}<nowiki>}}</nowiki></code>
السطر 9 ⟵ 14:
 
==See also==
*[[Template:Country data {{{1}}}]] for more options, such as historical flag variations where applicable
*[[Wikipedia:WikiProject Flag Template]] for a complete discussion of the flag template system
*[[Wikipedia:Inline templates linking country articles]] for a complete list of these "shortcutshorthand" flag templates
<div style="clear: both;"></div>
</div>
<includeonly>[[Category:Flag templates|{{PAGENAME}}]]</includeonly>
{{ {{SUBJECTPAGENAME}}/doc }} <!-- interwiki for flag template from here -->
</includeonly><noinclude>
This template is used to automatically generate documentation for standard [[:Category:Flag templates|flag templates]].
 
;Usage:<code><nowiki>{{flag template documentation|Country name|ISO|IOC|FIFA}}</nowiki></code>
<includeonly>[[Category:Flag templates|{{PAGENAME}}]]</includeonly>
;Parameters
:''Country name'' — matches the parameter used with {{tl|flag}} within the flag template itself
:''ISO'' — [[ISO 3166-1 alpha-3]] country code
:''IOC'' — [[List of IOC country codes|IOC country code]]
:''FIFA'' — [[List of FIFA country codes|FIFA country code]]
If any of the three codes are not applicable for a particular country, leave the respective parameters blank.
 
This template is placed on the flag template itself (similar to how the {{tl|documentation}} template is placed). This template depends on the mandatory existence of a /doc subpage, which is only used to transclude interwiki links.
 
[[Category:Template documentation|{{PAGENAME}}]]
</noinclude>