Template:Place chip: Difference between revisions
IssuePress (talk | contribs) (Created page with "<includeonly>[[{{{1}}}| <div class="place-chip chip" style="display: inline-flex; align-items:center; gap: .5rem; margin-bottom:.5rem; background-color: #fff7f7; border-color: #FFF0EF;"><span style="color: #FF665E; font-size: 1rem; line-height: 1; margin-right:.5rem; text-decoration: none !important;">{{#fas:map-marker-alt}}</span> {{{1}}} {{Flag emoji|{{#show:{{{1}}}|?In country#}}}}</div>]]</includeonly> <noinclude><!-- -->{{Place chip|Issue Press}}<!-- --></noinclude>") |
IssuePress (talk | contribs) No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[{{{1}}}| | <includeonly><span class="place-chip chip">[[{{{1}}}|{{{1}}} {{#if:{{#show:{{{1}}}|?In country#}}|{{Flag emoji|{{#show:{{{1}}}|?In country#}}}}}}]]</span></includeonly><noinclude> | ||
< | |||
This template displays links to [[Places | place pages]] as visually styled [https://m3.material.io/components/chips/overview 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: | |||
<pre>{{Place chip|Issue Press}}</pre><div>{{Place chip|Issue Press}}</div> | |||
Place chips can be included inline within a paragraph using <code><nowiki>{{Place chip|Issue Press}}</nowiki></code> to produce a {{Place chip|Issue Press}} chip. When used this way, they appear smaller to maintain the article's visual flow. | |||
</noinclude> |
Latest revision as of 04:31, 19 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.