v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Dual image"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Created page with "<includeonly> <div class="mw-collapsible" id="mw-customcollapsible-classicimage"> {{{premium}}}|{{{width|200px}}}|thumb|<span class="mw-customtoggle-classicimage mw-ui-bu...")
 
(layout change. It should look just like regular thumb image)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><!--
  
<div class="mw-collapsible" id="mw-customcollapsible-classicimage">
+
--><div class="thumb tright"><!--
   [[{{{premium}}}|{{{width|200px}}}|thumb|<span class="mw-customtoggle-classicimage mw-ui-button mw-ui-progressive">Toggle</span><br>{{{caption|}}}]]
+
   --><div class="thumbinner" style="width:{{{width|202px}}};><!--
</div>
 
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-classicimage">
 
  [[{{{classic}}}|{{{width|200px}}}|thumb|<span class="mw-customtoggle-classicimage mw-ui-button mw-ui-progressive">Toggle</span><br>{{{caption|}}}]]
 
</div>
 
  
</includeonly>
+
    --><div class="mw-collapsible" id="mw-customcollapsible-classicimage"><!--
 +
      -->[[{{{1|{{{premium}}}}}}|{{{width|200px}}}]]<!--
 +
    --></div><!--
 +
 
 +
    --><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-classicimage"><!--
 +
      -->[[{{{2|{{{classic}}}}}}|{{{width|200px}}}]]<!--
 +
    --></div><!--
 +
 
 +
    --><div class="thumbcaption"><span class="mw-customtoggle-classicimage mw-ui-button mw-ui-progressive" <!--
 +
                                  -->style="float:right; padding:0px; user-select: none;">Toggle</span>{{{caption|}}}</div><!--
 +
--></div></div></includeonly><noinclude>
  
<noinclude>
 
 
Template for creating an image with a premium and classic version.
 
Template for creating an image with a premium and classic version.
  
{{Dual image|
+
{{Dual image
premium=File:DFwiki5by53by3farm.png|
+
|premium=File:DFwiki5by53by3farm.png
classic=File:Quickstart_layout_3.png|
+
|classic=File:Quickstart_layout_3.png
width=100px|
+
|width=100px
caption=Caption
+
|caption=Caption
 
}}
 
}}
  
 
==Usage==
 
==Usage==
  
<nowiki>
+
<pre>
{{Dual image|
+
{{Dual image
premium=File:premium.png|
+
|premium=File:premium.png
classic=File:classic.png|
+
|classic=File:classic.png
 
}}
 
}}
  
{{Dual image|
+
{{Dual image
premium=File:premium.png|
+
|premium=File:premium.png
classic=File:classic.png|
+
|classic=File:classic.png
caption=My caption|
+
|caption=My caption
width=100px
+
|width=100px
 
}}
 
}}
 +
</pre>
  
</nowiki>
+
[[category:templates]]</noinclude>
 
 
</noinclude>
 

Latest revision as of 21:42, 2 January 2023


Template for creating an image with a premium and classic version.

DFwiki5by53by3farm.png
Quickstart layout 3.png
ToggleCaption

Usage[edit]

{{Dual image
|premium=File:premium.png
|classic=File:classic.png
}}

{{Dual image
|premium=File:premium.png
|classic=File:classic.png
|caption=My caption
|width=100px
}}