Massive Chalice Wiki
SBEyes (talk | contribs)
SBEyes (talk | contribs)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly><div class="fplink plainlinks {{#if:{{{image|}}}|image|}}"><div class="box"><div class="row"><div class="cell">{{#if:{{{image|}}}
+
<onlyinclude><includeonly><div class="fplink plainlinks {{#if:{{{image|}}}|image|}} {{#switch:{{lc:{{{size|}}} }}|wide={{lc:{{{size|}}} }} }}"><div class="box"><div class="row"><div class="cell">{{#if:{{{image|}}}
 
|<div class="image">{{#if:{{{url|}}}
 
|<div class="image">{{#if:{{{url|}}}
 
|
 
|
|{{#ifexist:{{{image|}}}|[[File:{{{image|}}}|link={{{1|}}}]]|[[File:{{{image|}}}|link={{{1|}}}|Please upload 200x200 image]]}}
+
|{{#ifexist:File:{{{image|}}}|[[File:{{{image|}}}|link={{{1|}}}]]|<span class="nomobile">[[File:{{{image|}}}|Please upload 150x150 image]]</span>}}
 
}}</div>
 
}}</div>
|}}{{#if:{{{url|}}}
+
|}}<div class="link">{{#if:{{{url|}}}
 
|{{#if:{{{1|}}}|[{{{url}}} {{{1}}}]|[{{{url}}}]}}
 
|{{#if:{{{1|}}}|[{{{url}}} {{{1}}}]|[{{{url}}}]}}
 
|{{#if:{{{1|}}}|{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]|}}}}
 
|{{#if:{{{1|}}}|{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]|}}}}
}}</div></div></div></div></includeonly></onlyinclude>{{doc}}
+
}}</div></div></div></div></div></includeonly></onlyinclude>{{doc}}
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]

Latest revision as of 23:57, 13 February 2015

Template-info.png Documentation

This template is for creating the styled links used within boxes on the front page: Massive Chalice Wiki. It relies heavily on CSS in MediaWiki:Hydradark.css and MediaWiki:Mobile.css.

Basic links

For the most basic links, the usage is as follows for a standard wiki link:

{{FP link|page name}}
{{FP link|page name|link text}}

For external links, the usage is:

{{FP link|url=http://www.example.com}}
{{FP link|url=http://www.example.com|link text}}