Template:Test: Difference between revisions

From WikiMSK

No edit summary
No edit summary
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<html>
{{infobox begin|class=contributors}}
<style>
{{infobox section
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,400;0,700;1,400&display=swap');
|Primary authors
.hero{
|{{#if: {{{Authors|}}}
background-image: url("https://wikimsk.org/w/img_auth.php/e/ea/Reading_manikin.jpg");
  |{{#arraymap:{{{Authors|}}}
height: 350px;
    |,
background-position: center;
    |xyz
background-repeat: no-repeat;
    |{{#set:Authors=User:xyz}}[[User:xyz|{{#ask: [[User:xyz]] |?Has user name=|mainlabel=-|default=xyz|limit=1|searchlabel=}}]]
background-size: cover;
    |,&thinsp;
position: relative;
  }}
display: flex;
}}
justify-content: center; /* align horizontal */
}}
align-items: center; /* align vertical */
{{infobox section
}
|Additional contributors
.hero-text{
|{{#if: {{{Additional contributors|}}}
font-family:"Josefin Sans"
  |{{#arraymap:{{{Additional contributors|}}}
margin:2em;
    |,
padding:2em;
    |xyz
line-height:1rem;
    |{{#set:Additional contributor=User:xyz}}[[User:xyz|{{#ask: [[User:xyz]] |?Has user name=|mainlabel=-|default=xyz|limit=1|searchlabel=}}]]
color:white;
    |,&thinsp;
display:flex;
  }}
flex-direction:column;
}}
align-items:center;
}}
justify-content:center;
{{infobox section
}
|Peer reviewer
 
|{{#if: {{{Peer reviewer|}}}
.hero-title{
  |{{#arraymap:{{{Peer reviewer|}}}
font-size:80px;
    |,
margin-bottom:3rem;
    |xyz
font-weight:900;
    |{{#set:Peer reviewer=User:xyz}}[[User:xyz|{{#ask: [[User:xyz]] |?Has user name=|mainlabel=-|default=xyz|limit=1|searchlabel=}}]]
line-height:1.1em;
    |,&thinsp; 
text-align: center;
  }}
text-decoration: underline;
}}
text-decoration-color: #3498db;
}}
text-shadow: 2px 2px DimGray;
{{infobox end}}</includeonly>
}
.hero-caption{
font-size:30px;
text-align: center;
text-shadow: 2px 2px DimGray;
line-height:1.1em;
}
 
@media only screen and (max-width: 900px) {
.hero-caption{
font-size:20px;
}
.hero-title{
font-size:60px;
}
}
</style>
</html>
<div class="hero">
<div class="hero-text">
<div class="hero-title">WELCOME TO <span style="color:#3498db">WIKIMSK</span></div>
<div class="hero-caption">''The New Zealand Musculoskeletal Medicine Wiki''</div>
{{{test|}}}
</div>
</div>

Latest revision as of 19:14, 23 May 2022

WELCOME TO WIKIMSK
The New Zealand Musculoskeletal Medicine Wiki