Template:Country data Hrvatska: Difference between revisions

From Hattrick
Jump to navigationJump to search
Savski (talk | contribs)
Undo revision 252493 by Savski (Talk)
Savski (talk | contribs)
Undo revision 252492 by Savski (Talk)
Line 1: Line 1:
<includeonly>__NOEDITSECTION__
{{ {{{1<noinclude>|country showdata</noinclude>}}}
<div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;">
| flag alias = Flag croatia croatia.gif
<div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;">
| alias = Hrvatska
<span style="float: right; margin-left: 5px; background: none !important; padding: 0 !important;">[[{{fullurl:Template:Country showdata|action=edit}} edit]]</span>
| size = {{{size|}}}
<span style="font-weight: bold; font-size: 125%">[[Image:Template-info.png|50px|alt=|link=]] Template documentation</span>
| name = Hrvatska
</div>
| altlink = {{{altlink|}}}
<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.
<noinclude>
 
| redir1 =
[[File:{{{flag alias|Unknown.png}}}|thumb]]
</noinclude>
===Standard parameters===
}}<noinclude>
<table class="wikitable">
{{DEFAULTSORT:Hrvatska}}
<tr><th>Parameter name</th><th>Value</th><th>Meaning</th>
[[Category:Country data templates]]
</tr><tr>
<td><tt>alias</tt></td>
<td>{{#if: {{{alias|}}} | <tt>{{{alias}}}</tt> | <span style="color:red">'''undefined!'''</span> }}
<td>Main article name ([[{{{alias}}}]])</td>
</tr>
<tr>
<td><tt>flag alias</tt></td>
<td>{{#if: {{{flag alias|}}} | <tt>{{{flag alias}}}</tt> | <span style="color:red">'''undefined!'''</span> }}</td>
<td>Image name ([[:File:{{{flag alias}}}]], shown above right)</td></tr>
</table>
{{#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>{{t|flag|''alias''}} output</th><th>{{t|flaglink|''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>{{flaglink|{{{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>{{flaglink|{{{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>{{flaglink|{{{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>{{flaglink|{{{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>{{flaglink|{{{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>{{flaglink|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → {{flaglink|{{{templatename|{{{alias}}}}}}}} }}
{{#if: {{{redir1|}}} |
====Using a redirect alias====
* <tt><nowiki>{{flagicon|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flagicon|{{{redir1}}}}}
* <tt><nowiki>{{flaglink|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flaglink|{{{redir1}}}}}
* <tt><nowiki>{{flag|</nowiki>{{{redir1}}}<nowiki>}}</nowiki></tt> → {{flag|{{{redir1}}}}}
}}
{{#ifexist:{{FULLPAGENAME}}/doc |
===Other information===
{{{{FULLPAGENAME}}/doc}}
}}
 
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 '''categories''' and documentation specific to this template.
|{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop
  |<br/>This template is [[WP:PROTECT|fully protected]] and any [[WP:CAT|categories]] and [[WP: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.
}}
}}
[[Category:Country data templates|{{{templatename|{{{alias}}}}}}]]
</div>
</includeonly><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Revision as of 14:17, 21 June 2012

[edit] Template documentation

Template:Country data Hrvatska is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, and others.

File:Flag croatia croatia.gif
Icon


Standard parameters

Parameter nameValueMeaningLink
name Hrvatska Main article name (Hrvatska)
aliasHrvatskaEnglish name-
flag alias Flag croatia croatia.gif Flag icon(File:Flag croatia croatia.gif)

Example usage


* {{flag|Hrvatska}}File:Flag croatia croatia.gif Hrvatska
* {{flaglink|Hrvatska}}Hrvatska
* {{flagicon|Hrvatska}}Hrvatska


This is the documentation for Template:Country data Hrvatska. It is automatically generated by Template:Country showdata.
Please purge the cache after making any changes to this template.