Template:Place chip: Difference between revisions
IssuePress (talk | contribs) No edit summary |
IssuePress (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span class="place-chip chip"> {{#if:{{{ | <includeonly><span class="place-chip chip">{{#if:{{{hide-icon|}}}||<span style="color: #FF665E; margin-right:.5rem; text-decoration: none !important;">{{#fas:map-marker-alt}}</span>}}[[{{{1}}}|{{{1}}} {{#if:{{#show:{{{1}}}|?In country#}}|{{Flag emoji|{{#show:{{{1}}}|?In country#}}}}}}]]</span></includeonly><noinclude> | ||
Line 13: | Line 13: | ||
===Advanced attributes=== | ===Advanced attributes=== | ||
In some cases, you may want to display the chip | In some cases, you may want to display the chip without a proceeding map point icon. To show the chip without the icon, simply add the argument <code>|hide-icon=true</code>. | ||
<pre>{{Place chip|Issue Press| | <pre>{{Place chip|Issue Press|hide-icon=true}}</pre> | ||
<div>{{Place chip|Issue Press| | <div>{{Place chip|Issue Press|hide-icon=true}}</div> | ||
</noinclude> | </noinclude> |
Revision as of 14:18, 18 December 2024
This template displays links to place pages as visually styled chips. It displays the place name and it's country flag if country is supplied.
Usage
To display a place chip, use the following syntax:
{{Place chip|Issue Press}}
Place chips can be included inline within a paragraph using {{Place chip|Issue Press}}
to produce a Issue Press 🇺🇸 chip. When used this way, they appear smaller to maintain the article's visual flow.
Advanced attributes
In some cases, you may want to display the chip without a proceeding map point icon. To show the chip without the icon, simply add the argument |hide-icon=true
.
{{Place chip|Issue Press|hide-icon=true}}