<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://nationalatlas.ign.es/index.php?action=history&amp;feed=atom&amp;title=Template%3AImage_label_marker</id>
	<title>Template:Image label marker - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://nationalatlas.ign.es/index.php?action=history&amp;feed=atom&amp;title=Template%3AImage_label_marker"/>
	<link rel="alternate" type="text/html" href="http://nationalatlas.ign.es/index.php?title=Template:Image_label_marker&amp;action=history"/>
	<updated>2026-04-03T23:53:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://nationalatlas.ign.es/index.php?title=Template:Image_label_marker&amp;diff=2812&amp;oldid=prev</id>
		<title>Ane: 1 revisión importada</title>
		<link rel="alternate" type="text/html" href="http://nationalatlas.ign.es/index.php?title=Template:Image_label_marker&amp;diff=2812&amp;oldid=prev"/>
		<updated>2018-11-16T07:58:38Z</updated>

		<summary type="html">&lt;p&gt;1 revisión importada&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;!-- _ __ ___ ____ _____ ____ ___ __ _ __ ___ ____ _____ ____ ___ __ _&lt;br /&gt;
  Checks to see if the image part should be shown or not.&lt;br /&gt;
  Checks for:&lt;br /&gt;
&lt;br /&gt;
    if( marker_size &amp;gt; 0 ) {&lt;br /&gt;
        if( defined show_image || defined showimage ) {&lt;br /&gt;
            if( show_image = yes || showimage = yes ) {&lt;br /&gt;
                &amp;lt;show the image&amp;gt;&lt;br /&gt;
            } else {&lt;br /&gt;
                &amp;lt;don't show the image&amp;gt;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        else {&lt;br /&gt;
            &amp;lt;nothing overrides the 'marker_size &amp;gt; 0', so show the image&amp;gt;&lt;br /&gt;
        }&lt;br /&gt;
    } else {&lt;br /&gt;
        &amp;lt;'marker_size &amp;lt;= 0', so don't show the image&amp;gt;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
  Looking for an easier solution...&lt;br /&gt;
&lt;br /&gt;
  Either way, if you don't want the image part you should maybe&lt;br /&gt;
  consider using another template?&lt;br /&gt;
--&amp;gt;{{#ifexpr:&lt;br /&gt;
  {{#ifexpr: {{{marker_size |{{{marker-size |7 }}} }}} &amp;gt; 0&lt;br /&gt;
  |&amp;lt;!--  Maybe show the image since 'marker_size &amp;gt; 0'.  Check if 'show_image' or 'showimage' has a value.  --&amp;gt;&lt;br /&gt;
    {{#if: {{{show_image |{{{showimage |{{{show-image | }}} }}} }}}&lt;br /&gt;
    |&amp;lt;!--  Either 'show_image' or 'showimage' has a value.  Check what it is.  --&amp;gt;&lt;br /&gt;
      {{#ifeq: {{lc: {{{show_image |{{{showimage |{{{show-image | }}} }}} }}} }} |yes&lt;br /&gt;
      |  1  &amp;lt;!--  value is yes = show the image.  --&amp;gt;&lt;br /&gt;
      | -1  &amp;lt;!--  value is anything else = don't show the image.  --&amp;gt;&lt;br /&gt;
      }}&lt;br /&gt;
    | 1  &amp;lt;!--  Neither 'show_image' nor 'showimage' has a value.  Show the image since 'marker_size &amp;gt; 0'.  --&amp;gt;&lt;br /&gt;
    }}&lt;br /&gt;
  | -1  &amp;lt;!--  'marker_size &amp;lt;= 0'.  Don't show the image  --&amp;gt;&lt;br /&gt;
  }}&lt;br /&gt;
&amp;gt; 0&lt;br /&gt;
|&amp;lt;!-- _ __ ___ ____ _____ ____ ___ __ _ __ ___ ____ _____ ____ ___ __ _&lt;br /&gt;
&lt;br /&gt;
  Image is going to be shown, calculating position.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&amp;lt;div&lt;br /&gt;
style=&amp;quot;position:absolute; float:left;&lt;br /&gt;
&amp;lt;!--  x_relative = x_marker_orig / x_orig * x_scaled - marker_size / 2 + x_adjust  --&amp;gt;&lt;br /&gt;
left:{{#expr:&lt;br /&gt;
      {{{x |{{{x_marker_orig |{{{x-marker-orig |1 }}} }}} }}}&lt;br /&gt;
    / {{{x_orig |{{{width_orig |{{{x-orig |{{{width-orig |1 }}} }}} }}} }}}&lt;br /&gt;
    * {{{scale |{{{width |{{{x_scaled |{{{x-scaled |250 }}} }}} }}} }}}&lt;br /&gt;
  -   {{{marker_size |{{{marker-size |7 }}} }}}&lt;br /&gt;
    / 2&lt;br /&gt;
  +   {{{x_adjust |{{{x-adjust |0 }}} }}}&lt;br /&gt;
}}px;&lt;br /&gt;
&amp;lt;!--  y_relative = y_marker_orig / y_orig * y_scaled - marker_size / 2 + y_adjust&lt;br /&gt;
        where&lt;br /&gt;
      y_scaled = x_scaled / x_orig * y_orig  --&amp;gt;&lt;br /&gt;
top:{{#expr:&lt;br /&gt;
      {{{y |{{{y_marker_orig |{{{y-marker-orig |1 }}} }}} }}}&lt;br /&gt;
    / {{{y_orig |{{{height_orig |{{{y-orig |{{{height-orig |1 }}} }}} }}} }}}&lt;br /&gt;
    * {{{height |{{{y_scaled |{{{y-scaled |&lt;br /&gt;
        {{{scale |{{{width |{{{x_scaled |{{{x-scaled |250 }}} }}} }}} }}}&lt;br /&gt;
      / {{{x_orig |{{{width_orig |{{{x-orig |{{{width-orig |1 }}} }}} }}} }}}&lt;br /&gt;
      * {{{y_orig |{{{height_orig |{{{y-orig |{{{height-orig |1 }}} }}} }}} }}}&lt;br /&gt;
      }}} }}} }}}&lt;br /&gt;
  -   {{{marker_size |{{{marker-size |7 }}} }}}&lt;br /&gt;
    / 2&lt;br /&gt;
  +   {{{y_adjust |{{{y-adjust |0 }}} }}}&lt;br /&gt;
}}px;&lt;br /&gt;
&amp;quot;&amp;gt;[[Image:{{{image|Red pog.svg}}}|{{{marker_size |{{{marker-size |7 }}} }}}px]]&amp;lt;/div&amp;gt;&lt;br /&gt;
|&amp;lt;!-- _ __ ___ ____ _____ ____ ___ __ _ __ ___ ____ _____ ____ ___ __ _&lt;br /&gt;
  Don't want to show an image.  Do nothing, but marker size should be set to 0.&lt;br /&gt;
--&amp;gt;}}&amp;lt;!--&lt;br /&gt;
  End of show image test.&lt;br /&gt;
  Start of show text test.&lt;br /&gt;
--&amp;gt;{{#if: {{{text|}}}&lt;br /&gt;
|&amp;lt;!-- _ __ ___ ____ _____ ____ ___ __ _ __ ___ ____ _____ ____ ___ __ _&lt;br /&gt;
&lt;br /&gt;
  Text is going to be shown, calculating position.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&amp;lt;div style=&amp;quot;position:absolute; float:left;&lt;br /&gt;
&amp;lt;!--  x_relative = x_marker_orig / x_orig * x_scaled + marker_size / 2 + x_adjust + x_textadjust  --&amp;gt;&lt;br /&gt;
left:{{#expr: &lt;br /&gt;
      {{{x |{{{x_marker_orig |{{{x-marker-orig |1 }}} }}} }}}&lt;br /&gt;
    / {{{x_orig |{{{width_orig |{{{x-orig |{{{width-orig |1 }}} }}} }}} }}}&lt;br /&gt;
    * {{{scale |{{{width |{{{x_scaled |{{{x-scaled |250 }}} }}} }}} }}}&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!--  Was the image shown or not?  Copy and paste from &amp;quot;code&amp;quot; further up. --&amp;gt;&lt;br /&gt;
  {{#ifexpr:&lt;br /&gt;
    {{#ifexpr: {{{marker_size |{{{marker-size |7 }}} }}} &amp;gt; 0&lt;br /&gt;
    |&amp;lt;!--  Maybe show the image since 'marker_size &amp;gt; 0'.  Check if 'show_image' or 'showimage' has a value.  --&amp;gt;&lt;br /&gt;
      {{#if: {{{show_image |{{{showimage |{{{show-image | }}} }}} }}}&lt;br /&gt;
      |&amp;lt;!--  Either 'show_image' or 'showimage' has a value.  Check what it is.  --&amp;gt;&lt;br /&gt;
        {{#ifeq: {{lc: {{{show_image |{{{showimage |{{{show-image | }}} }}} }}} }} |yes&lt;br /&gt;
        |  1  &amp;lt;!--  value is yes = show the image.  --&amp;gt;&lt;br /&gt;
        | -1  &amp;lt;!--  value is anything else = don't show the image.  --&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
      | 1  &amp;lt;!--  Neither 'show_image' nor 'showimage' has a value.  Show the image since 'marker_size &amp;gt; 0'.  --&amp;gt;&lt;br /&gt;
      }}&lt;br /&gt;
    | -1  &amp;lt;!--  'marker_size &amp;lt;= 0'.  Don't show the image  --&amp;gt;&lt;br /&gt;
    }}&lt;br /&gt;
  &amp;gt; 0&lt;br /&gt;
  | +   {{{marker_size |{{{marker-size |7 }}} }}}&lt;br /&gt;
      / 2&lt;br /&gt;
    +   {{{x_textadjust |{{{x-textadjust |3 }}} }}}&lt;br /&gt;
  | +   0&lt;br /&gt;
    +   {{{x_textadjust |{{{x-textadjust |0 }}} }}}&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
  +   {{{x_adjust |{{{x-adjust |0 }}} }}}&lt;br /&gt;
}}px;&lt;br /&gt;
&amp;lt;!--  y_relative = y_marker_orig / y_orig * y_scaled - marker_size / 2 + y_adjust + y_textadjust&lt;br /&gt;
        where&lt;br /&gt;
      y_scaled = x_scaled / x_orig * y_orig  --&amp;gt;&lt;br /&gt;
top:{{#expr:&lt;br /&gt;
      {{{y |{{{y_marker_orig |{{{y-marker-orig |1 }}} }}} }}}&lt;br /&gt;
    / {{{y_orig |{{{height_orig |{{{y-orig |{{{height-orig |1 }}} }}} }}} }}}&lt;br /&gt;
    * {{{height |{{{y_scaled |{{{y-scaled |&lt;br /&gt;
        {{{scale |{{{width |{{{x_scaled |{{{x-scaled |250 }}} }}} }}} }}}&lt;br /&gt;
      / {{{x_orig |{{{width_orig |{{{x-orig |{{{width-orig |1 }}} }}} }}} }}}&lt;br /&gt;
      * {{{y_orig |{{{height_orig |{{{y-orig |{{{height-orig |1 }}} }}} }}} }}}&lt;br /&gt;
      }}} }}} }}}&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;!--  Was the image shown or not?  Copy and paste from &amp;quot;code&amp;quot; further up. --&amp;gt;&lt;br /&gt;
  {{#ifexpr:&lt;br /&gt;
    {{#ifexpr: {{{marker_size |{{{marker-size |7 }}} }}} &amp;gt; 0&lt;br /&gt;
    |&amp;lt;!--  Maybe show the image since 'marker_size &amp;gt; 0'.  Check if 'show_image' or 'showimage' has a value.  --&amp;gt;&lt;br /&gt;
      {{#if: {{{show_image |{{{showimage |{{{show-image | }}} }}} }}}&lt;br /&gt;
      |&amp;lt;!--  Either 'show_image' or 'showimage' has a value.  Check what it is.  --&amp;gt;&lt;br /&gt;
        {{#ifeq: {{lc: {{{show_image |{{{showimage |{{{show-image | }}} }}} }}} }} |yes&lt;br /&gt;
        |  1  &amp;lt;!--  value is yes = show the image.  --&amp;gt;&lt;br /&gt;
        | -1  &amp;lt;!--  value is anything else = don't show the image.  --&amp;gt;&lt;br /&gt;
        }}&lt;br /&gt;
      | 1  &amp;lt;!--  Neither 'show_image' nor 'showimage' has a value.  Show the image since 'marker_size &amp;gt; 0'.  --&amp;gt;&lt;br /&gt;
      }}&lt;br /&gt;
    | -1  &amp;lt;!--  'marker_size &amp;lt;= 0'.  Don't show the image  --&amp;gt;&lt;br /&gt;
    }}&lt;br /&gt;
  &amp;gt; 0&lt;br /&gt;
  | -   {{{marker_size |{{{marker-size |7 }}} }}}&lt;br /&gt;
      / 2&lt;br /&gt;
  | +   0&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
  +   {{{y_adjust |{{{y-adjust |0 }}} }}}&lt;br /&gt;
  +   {{{y_textadjust |{{{y-textadjust |0 }}} }}}&lt;br /&gt;
}}px;&lt;br /&gt;
&amp;lt;!--  The rest of the css-options.&lt;br /&gt;
      Clumsy way to do it because of unwanted extra spaces and broken CSS otherwise.  --&amp;gt;&lt;br /&gt;
  color:{{#if: {{{text_color |{{{text-color |{{{color | }}} }}} }}}&lt;br /&gt;
    | {{#if: {{{text_color|}}} |{{{text_color}}}&lt;br /&gt;
      |{{#if: {{{text-color|}}} |{{{text-color}}}&lt;br /&gt;
        |{{#if: {{{color|}}} |{{{color}}}&lt;br /&gt;
      }} }} }}&lt;br /&gt;
    |black }};&lt;br /&gt;
  text-align:{{#if: {{{text_align |{{{text-align | }}} }}}&lt;br /&gt;
    | {{#if: {{{text_align|}}} |{{{text_align}}}&lt;br /&gt;
      |{{#if: {{{text-align|}}} |{{{text-align}}}&lt;br /&gt;
      }} }}&lt;br /&gt;
    |left }};&lt;br /&gt;
  {{#if: {{{text_width |{{{text-width | }}} }}}&lt;br /&gt;
    |width:{{#if: {{{text_width|}}} |{{{text_width}}}&lt;br /&gt;
      |{{#if: {{{text-width|}}} |{{{text-width}}}&lt;br /&gt;
      }}&lt;br /&gt;
    }}; }}&lt;br /&gt;
  {{#if: {{{font_size |{{{font-size | }}} }}}&lt;br /&gt;
    |font-size:{{#if: {{{font_size|}}} |{{{font_size}}}&lt;br /&gt;
      |{{#if: {{{font-size|}}} |{{{font-size}}}&lt;br /&gt;
      }}&lt;br /&gt;
    }}; }}&lt;br /&gt;
  {{#if: {{{style | }}}&lt;br /&gt;
    |{{{style}}}&lt;br /&gt;
    }}&lt;br /&gt;
&amp;quot;&amp;gt;{{{text|}}}&amp;lt;/div&amp;gt;&lt;br /&gt;
|&amp;lt;!-- _ __ ___ ____ _____ ____ ___ __ _ __ ___ ____ _____ ____ ___ __ _&lt;br /&gt;
  No text entered.  Do nothing.&lt;br /&gt;
--&amp;gt;}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
  _ __ ___ ____ _____ ____ ___ __ _ __ ___ ____ _____ ____ ___ __ _&lt;br /&gt;
  Text to be shown when the template is viewed directly as a page.&lt;br /&gt;
  _ __ ___ ____ _____ ____ ___ __ _ __ ___ ____ _____ ____ ___ __ _&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{{Documentation|Template:Image label marker/doc}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ane</name></author>
		
	</entry>
</feed>