Difference between revisions of "Template:Portal geo"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <includeonly><div class="portal-geo bg-{{#replace:{{lc:{{{title|Title}}}}}| |-}}">{{#widget:geo bg|title=bg-{{#replace:{{lc:{{{title|}}}}}| |-}}|bgimage={{filepath:{{{image|Wooster map geo.png}}}}}}} | + | <includeonly><includeonly><div class="portal-geo bg-{{#replace:{{lc:{{{title|Title}}}}}| |-}}">{{#widget:geo bg|title=bg-{{#replace:{{lc:{{{title|}}}}}| |-}}|bgimage={{filepath:{{{image|Wooster map geo.png}}}}}}} |
<div class="portal-geo-label" style="{{#if:{{{badge|}}}||height:30%}}">{{{title|Title}}}</div><!-- | <div class="portal-geo-label" style="{{#if:{{{badge|}}}||height:30%}}">{{{title|Title}}}</div><!-- | ||
-->{{#if: {{{badge|}}}|<div class="portal-geo-badge"><span>{{{badge|}}}</span></div>}} | -->{{#if: {{{badge|}}}|<div class="portal-geo-badge"><span>{{{badge|}}}</span></div>}} | ||
</div> | </div> | ||
+ | </includeonly><noinclude> | ||
+ | ;Description | ||
+ | Creates a location thumb. Intended to be used inside <code>.portal-content</code> container. Use square shaped images for the best results. | ||
+ | |||
+ | ;Usage | ||
+ | <pre> | ||
+ | {{Portal geo | ||
+ | |title= # Short text | ||
+ | |badge= # Short text | ||
+ | |image= # Image name | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ;Example | ||
+ | <pre> | ||
+ | <div class="portal-content"> | ||
+ | {{Portal geo | ||
+ | |title=Wooster | ||
+ | |badge=26.1 | ||
+ | |image=Wooster map geo.png | ||
+ | }} | ||
+ | {{Portal geo | ||
+ | |title=Wooster | ||
+ | |badge=26.1 | ||
+ | |image=Wooster map geo.png | ||
+ | }} | ||
+ | {{Portal geo | ||
+ | |title=Wooster | ||
+ | |badge=26.1 | ||
+ | |image=Wooster map geo.png | ||
+ | }} | ||
+ | </div> | ||
+ | </pre> | ||
+ | |||
+ | ;Result | ||
+ | <div class="portal-content"> | ||
+ | {{Portal geo | ||
+ | |title=Wooster | ||
+ | |badge=26.1 | ||
+ | |image=Wooster map geo.png | ||
+ | }} | ||
+ | {{Portal geo | ||
+ | |title=Wooster | ||
+ | |badge=26.1 | ||
+ | |image=Wooster map geo.png | ||
+ | }} | ||
+ | {{Portal geo | ||
+ | |title=Wooster | ||
+ | |badge=26.1 | ||
+ | |image=Wooster map geo.png | ||
+ | }} | ||
+ | </div> | ||
+ | </noinclude> | ||
+ | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
;Description | ;Description |
Revision as of 13:31, 21 February 2022
- Description
Creates a location thumb. Intended to be used inside .portal-content
container. Use square shaped images for the best results.
- Usage
{{Portal geo |title= # Short text |badge= # Short text |image= # Image name }}
- Example
<div class="portal-content"> {{Portal geo |title=Wooster |badge=26.1 |image=Wooster map geo.png }} {{Portal geo |title=Wooster |badge=26.1 |image=Wooster map geo.png }} {{Portal geo |title=Wooster |badge=26.1 |image=Wooster map geo.png }} </div>
- Result
Wooster
26.1
Wooster
26.1
Wooster
26.1
</includeonly>
- Description
Creates a location thumb. Intended to be used inside .portal-content
container. Use square shaped images for the best results.
- Usage
{{Portal geo |title= # Short text |badge= # Short text |image= # Image name }}
- Example
<div class="portal-content"> {{Portal geo |title=Wooster |badge=26.1 |image=Wooster map geo.png }} {{Portal geo |title=Wooster |badge=26.1 |image=Wooster map geo.png }} {{Portal geo |title=Wooster |badge=26.1 |image=Wooster map geo.png }} </div>
- Result
Wooster
26.1
Wooster
26.1
Wooster
26.1