Difference between revisions of "Template:Portal geo"
Jump to navigation
Jump to search
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <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"> | <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> | ||
− | <div class="portal- | + | </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> | </div> | ||
− | < | + | |
− | + | ;Description | |
− | < | + | Creates a location thumb. Intended to be used inside <code>.portal-content</code> container. Use square shaped images for the best results. |
− | < | + | |
− | <div class="portal- | + | ;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> | </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> | </div> | ||
− | + | </noinclude> |
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