Difference between revisions of "Template:Advert"

From Geohashing
imported>Relet
m
imported>Relet
m (fix float alignment)
Line 1: Line 1:
 
<!-- The first part of the ifeq is for the talk page, the second for the main page -->
 
<!-- The first part of the ifeq is for the talk page, the second for the main page -->
 
<div style="border:2px solid #8d8; background-color:#efe; padding:10px; color: green; margin-bottom: 5px;">
 
<div style="border:2px solid #8d8; background-color:#efe; padding:10px; color: green; margin-bottom: 5px;">
{{#ifeq: {{NAMESPACE}}:{{PAGENAME}}|{{TALKPAGENAME}}|
+
{{#if:{{{image|foo}}}|<div style="float:right">[[Image:{{{image}}}|100px]]}}</div>{{#ifeq: {{NAMESPACE}}:{{PAGENAME}}|{{TALKPAGENAME}}|
 
'''Have you seen our geohashing marker?'''
 
'''Have you seen our geohashing marker?'''
  
Line 12: Line 12:
 
'''Have you seen our geohashing marker?''' We'd love to hear from you! <span class="plainlinks" style="font-weight:bold;">[http://wiki.xkcd.com/wgh/index.php?title=Talk:{{PAGENAMEE}}&action=edit&section=new Click here]</span> to say "hi" and tell us what you've seen!
 
'''Have you seen our geohashing marker?''' We'd love to hear from you! <span class="plainlinks" style="font-weight:bold;">[http://wiki.xkcd.com/wgh/index.php?title=Talk:{{PAGENAMEE}}&action=edit&section=new Click here]</span> to say "hi" and tell us what you've seen!
 
}}
 
}}
{{#if:{{{image|}}}|[[Image:{{{image}}}|100px|right]]}}</div><noinclude>
+
</div><noinclude>
  
 
----
 
----

Revision as of 13:05, 18 October 2009

[[Image:{{{image}}}|100px]]
Have you seen our geohashing marker? We'd love to hear from you! Click here to say "hi" and tell us what you've seen!

Purpose

If you left a marker at a hashpoint linking to your expedition page, you can place this template at the top of the page encouraging people to drop a note on the talk page. Also put this same template on the expedition talk page - it automatically detects it's on a talk page and uses slightly different text/instructions.

How to use this template:

{{Advert}}

Template parameters:

image = an image file of a qr code, or the marker itself (without the "Image:" part)