Difference between revisions of "Template:MainPagePic"

From Wikispooks
Jump to navigation Jump to search
m (t)
m (Text replacement - "WikiSpooks" to "Wikispooks")
 
(5 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><includeonly>
+
<noinclude>'''This template makes a picture panel for the main page.'''[[Category:Wikispooks Templates]]<br/>
{{MainPagePic
+
<br/>
|pic_header = Test Picture
+
Usage:<br/>
|pic_name = Ukrainemap.jpg
+
<nowiki>{{</nowiki>{{PAGENAME}}<br/>
|pic_description = Test description
+
|title= section title<br/>
}}
+
|file= FileName.ext<br/>
<div style="border-bottom:1px solid #9a9a9a; border-top:1px solid #9a9a9a; background-color:#f6f6f6; padding:0.5em 0.5em; font-size:115%; text-align:center;">'''{{{pic_header|}}}'''</div>
+
|text= description (Optional)<br/>
<div style="padding:0.5em;font-size:100%;">
+
<nowiki>}}</nowiki>
[[File:{{{pic_name}}}|360px]]<br/>
+
</noinclude><includeonly>
{{{pic_description}}}
+
<div style="border-bottom:1px solid #9a9a9a; background-color:#d0e5f5; padding:0.5em 0.5em; font-size:112%;text-align:center;">'''{{{title|}}}'''</div>
</div>
+
<div style="padding:0.5em;font-size:90%;text-align:center;">
</includeonly>
+
[[File:{{{file}}}|400px]]<br/>
 +
{{{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)
}}