टेम्पलेट:Country showdata: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
imported>Urhixidur
Adding cat parameter
Created page with "<includeonly> __NOEDITSECTION__ {{pp-template}} <div class="template-documentation"> <div style="font-size: 1.5em; border-bottom: 1px solid #aaa;"><span class="mw-headline">Te..."
लाइन 1:
<includeonly>
__NOEDITSECTION__
{{pp-template}}
{{documentation|content=<tt>Template:{{PAGENAME}}</tt> is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as <tt>[[Template:flag|flag]]</tt>, <tt>[[Template:flagicon|flagicon]]</tt>, and others.
<div class="template-documentation">
<div style="font-size: 1.5em; border-bottom: 1px solid #aaa;"><span class="mw-headline">Template documentation</span></div>
|link box=''This is the documentation for '''Template:{{PAGENAME}}'''. It is automatically generated by [[Template:Country showdata]].<br />Please {{purge|purge the cache}} after making any changes to this template.<!--''
 
<tt>Template:{{ombox|text=This templatePAGENAME}}</tt> is withinan theinternal scopedata ofcontainer '''[[Wikipedia:WikiProjectnot Flagintended Template|WikiProjectto Flagbe Template]]''',transcluded adirectly. collaborativeIt effortis toused maintainindirectly flagby templates onsuch Wikipediaas <tt>[[Template:flag|flag]]</tt>, <tt>[[Template:flagicon|flagicon]]</tt>, and others. AFor a more thorough discussion of the flag template system, including parameters not described here, canplease besee found[[Wikipedia:WikiProject onFlag the project pageTemplate]].}}
 
