![]() | Flag Template | |||
|
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the contents of the template from:
<span class="flagicon">[[File:{{{1|Flag of None.svg}}}|{{{size|22x20px}}}|{{{border|border}}} |alt=|link=]] </span><noinclude>{{documentation}}</noinclude>
(line break added for legibility) to:
<span class="flagicon"{{#if:{{{size|}}}|| style="width: 23px; text-align: center; display: inline-block;"}}> [[File:{{{1|Flag of None.svg}}}|{{{size|22x20px}}}|{{{border|border}}} |alt=|link=]]</span> <noinclude>{{documentation}}</noinclude>
(again, please remove the line breaks, which I have added for legibility).
This will force flags to be the same width as standard {{
flagicon}} images, unless |size=
is specified. Thanks! —
OwenBlacker (
Talk)
15:59, 9 July 2012 (UTC)
<span class="flagicon">[[File:Flag of the United Kingdom.svg|22x20px|border |alt=United Kingdom|link=United Kingdom]]</span>
<span class="flagicon">[[File:Flag of the United Kingdom.svg|22x20px|border |alt=|link=]]</span>
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Standard | W/o border | Empty param | No param | |
---|---|---|---|---|
Actual template | ![]() |
![]() |
[[File:|23x15px|border |alt=|link=]] | ![]() |
Sandbox | ![]() |
![]() |
![]() |
![]() |
I have created a
sandbox version (
compare) which better deals with cases in which the first parameter is empty or not defined at all. The latter is currently the case at
List of micronations, where many non-free image names were recently semi-automatically commented out, leaving ugly bordered transparent flag images. It's even worse if the first parameter is kept but emptied ({{flagicon image|}}
), which results in wikitext being displayed. The sandbox displays an unbordered transparent image in both cases.
Please update the template from the sandbox or, preferably, reduce to template protection so I can do it myself. SiBr4 ( talk) 22:25, 5 December 2014 (UTC)
Why do flags with no borders when using "border=no" in the template display the alt text, when hovering over the image, "no" - FugeeCamp talk 00:34, 14 November 2015 (UTC)
{{flagicon image|Flag of Ohio.svg|border=}}
. A non-empty string as value for the parameter does remove the border, but as a side effect adds the value as mouseover for the image. This is consistent with the back-end "border" parameters in other flag templates. I'll clarify the documentation, though changing the template to accept "no" would also be possible.
SiBr4 (
talk)
09:14, 14 November 2015 (UTC)|border=
. It interprets ""/"no"/"n"/"0"/"false" as no border and anything else as border:Param | Current | Sandbox |
---|---|---|
![]() |
![]() | |
border= | ![]() |
![]() |
border=yes | ![]() |
![]() |
border=1 | ![]() |
![]() |
border=no | ![]() |
![]() |
border=0 | ![]() |
![]() |
border=foo | ![]() |
![]() |
I would like to suggest that this template is expanded with an optional link= parameter so that the produced image can be configured to link to a relevant article when clicked on, just like with the regular flagicon template. T v x1 18:02, 3 February 2019 (UTC)
|link=
parameter (click the "diff" link at the bottom of the template documentation to see the new code). Now create a testcases page using {{
testcase table}} to demonstrate its usage. It may be easiest to copy an existing testcases page. If you get stuck, let me know. –
Jonesey95 (
talk)
14:56, 9 May 2020 (UTC)
![]() | Flag Template | |||
|
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the contents of the template from:
<span class="flagicon">[[File:{{{1|Flag of None.svg}}}|{{{size|22x20px}}}|{{{border|border}}} |alt=|link=]] </span><noinclude>{{documentation}}</noinclude>
(line break added for legibility) to:
<span class="flagicon"{{#if:{{{size|}}}|| style="width: 23px; text-align: center; display: inline-block;"}}> [[File:{{{1|Flag of None.svg}}}|{{{size|22x20px}}}|{{{border|border}}} |alt=|link=]]</span> <noinclude>{{documentation}}</noinclude>
(again, please remove the line breaks, which I have added for legibility).
This will force flags to be the same width as standard {{
flagicon}} images, unless |size=
is specified. Thanks! —
OwenBlacker (
Talk)
15:59, 9 July 2012 (UTC)
<span class="flagicon">[[File:Flag of the United Kingdom.svg|22x20px|border |alt=United Kingdom|link=United Kingdom]]</span>
<span class="flagicon">[[File:Flag of the United Kingdom.svg|22x20px|border |alt=|link=]]</span>
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Standard | W/o border | Empty param | No param | |
---|---|---|---|---|
Actual template | ![]() |
![]() |
[[File:|23x15px|border |alt=|link=]] | ![]() |
Sandbox | ![]() |
![]() |
![]() |
![]() |
I have created a
sandbox version (
compare) which better deals with cases in which the first parameter is empty or not defined at all. The latter is currently the case at
List of micronations, where many non-free image names were recently semi-automatically commented out, leaving ugly bordered transparent flag images. It's even worse if the first parameter is kept but emptied ({{flagicon image|}}
), which results in wikitext being displayed. The sandbox displays an unbordered transparent image in both cases.
Please update the template from the sandbox or, preferably, reduce to template protection so I can do it myself. SiBr4 ( talk) 22:25, 5 December 2014 (UTC)
Why do flags with no borders when using "border=no" in the template display the alt text, when hovering over the image, "no" - FugeeCamp talk 00:34, 14 November 2015 (UTC)
{{flagicon image|Flag of Ohio.svg|border=}}
. A non-empty string as value for the parameter does remove the border, but as a side effect adds the value as mouseover for the image. This is consistent with the back-end "border" parameters in other flag templates. I'll clarify the documentation, though changing the template to accept "no" would also be possible.
SiBr4 (
talk)
09:14, 14 November 2015 (UTC)|border=
. It interprets ""/"no"/"n"/"0"/"false" as no border and anything else as border:Param | Current | Sandbox |
---|---|---|
![]() |
![]() | |
border= | ![]() |
![]() |
border=yes | ![]() |
![]() |
border=1 | ![]() |
![]() |
border=no | ![]() |
![]() |
border=0 | ![]() |
![]() |
border=foo | ![]() |
![]() |
I would like to suggest that this template is expanded with an optional link= parameter so that the produced image can be configured to link to a relevant article when clicked on, just like with the regular flagicon template. T v x1 18:02, 3 February 2019 (UTC)
|link=
parameter (click the "diff" link at the bottom of the template documentation to see the new code). Now create a testcases page using {{
testcase table}} to demonstrate its usage. It may be easiest to copy an existing testcases page. If you get stuck, let me know. –
Jonesey95 (
talk)
14:56, 9 May 2020 (UTC)