Template:Intro to single/doc: Difference between revisions

Content deleted Content added
use syntaxhighlight
 
(14 intermediate revisions by 6 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 20 ⟶ 21:
| base =
}}
</syntaxhighlight>
</pre>
 
{| class="wikitable sortable"
Line 45 ⟶ 46:
| bottom || text || (optional) || text and links to appear at bottom of main section
|-
| base || text || (optional) || text and links to appear in a grey section belowat thebase of main section
|-
| align || plain text || (optional,<br/>default to center) || alignment of 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 ==
The above template is only for the single-page version of the template. The version of the template that can be used to make multiple pages in a series is [[Template:Intro to]].
 
:<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>