Difference between revisions of "Template:MainPagePic"

From Wikispooks
Jump to navigation Jump to search
(create page)
 
m (Text replacement - "WikiSpooks" to "Wikispooks")
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>This template defines and is included in the picture box section of the main page
+
<noinclude>'''This template makes a picture panel for the main page.'''[[Category:Wikispooks Templates]]<br/>
<poem>
+
<br/>
{{MainPagePic
+
Usage:<br/>
|pic_header = Test Picture
+
<nowiki>{{</nowiki>{{PAGENAME}}<br/>
|pic_name = Ukrainemap.jpg
+
|title= section title<br/>
|pic_description = Test description
+
|file= FileName.ext<br/>
}}</poem>
+
|text= description (Optional)<br/>
</noinclude><includeonly><div style="border-bottom:1px solid #9a9a9a; background-color:#f6f6f6; padding:0.5em 0.5em; font-size:115%; text-align:center;">'''{{{pic_header}}}'''</div>
+
<nowiki>}}</nowiki>
<div style="padding:0.5em 0.5em 0.5em 0.5em;font-size:100%;">
+
</noinclude><includeonly>
[[File:{{{pic_name}}}|360px]]<br/>
+
<div style="border-bottom:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;">'''{{{title|}}}'''</div>
{{{pic_description}}}
+
<div style="padding:0.5em;font-size:90%;text-align:center;">
</div>
+
[[File:{{{file}}}|400px]]<br/>
}}</includeonly>
+
{{{text|}}}<br/><small>[[Main Page/Picture archive|Picture archive]]</small></div></includeonly>

Latest revision as of 17:20, 14 October 2018

This template makes a picture panel for the main page.

Usage:
{{MainPagePic
|title= section title
|file= FileName.ext
|text= description (Optional)
}}