Difference between revisions of "Template:Portal geo"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>< | + | <includeonly>[[{{{link|{{{title|Main Page}}}}}}|<span class="portal-geo bg-{{#replace:{{lc:{{{title|Title}}}}}| |-}}">{{#widget:geo bg|title=bg-{{#replace:{{lc:{{{title|}}}}}| |-}}|bgimage={{filepath:{{{image|Wooster map geo.png}}}}}}}<span class="portal-geo-label" style="{{#if:{{{badge|}}}||height:30%}}">{{{title|Title}}}</span><!-- |
− | < | + | -->{{#if: {{{badge|}}}|<span class="portal-geo-badge"><span>{{{badge|}}}</span></span>}}</span>]] |
− | < | + | </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 | ||
+ | |link= # Page name to link. Defaults to title, and if no title provided, falls back to Main Page | ||
+ | }} | ||
+ | </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> | </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> | ||
+ | |||
;Description | ;Description | ||
Creates a location thumb. Intended to be used inside <code>.portal-content</code> container. Use square shaped images for the best results. | Creates a location thumb. Intended to be used inside <code>.portal-content</code> container. Use square shaped images for the best results. |
Latest revision as of 16:23, 1 March 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 |link= # Page name to link. Defaults to title, and if no title provided, falls back to Main Page }}
- 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
- 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