Difference between revisions of "Template:Portal geo"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <includeonly>[[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><!-- | + | <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>]] | -->{{#if: {{{badge|}}}|<span class="portal-geo-badge"><span>{{{badge|}}}</span></span>}}</span>]] | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Line 11: | Line 11: | ||
|badge= # Short text | |badge= # Short text | ||
|image= # Image name | |image= # Image name | ||
+ | |link= # Page name to link. Defaults to title, and if no title provided, falls back to Main Page | ||
}} | }} | ||
</pre> | </pre> |
Revision as of 13:39, 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 |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
</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