Template:Country data Hrvatska: Difference between revisions
From Hattrick
Jump to navigationJump to search
Redirected page to Template:Country data Hrvatska |
|||
| Line 1: | Line 1: | ||
# | <includeonly>__NOEDITSECTION__ | ||
<div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;"> | |||
<div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;"> | |||
<span style="float: right; margin-left: 5px; background: none !important; padding: 0 !important;">[[{{fullurl:Template:Country showdata|action=edit}} edit]]</span> | |||
<span style="font-weight: bold; font-size: 125%">[[Image:Template-info.png|50px|alt=|link=]] Template documentation</span> | |||
</div> | |||
<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. | |||
[[File:{{{flag alias|Unknown.png}}}|thumb]] | |||
===Standard parameters=== | |||
<table class="wikitable"> | |||
<tr><th>Parameter name</th><th>Value</th><th>Meaning</th> | |||
</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> | |||