Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Intro to: Difference between revisions

Template page
Casiope (talk | contribs)
mNo edit summary
Casiope (talk | contribs)
mNo edit summary
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Intro to/styles.css" />
__NOEDITSECTION__
<!--------------------
{{TOC limit|2}}
| Header information |
<div style="display:flex; position:relative; box-sizing:border-box; flex-direction:row; flex-wrap:wrap; overflow:hidden; border:thin solid #A2A9B1; margin:1.6em 0; padding:0;">
--------------------->
<table style="border-collapse:collapse; width:100%;">
__NOEDITSECTION__ __NOTOC__
<tr style="padding:0;">
<!---- outer box ---->
<th style="padding:0;">{{intro to tabs|1|Map}}</th>
<div class="introto__main" >
<th style="padding:0;">{{intro to tabs|2|Day of the week}}</th>
 
<th style="padding:0;">{{intro to tabs|3|Location}}</th>
<!--------------------
<th style="padding:0;">{{intro to tabs|4|Time of day}}</th>
|        Tabs        |
<th style="padding:0;">{{intro to tabs|5|Money}}</th>
--------------------->
<th style="padding:0;">{{intro to tabs|6|Phone}}</th>
<!-- columns re-flow vertically on mobiles -->
<th style="padding:0;">{{intro to tabs|7|Inventory}}</th>
<div class="introto__columns-left">
<th style="padding:0;">{{intro to tabs|8|Options}}</th>
<!----- transluding the relevant /tabs and identifying which is "this" ----->
</tr>
{{{{FULLROOTPAGENAME}}/tabs|This={{#if:{{SUBPAGENAME}}|{{SUBPAGENAME}}|1}}}}
</table>
 
<div style="display:inline-block; flex:1 1 0; padding:1em; min-width:250px; vertical-align:top;">
<div class="introto__columns-left-button">
{{{1|Lorem ipsum}}}</div>
{{Clickable button 2
{{clear}}
|Help:Introduction
</div><noinclude>[[Category:Templates]]</noinclude>
|<< Back to tutorials menu
}}
</div>
</div>
 
<!--------------------
|      Contents      |
--------------------->
 
<div class="introto__columns-right">
{{{1|Lorem ipsum}}}
 
{{#ifexist:{{FULLROOTPAGENAME}}/{{#expr:{{SUBPAGENAME}}+1}}
| <!----- if next subpage exists then go to that ----->
{{-}}
  <div style="float: right;">{{Clickable button 2
                            |{{FULLROOTPAGENAME}}/{{#iferror:{{#expr:{{SUBPAGENAME}}+1}}|1|{{#expr:{{SUBPAGENAME}}+1}}}}
                            |Next >>
                            |class=mw-ui-progressive}}</div>
| <!----- if next subpage empty then back to main help page ----->
  <div style="float: left;"> {{#ifeq:{{{sandbox|true}}}|true
                            |{{Clickable button 2
                            |Draft:Sandbox
                            |Test what you've learned in the sandbox}}
                            }}</div>
{{-}}<br />
  <div style="float: right;">{{Clickable button 2
                            |{{{nextlink|Help:Introduction}}}
                            |{{{nexttext|Back to the tutorials menu >>}}}
                            |class=mw-ui-progressive}}</div>
}}
{{#ifexist:{{FULLROOTPAGENAME}}/{{#expr:{{SUBPAGENAME}}-1}}
| <!----- if previous subpage exists then include a back button ----->
  <div style="float: left;">{{Clickable button 2
                            |{{FULLROOTPAGENAME}}/{{#iferror:{{#expr:{{SUBPAGENAME}}-1}}|1|{{#expr:{{SUBPAGENAME}}-1}}}}
                            |<< Back}}</div>
}}
{{-}}
</div>
 
</div>
<!-- bottom box -->
{{#ifexist:{{FULLROOTPAGENAME}}/base|{{{{FULLROOTPAGENAME}}/base}}|}}
{{#if:{{{exercise|<noinclude>xyz</noinclude>}}}|
<div style="max-width: 1100px; margin: auto;">
{{hidden
| style        = border:     1px solid lightgrey; border-top: 0px solid lightgrey;
                padding:   0px;
| headerstyle  = padding:    4px 10px 0px 10px;
                text-align: left;
| contentstyle = padding:    0px 10px;
| header      = Example exercise question to test what you've learnt
| content      = {{{exercise}}}
 
}}</div>
}}
<br /><br />
<div style="max-width: 1100px; margin: auto;">{{Introduction/navigation}}</div>
 
<!-- Categories for the final article, but not this template -->
<includeonly>[[Category:Wikipedia tutorials]][[Category:Wikipedia quick introductions]]</includeonly>

Latest revision as of 20:53, 10 July 2020