This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:PortalPlaces: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>Hardvice
m adjust
imported>AdminBot
m Removing Category:Templates from templates which already belong to other categories
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center><div align="center" style=" border-style:solid; border-width: 1px; border-color: grey; padding: 5px; margin: 5px; width: 175px ">
<center><div align="center" style=" border-style:solid; border-width: 1px; border-color: grey; padding: 5px; margin: 5px; width: 150px ">
<div style="position: relative; height: 136px; overflow: hidden;">
<div style="position: relative; height: 118px; overflow: hidden;">
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 136px; overflow: hidden; line-height: 136px; z-index: 3; link-hover: none">[[{{{link}}}|&nbsp;&nbsp;&nbsp;]]</div>
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: 130px; overflow: hidden; line-height: 118px; z-index: 3; link-hover: none">[[{{{link}}}|&nbsp;&nbsp;&nbsp;]]</div>
<div style="border-style:solid; border-width: 1px; border-color: grey; position: absolute; top: 0px; left: 0px; z-index: 2">[[Image:{{{image}}}|175px|{{{link}}}]]</div></div>
<div style="position: absolute; top: 0px; left: 0px; z-index: 2">[[Image:{{{image}}}|150px|{{{link}}}]]</div></div>
<div>[[{{{link}}}|{{#if: {{{linktext|}}} | {{{linktext}}} | {{{link}}} }}]]</div>
<div>[[{{{link}}}|{{#if: {{{linktext|}}} | {{{linktext}}} | {{{link}}} }}]]{{#if:{{{nonlinktext|}}} | {{{nonlinktext}}}}}</div>
<div>{{#if: {{{location|}}} | [[{{{location}}}]] | Unknown}}</div>
<div>{{#if: {{{location|}}} | {{#ifexist: {{{location}}} | [[{{{location}}}]] | {{{location}}} }} | Unknown Location}}</div>
</div></center><noinclude>
</div></center><noinclude>


==Usage==
==Usage==
For use on [[Portal:Places]]
For use on [[Portal:Places]]

<tt>Location</tt> will auto-link to existing location articles, but it will not create red links. If blank, it will show "Unknown Location".


<pre>
<pre>
Line 15: Line 17:
|link=<!-- Article title of place, e.g. Chennai University -->
|link=<!-- Article title of place, e.g. Chennai University -->
|linktext=<!-- (OPTIONAL) Override text for link, e.g. Univeristy of Chennai -->
|linktext=<!-- (OPTIONAL) Override text for link, e.g. Univeristy of Chennai -->
|location=<!-- (OPTIONAL) Article title for the place's location, e.g. Madras, India. Leave blank for "Unknown" -->
|location=<!-- (OPTIONAL) Place's location, e.g. Madras, India.-->
|nonlinktext=<!-- OPTIONAL Additional text outside link (used to even lengths)-->
}}
}}
</pre>
</pre>
Line 22: Line 25:
<pre>{{PortalPlaces|image=|link=|location=}}</pre>
<pre>{{PortalPlaces|image=|link=|location=}}</pre>



[[Category:Templates]]
[[Category:Portal Elements]]
[[Category:Portal Elements]]
[[Category: Portal Cells]]
</noinclude>
</noinclude>

Latest revision as of 22:45, 12 November 2007

[[{{{link}}}|   ]]
[[Image:{{{image}}}|150px|{{{link}}}]]
[[{{{link}}}|{{{link}}}]]
Unknown Location

Usage

For use on Portal:Places

Location will auto-link to existing location articles, but it will not create red links. If blank, it will show "Unknown Location".

{{PortalPlaces
|image=<!-- Filename of image, e.g. chennai_university.jpg -->
|link=<!-- Article title of place, e.g. Chennai University -->
|linktext=<!-- (OPTIONAL) Override text for link, e.g. Univeristy of Chennai -->
|location=<!-- (OPTIONAL) Place's location, e.g. Madras, India.-->
|nonlinktext=<!-- OPTIONAL Additional text outside link (used to even lengths)-->
}}

Inline (for copy and paste):

{{PortalPlaces|image=|link=|location=}}