(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>
This is the "Country" template.
+
{| class="infobox country" style="float:right;text-align: left; width: 200px; font-size: 100%"  
It should be called in the following format:
+
<pre>
+
{{Country
+
|Name=
+
|mcc=
+
|coordinators=
+
|site=
+
|image=
+
}}
+
</pre>
+
Edit the page to see the template text.
+
</noinclude><includeonly>
+
{| class="wikitable" style="float:right; clear:right; width:270px; margin:5px; font-size:95%; empty-cells:hide"
+
|- style="text-align:center;"
+
! colspan=2 | {{#if:{{{name|}}}|[[{{{name|}}}]]|Country}}
+
 
|-
 
|-
! colspan=2 |<div style="margin:10px">{{{name}}}</div>
+
| colspan=2 style="text-align: center" | {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|size={{{image_width|}}}|sizedefault=frameless|upright={{{upright|1}}}|alt={{{image_alt|}}}}}|No image}}
 
|-
 
|-
! MCC
+
! colspan=2 style="text-align: center;background-color:#dfd" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}
| {{{mcc}}}
+
|-
 +
! MCC Prefix
 +
| {{#if:{{{mcc|}}}|{{{mcc|}}}|unspecified }}
 
|-
 
|-
 
! Coordinators
 
! Coordinators
| {{{coordinators}}}
+
| {{#if:{{{coordinators|}}} | {{#set:
 +
|coordinator={{{coordinators}}}
 +
|template=ByCallsign }} | unspecified }}
 
|-
 
|-
! Site
+
! Website
| {{{site}}}
+
| {{#if:{{{site|}}}|[{{{site|}}} {{{site|}}}]|https://brandmeister.network/ }}
 
|}
 
|}
 
[[Category:Country]]
 
[[Category:Country]]
 +
{{#if:{{{mcc|}}}|[[Category:MCC Prefix]]| }}
 +
{{#set:
 +
Country={{{name|}}}
 +
|MCC={{{mcc|}}}
 +
}}
 +
{{#default_form:Country}}
 +
__SHOWFACTBOX__
 
</includeonly>
 
</includeonly>
 +
<noinclude>
 +
This is a template used in [[Form:Country]] to collect pages in the [[:Category:Country]].
 +
It is used like this:
 +
<pre>
 +
{{Country
 +
| name=Country Name
 +
| mcc=123
 +
| image=CountrImage.png
 +
| coordinators=N0CALL
 +
| site=https://brandmeister.network/
 +
}}
 +
</pre>
 +
[[Category:Info templates]]
 +
</noinclude>

Latest revision as of 12:19, 31 January 2021


This is a template used in Form:Country to collect pages in the Category:Country. It is used like this:

{{Country
| name=Country Name
| mcc=123
| image=CountrImage.png
| coordinators=N0CALL
| site=https://brandmeister.network/
}}

This is the "Country" template. It should be called in the following format:

{{Country
|Name=
|mcc=
|coordinators=
|site=
|image=
}}

Edit the page to see the template text.