Template:Country showdata: Difference between revisions
From Hattrick
Jump to navigationJump to search
No edit summary |
mNo edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
</div> | </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. | <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. | ||
__NOTOC__ | |||
[[File:{{{flag alias|Unknown.png}}}|thumb|Icon]] | [[File:{{{flag alias|Unknown.png}}}|thumb|Icon]] | ||
{{#if: {{{flag full|}}} |[[File:{{{flag full}}}|thumb|Full size flag of {{{alias}}} (alternative)]]|}} | {{#if: {{{flag full|}}} |[[File:{{{flag full}}}|thumb|Full size flag of {{{alias}}} (alternative)]]|}} | ||
{{#if: {{{flag logo|}}} |[[File:{{{flag logo}}}|thumb|Country logo]]|}} | {{#if: {{{flag logo|}}} |[[File:{{{flag logo}}}|thumb|Country logo]]|}} | ||
===Standard parameters=== | ===Standard parameters=== | ||
<table class="wikitable"> | <table class="wikitable" style="font-size:92%; margin-right:2em;"> | ||
<tr><th>Parameter name</th><th>Value</th><th>Meaning</th><th>Link</th> | <tr><th>Parameter name</th><th>Value</th><th>Meaning</th><th>Link</th></tr> | ||
</tr> | |||
<tr><td><tt>name</tt></td> | <tr><td><tt>name</tt></td> | ||
<td>{{#if: {{{name|}}} | <tt>{{{name}}}</tt> | <span style="color:red">'''undefined!'''</span> }}</td> | <td>{{#if: {{{name|}}} | <tt>{{{name}}}</tt> | <span style="color:red">'''undefined!'''</span> }}</td> | ||
| Line 27: | Line 26: | ||
</table> | </table> | ||
====Example usage==== | ====Example usage==== | ||
<table> | |||
<tr><td>* <tt><nowiki>{{flag|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → </td><td>{{flag|{{{templatename|{{{alias}}}}}}}}</td></tr> | |||
<tr><td>* <tt><nowiki>{{flaglink|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → </td><td>{{flaglink|{{{templatename|{{{alias}}}}}}}}</td></tr> | |||
<tr><td>* <tt><nowiki>{{flagicon|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>}}</nowiki></tt> → </td><td>{{flagicon|{{{templatename|{{{alias}}}}}}}}</td></tr> | |||
{{#if: {{{flag full|}}} |<tr><td> * <tt><nowiki>{{flagfull|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|showlink}}</nowiki></tt> → </td><td>{{flagfull|{{{templatename|{{{alias}}}}}}|showlink}}</td></tr>|}} | |||
{{#if: {{{flag logo|}}} |<tr><td> * <tt><nowiki>{{flaglogo|</nowiki>{{{templatename|{{{alias}}}}}}<nowiki>|size=x60px}}</nowiki></tt> → </td><td>{{flaglogo|{{{templatename|{{{alias}}}}}}|size=x60px}}</td></tr>|}} | |||
</table> | |||
{{#if: {{{redir1|}}} | | {{#if: {{{redir1|}}} | | ||
===Redirect=== | ===Redirect=== | ||
Latest revision as of 14:02, 28 January 2020
[edit]
Template documentation
This template is used for documenting country data meta-templates used by the flag template system. The output of this template can be seen by directly viewing any of the templates in Category:Country data templates.