We continue to develop resources related to the COVID-19 pandemic. See COVID-19 initiatives on Appropedia for more information.

Difference between revisions of "Welcome to Appropedia/Selected project/Layout"

From Appropedia
Jump to navigation Jump to search
(Made the code similar to Welcome_to_Appropedia/Selected_page/Layout)
Tags: Mobile edit, Mobile web edit
Line 3: Line 3:
 
   </div> -->
 
   </div> -->
  
{{#if:{{{image}}}|<div class="selected-image" style="width:100%; text-align:center;" border:{{{border|0}}}px solid #c1e8c1; margin: 1rem 0;">[[Image:{{{image}}}|{{#if:{{{size}}}|{{{size|300px}}}|300px}}|{{{caption}}}]]</div>}}<div class="text">{{{text}}} [[{{{link}}}|Read more]] or [[Book:Highlighted Appropedia projects|'''check our book''']]</div>
+
{{#if:{{{image}}}|<div class="selected-image" style="width:100%; text-align:center;" border:{{{border|0}}}px solid #c1e8c1; margin: 1rem 0;">[[Image:{{{image}}}|{{#if:{{{size}}}|{{{size|300px}}}|300px}}|{{{caption}}}]]</div>}}<div class="text">Credit: {{{credit}}} [[{{{link}}}|Read more]] or [[Book:Highlighted Appropedia projects|'''check our book''']]</div>
 
 
 
<noinclude>
 
<noinclude>
  

Revision as of 18:29, 31 March 2020


[[Image:{{{image}}}|300px|{{{caption}}}]]
Credit: {{{credit}}} [[{{{link}}}|Read more]] or check our book


Layout template

{{:Welcome to Appropedia/Selected project/Layout
|image  = 
|size   = 
|caption= 
|link   = 
|archive={{{archive|:Welcome to Appropedia/Selected project}}}
}}

{{:Welcome to Appropedia/Selected project/Layout
|image  = <image to be linked>
|size   = <size of the image, optional> default=250
|caption= <caption of the image>
|link   = <page the image must link to>
|archive={{{archive|:Welcome to Appropedia/Selected project}}} <allows linking from different archive pages, see below>
}}

example of archive parameter usage
{{:Welcome to Appropedia/Selected project/1|archive=Portal:Solar/Selected project}}