'''''Please <span class="plainlinks">[{{fullurl:{{FULLPAGENAMEE}}|action=purge}} purge the cache]</span> after making any changes to this template.'''''
[[File:{{{flag alias|Flag of None.svg}}}|thumb|{{#ifexist: Flag of {{{alias}}} | See also: [[Flag of {{{alias}}}]] | }}]]
 
===Standard parameters===
[[FileImage:{{{flag alias|Flag ofSin Nonebandera.svg}}}|thumb|{{#ifexist: {{{alt attribute}}} | See also: [[{{{alt attribute}}}]] |{{#ifexist: Flag of {{{alias}}} | See also: [[Flag of {{{alias}}}]] | }} }}]]
<table class="wikitable">
===Standard parameters===
<tr><th>Parameter name</th><th>Value</th><th>Meaning</th>
<table{| class="wikitable">
</tr><tr>
<tr><th>! Parameter name</th><th> !! Value</th><th> !! Meaning</th>
<td><tt>alias</tt></td>
|-
<td>{{#if: {{{alias|}}} | <tt>{{{alias}}}</tt> | <span style="color:red">'''undefined!'''</span> }}
| <tdtt>Main article name ([[{{{alias}}}]])</tdtt>
<td>| {{#if: {{{alias|}}} | <tt>{{{alias}}}</tt> | <span style="color:red">'''undefined!'''</span> }}
</tr>
| Main article name ([[{{{alias}}}]])
{{#if: {{{shortname alias|}}} |
<tr>
Line 20 ⟶ 25:
</tr>
}}
|-
<td>| <tt>flag alias</tt></td>
| {{#if: {{{flag alias|}}} | <tt>{{{flag alias}}}</tt> | <span style="color:red">'''undefined!'''</span> }}
| Image name ([[:Image:{{{flag alias}}}]], shown above right)
{{#if: {{{flagalt alias-armyattribute|}}} |
<tr>
<td><tt>flagalt aliasattribute</tt></td>
<td>{{#if: {{{flag alias|}}} | <tt>{{{flagalt aliasattribute}}}</tt> | <span style="color:red">'''undefined!'''</span> }}</td>
<td>Image''(optional)'' name ([[:File:{{{flagalt alias}}}attribute]], shownfor aboveflag right)image</td>
</tr></table>
}}}}
|}
{{#if: {{{var1|{{{flag alias-naval|}}}}}} |
===Flag variants===
{{#ifexist: {{{alt attribute}}} | {{details|{{{alt attribute}}}}} | {{#ifexist: Flag of {{{alias}}} | {{details|Flag of {{{alias}}}}} | }} }}
<table class="wikitable">
<tr><th>Label</th><th>Flag image (40px)</th><th>Image name</th></tr>
{{#if: {{{var1|}}} | <tr><td><tt>{{{var1}}}</tt></td><td align=center>[[FileImage:{{{flag alias-{{{var1}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var1}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{var2|}}} | <tr><td><tt>{{{var2}}}</tt></td><td align=center>[[FileImage:{{{flag alias-{{{var2}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var2}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{var3|}}} | <tr><td><tt>{{{var3}}}</tt></td><td align=center>[[FileImage:{{{flag alias-{{{var3}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var3}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{var4|}}} | <tr><td><tt>{{{var4}}}</tt></td><td align=center>[[FileImage:{{{flag alias-{{{var4}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var4}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{var5|}}} | <tr><td><tt>{{{var5}}}</tt></td><td align=center>[[FileImage:{{{flag alias-{{{var5}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var5}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{var6|}}} | <tr><td><tt>{{{var6}}}</tt></td><td align=center>[[FileImage:{{{flag alias-{{{var6}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var6}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{var7|}}} | <tr><td><tt>{{{var7}}}</tt></td><td align=center>[[FileImage:{{{flag alias-{{{var7}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var7}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{var8|}}} | <tr><td><tt>{{{var8}}}</tt></td><td align=center>[[FileImage:{{{flag alias-{{{var8}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var8}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{var9|}}} | <tr><td><tt>{{{var9}}}</tt></td><td align=center>[[FileImage:{{{flag alias-{{{var9}}}}}}|40px|border]]</td><td><tt>{{{flag alias-{{{var9}}}}}}</tt></td></tr> }}<!--
-->{{#if: {{{flag alias-naval|}}} | <tr><td><tt>naval</tt></td><td align=center>[[FileImage:{{{flag alias-naval}}}|40px|border]]</td><td><tt>{{{flag alias-naval}}}</tt></td></tr> }}<!--
-->{{#if: {{{flag alias-air force|}}} | <tr><td><tt>air force</tt></td><td align=center>[[FileImage:{{{flag alias-air force}}}|40px|border]]</td><td><tt>{{{flag alias-air force}}}</tt></td></tr> }}<!--
-->{{#if: {{{flag alias-army|}}} | <tr><td><tt>army</tt></td><td align=center>[[File:{{{flag alias-army}}}|40px|border]]</td><td><tt>{{{flag alias-army}}}</tt></td></tr> }}<!--
--></table>
}}
{{#if: {{{flag alias-naval|}}}{{{link alias-naval|}}}{{{flag alias-air force|}}}{{{flag alias-army|}}} |
===Military ensigns===
{{#if: {{{flag alias-naval|}}} |
==Naval ensign==
This template includes a [[Maritime flag|naval ensign]] flag variant that can be used with [[Template:Navy]]:
* <tt><nowiki>{{navy|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{navy|{{{templatename|{{{alias}}}}}}}}
* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|naval}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}|naval}}
}}
| {{#if: {{{link alias-naval|}}} |
This nation's naval ensign is the same as its national flag, so [[Template:Navy]] produces the following:
* <tt><nowiki>{{navy|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{navy|{{{templatename|{{{alias}}}}}}}}
}}}}
{{#if: {{{flag alias-air force|}}} |
==Air force ensign==
This template includes an air force ensign flag variant that can be used with [[Template:Air force]]:
* <tt><nowiki>{{air force|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{air force|{{{templatename|{{{alias}}}}}}}}
* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|air force}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}|air force}}
}}
{{#if: {{{flag alias-army|}}} |
This template includes an army ensign flag variant that can be used with [[Template:Army]]:
* <tt><nowiki>{{army|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{army|{{{templatename|{{{alias}}}}}}}}
* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|army}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}|army}}
}} }}
{{#if: {{{redir1|}}} |
===Redirect aliases===
This template can also be used via an ''alias'' name (implemented as a redirect to this template):<!--
--><table class="wikitable"><!--
--><tr><th>Alias name</th><th>{{tlx|flag|''alias''}} output</th><th>{{tlx|flagcountry|''alias''}} output</th></tr>
{{#if: {{{redir1|}}} | <tr><td><tt>{{{redir1}}} (</tt><span class="plainlinks">[{{fullurl:Template:Countryदेश data {{{redir1}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flagपताका|{{{redir1}}}}}</td><td>{{flagcountry|{{{redir1}}}}}</td></tr> }}<!--
-->{{#if: {{{redir2|}}} | <tr><td><tt>{{{redir2}}} (</tt><span class="plainlinks">[{{fullurl:Template:Countryदेश dataआँकड़े {{{redir2}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flagपताका|{{{redir2}}}}}</td><td>{{flagcountry|{{{redir2}}}}}</td></tr> }}<!--
-->{{#if: {{{redir3|}}} | <tr><td><tt>{{{redir3}}} (</tt><span class="plainlinks">[{{fullurl:Template:Countryदेश dataआँकड़े {{{redir3}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flagपताका|{{{redir3}}}}}</td><td>{{flagcountry|{{{redir3}}}}}</td></tr> }}<!--
-->{{#if: {{{redir4|}}} | <tr><td><tt>{{{redir4}}} (</tt><span class="plainlinks">[{{fullurl:Template:Countryदेश dataआँकड़े {{{redir4}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flagपताका|{{{redir4}}}}}</td><td>{{flagcountry|{{{redir4}}}}}</td></tr> }}<!--
-->{{#if: {{{redir5|}}} | <tr><td><tt>{{{redir5}}} (</tt><span class="plainlinks">[{{fullurl:Template:Countryदेश dataआँकड़े {{{redir5}}}|redirect=no}} view]</span><tt>)</tt></td><td>{{flagपताका|{{{redir5}}}}}</td><td>{{flagcountry|{{{redir5}}}}}</td></tr> }}<!--
--></table>
}}
===Example usage===
* <tt><nowiki>{{flagपताका|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flagपताका|{{{templatename|{{{alias}}}}}}}}
* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}}}<!--
-->{{#if: {{{shortname alias|}}} |
* <tt><nowiki>{{flagcountryदेश पताका|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flagcountryदेश पताका|{{{templatename|{{{alias}}}}}}}} }}<!--
-->{{#if: {{{var1|}}} |
====;Using a flag variant====
* <tt><nowiki>{{flagपताका|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></tt> → {{flagपताका|{{{templatename|{{{alias}}}}}}|{{{var1}}}}}
* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|</nowiki>{{{var1}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{templatename|{{{alias}}}}}}|{{{var1}}}}}
}}<!--
-->{{#if: {{{redir1|}}} |
====;Using a redirect alias====
* <tt><nowiki>{{flagicon|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{redir1}}}}}
* <tt><nowiki>{{flagcountry|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flagcountry|{{{redir1}}}}}
* <tt><nowiki>{{flagपताका|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flagपताका|{{{redir1}}}}}
}}
{{#if: {{{related1|}}} |
===Related templates===
Please see the following related <tt>country_data</tt> templates:
* [[Template:Countryदेश dataआँकड़े {{{related1}}}]]<span style="position:absolute; left:33em32em;">{{flagपताका|{{{related1}}}<!-- {{#if:{{{related1param|}}}|{{!}}{{{related1param}}}}} -->}}</span><!--
-->{{#if: {{{related2|}}} |
* [[Template:Countryदेश dataआँकड़े {{{related2}}}]]<span style="position:absolute; left:33em32em;">{{flagपताका|{{{related2}}}<!-- {{#if:{{{related2param|}}}|{{!}}{{{related2param}}}}} -->}}</span> }}<!--
-->{{#if: {{{related3|}}} |
* [[Template:Countryदेश dataआँकड़े {{{related3}}}]]<span style="position:absolute; left:33em32em;">{{flagपताका|{{{related3}}}<!-- {{#if:{{{related3param|}}}|{{!}}{{{related3param}}}}} -->}}</span> }}<!--
-->{{#if: {{{related4|}}} |
* [[Template:Countryदेश dataआँकड़े {{{related4}}}]]<span style="position:absolute; left:33em32em;">{{flagपताका|{{{related4}}}<!-- {{#if:{{{related4param|}}}|{{!}}{{{related4param}}}}} -->}}</span> }}<!--
-->{{#if: {{{related5|}}} |
* [[Template:Countryदेश dataआँकड़े {{{related5}}}]]<span style="position:absolute; left:33em32em;">{{flagपताका|{{{related5}}}<!-- {{#if:{{{related5param|}}}|{{!}}{{{related5param}}}}} -->}}</span> }}<!--
-->{{#if: {{{related6|}}} |
* [[Template:Country data {{{related6}}}]]<span style="position:absolute; left:33em;">{{flag|{{{related6}}}<!-- {{#if:{{{related6param|}}}|{{!}}{{{related6param}}}}} -->}}</span> }}<!--
-->}}
{{#ifexist: Template:{{FULLPAGENAMEPAGENAME}}/doc |
===Other information===
{{{{FULLPAGENAME}}/doc}}
}}
[[Category:देश आँकड़े साँचे|{{{templatename|{{{alias}}}}}}]]
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--
{{#if: {{{shortname alias|}}} | -->[[Category:Countryभिन्न dataछोटे templates|{{{catनाम के देश आँकड़े साँचे|{{{templatename|{{{alias}}}}}}}}}]]<!-- }}
{{#ifeq: {{PAGENAME}} | देश आँकड़े {{{alias}}} | | {{#ifeq: {{PAGENAME}} | देश आँकड़े {{{shortname alias}}} | | [[श्रेणी:Country data templates with distinct template name]] }} }}
-->{{#if:{{{shortname alias|}}}|<!--
</trdiv>
-->[[Category:Country data templates with distinct shortname|{{{cat|{{{templatename|{{{alias}}}}}}}}}]]<!--
}}</includeonly><noinclude>{{documentation}}</noinclude>
-->}}<!--
-->{{#ifeq:{{PAGENAME}}|Country data {{{alias}}}||<!--
-->{{#ifeq:{{PAGENAME}}|Country data {{{shortname alias}}}||<!--
-->[[Category:Country data templates with distinct template name|{{{cat|}}}]]<!--
-->}}<!--
-->}}<!--
-->}}
|link box=This is the documentation for '''Template:{{PAGENAME}}'''. It is automatically generated by [[Template:Country showdata]].<br />Please {{purge|purge the cache}} after making any changes to this template.<!--
-->{{#ifexist:{{FULLPAGENAME}}/doc|<!--
--><br />This template has a [[{{FULLPAGENAME}}/doc|/doc]] subpage for the purposes of [[WP:CAT|categories]], [[H:ILL|interlanguage links]] and documentation specific to this template.|<!--
-->{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop|<!--
--><br />This template is [[WP:PROTECT|fully protected]] and any [[WP:CAT|categories]] and [[H:ILL|interlanguage links]] should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Category_interwiki/preload}} /doc] subpage, which is not protected.|<!--
--><br />Any [[WP:CAT|categories]] and [[H:ILL|interlanguage links]] should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Category_interwiki/preload}} /doc] subpage, which does not exist yet.<!--
-->}}<!--
-->}}
}}</includeonly><noinclude>
{{documentation}}
</noinclude>