Template:Intro to single/doc: Difference between revisions

Content deleted Content added
arrow height default
use syntaxhighlight
 
(21 intermediate revisions by 8 users not shown)
Line 1:
{{Documentation subpage}}
{{uses TemplateStyles|{{FULLPAGENAME}}/styles.css}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
This is a general purposesingle-page template for the '''"Introduction to x"''' tutorial series. UsingIt thisis templateprimarily ensuresused consistentto formattingformat forthe allmain pages[[Help:Introduction]] inmenu the series. Similarlypage, editing this template controls the formatting[[Help:Introduction ofto allWikipedia]] pagespage, inand the series[[Help:Introduction/Conclusion]] page. ThisIt is a single-pane version of the formatting used in the {{tlx|intro to}} templates.
 
<syntaxhighlight lang="wikitext">
<pre>
{{Intro to single
| title =
Line 18 ⟶ 19:
| arrowheight =
| bottom =
| base =
}}
</syntaxhighlight>
</pre>
 
{| class="wikitable sortable"
Line 26 ⟶ 28:
| title || text || (optional) || main title for page
|-
| lead || text || (optional) || first section, to appearappears in light grey area
|-
| top || text || (optional) || second section, to appearappears in main (white) area
|-
| leftimg || image || (optional) || image to appear at top of left section
Line 42 ⟶ 44:
| right2 || text || (optional) || list of links for right panel
|-
| bottom || text || (optional) || text and links to appear at basebottom of main section
|-
| arrowbase || plain text || (optional,<br>default) || text and links to notappear shown)in ||a showgrey arrowsection usingat <code><nowiki>|arrow=show|</nowiki></code>base of main section
|-
| arrowheightalign || integerplain text || (optional,<br/>default to 350pxcenter) || sets heightalignment of arrow top
|-
| arrow || plain text || (optional,<br/>default to not shown) || show arrow using <code><nowiki>|arrow=show|</nowiki></code>
|-
| arrowheight || integer || (optional,<br/>default to 350px) || sets height of arrow
|-
| noborder || y || (optional) || removes border in the center
|-
| nocat || y n || (optional) || disables automatic categorization
|}
 
 
== Additional requirements ==
 
<code>/#</code>: Each page in the series should be saved as a numbered subpage, e.g. <code>Help:Introduction_to_x/1</code>. The template automatically links to the next numbered subpage. If the next numbered subpage doesn't exist, it links back to [[Help:Getting started]]
 
<code>/tabs</code>: You must also create a <code>/tabs</code> page to contain the information for the left hand tab bar (See [[Template:Intro to/tabs]] for details)
 
<code>/base</code>: You may additionally create a <code>/base</code> page to contain a consistent bottom section to be shown on all pages in the series (See [[Template:Intro to/base]] for details)
 
==See also==
* [[Template:intro to]] - athe multiple single-tab variant on this template formatting
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandboxSandbox other| |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Wikipedia quick introduction templates]]
 
}}</includeonly>