Help:Templates: Difference between revisions
Bythmusters (talk | contribs) m →Infoboxes: Replaced Infobox documentation with Cargo |
|||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{WIP}} | |||
Featured on this page are lists of templates to use as headers and/or footers for your page. | Featured on this page are lists of templates to use as headers and/or footers for your page. | ||
If you see previewed templates wrapped in double curly braces, that means it is an required argument. | If you see previewed templates wrapped in double curly braces, that means it is an required argument. | ||
Templates basically act as reusable building blocks that power everything from | Templates basically act as reusable building blocks that power everything from cargo to banners. Think of them like functions in code: you create them once, then use them anywhere with a simple call like <code><nowiki>{{TemplateName}}</nowiki></code>. It's efficient, consistent, and easy to maintain. Reduce, Reuse, Recycle. | ||
Isn’t that | Isn’t that cool? | ||
== Page Information Headers == | ==Page Information Headers== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! Template Name !! Template Code !! Template Preview | !Template Name!!Template Code!!Template Preview | ||
|- | |- | ||
| [[Template: | |[[Template:DeletionRequest|DeletionRequest]]||<pre>{{DeletionRequest}}</pre>||{{DeletionRequest}} | ||
|- | |- | ||
| [[Template: | |[[Template:Garbage|Garbage]]||<pre>{{Garbage}}</pre>||{{Garbage}} | ||
|- | |- | ||
| [[Template: | |[[Template:Irrelevant|Irrelevant]]||<pre>{{Irrelevant}}</pre>||{{Irrelevant}} | ||
|- | |- | ||
| [[Template: | |[[Template:MergeRequest|MergeRequest]]||<pre>{{MergeRequest}}</pre>||{{MergeRequest}} | ||
|- | |- | ||
| [[Template: | |[[Template:SloppyAI|SloppyAI]]||<pre>{{SloppyAI}}</pre>||{{SloppyAI}} | ||
|- | |- | ||
| [[Template: | |[[Template:StubNotice|StubNotice]]||<pre>{{StubNotice}}</pre>||{{StubNotice}} | ||
|- | |- | ||
|[[Template:ToneWarning|ToneWarning]]||<pre>{{ToneWarning}}</pre>||{{ToneWarning}} | |||
| [[Template:ToneWarning|ToneWarning]] ||<pre>{{ToneWarning}}</pre>|| {{ToneWarning}} | |||
|} | |} | ||
== About The Page Itself == | ==About The Page Itself== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! Template Name !! Template Code !! Template Preview | !Template Name!!Template Code!!Template Preview | ||
|- | |- | ||
| [[Template:Alert|Alert]] ||<pre>{{Alert}}</pre>|| {{Alert}} | |[[Template:Alert|Alert]]||<pre>{{Alert}}</pre>||{{Alert}} | ||
|- | |- | ||
| [[Template:Notice|Notice]] ||<pre>{{Notice}}</pre>|| {{Notice}} | |[[Template:Notice|Notice]]||<pre>{{Notice}}</pre>||{{Notice}} | ||
|- | |- | ||
| [[Template:Warning|Warning]] ||<pre>{{Warning}}</pre>|| {{Warning}} | |[[Template:Warning|Warning]]||<pre>{{Warning}}</pre>||{{Warning}} | ||
|- | |- | ||
| [[Template:Incomplete section|Incomplete section]] ||<pre>{{Incomplete section}}</pre>|| {{Incomplete section}} | |[[Template:Incomplete section|Incomplete section]]||<pre>{{Incomplete section}}</pre>||{{Incomplete section}} | ||
|- | |- | ||
| [[Template:Placeholder box|Placeholder box]] ||<pre>{{Placeholder box}}</pre>|| {{Placeholder box}} | |[[Template:Placeholder box|Placeholder box]]||<pre>{{Placeholder box}}</pre>||{{Placeholder box}} | ||
|- | |- | ||
| [[Template:Under_Development|Under_Development]] ||<pre>{{Under_Development}}</pre>|| {{Under_Development}} | |[[Template:Under_Development|Under_Development]]||<pre>{{Under_Development}}</pre>||{{Under_Development}} | ||
|- | |- | ||
| [[Template:Collapsible list|Collapsible list]] ||<pre>{Collapsible list}}</pre>|| {{Collapsible list}} | |[[Template:Collapsible list|Collapsible list]]||<pre>{Collapsible list}}</pre>|| {{Collapsible list}} | ||
|- | |- | ||
| [[Template:ConsumerImpactSection|ConsumerImpactSection]] ||<pre>{{ConsumerImpactSection}}</pre>|| {{ConsumerImpactSection}} | |[[Template:ConsumerImpactSection|ConsumerImpactSection]]||<pre>{{ConsumerImpactSection}}</pre>||{{ConsumerImpactSection}} | ||
|} | |} | ||
== Text Headers == | ==Text Headers== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! Template Name !! Template Code !! Template Preview | !Template Name!!Template Code!!Template Preview | ||
|- | |- | ||
| [[Template:Citation needed|Citation needed]] ||<pre>{{Citation needed}}</pre>|| {{Citation needed}} | |[[Template:Citation needed|Citation needed]]||<pre>{{Citation needed}}</pre>||{{Citation needed}} | ||
|- | |- | ||
| [[Template:Clarify|Clarify]] ||<pre>{{Clarify}}</pre>|| {{Clarify}} | |[[Template:Clarify|Clarify]]||<pre>{{Clarify}}</pre>||{{Clarify}} | ||
|- | |- | ||
| [[Template:DisputedInline|DisputedInline]] ||<pre>{{DisputedInline}}</pre>|| {{DisputedInline}} | |[[Template:DisputedInline|DisputedInline]]||<pre>{{DisputedInline}}</pre>||{{DisputedInline}} | ||
|- | |- | ||
| [[Template:UpdateNeeded|UpdateNeeded]] ||<pre>{{UpdateNeeded}}</pre>|| {{UpdateNeeded}} | |[[Template:UpdateNeeded|UpdateNeeded]]||<pre>{{UpdateNeeded}}</pre>||{{UpdateNeeded}} | ||
|- | |- | ||
| [[Template:Box|Box]] ||<pre>{{Box}}</pre>|| {{Box}} | |[[Template:Box|Box]]||<pre>{{Box}}</pre>||{{Box}} | ||
|- | |- | ||
| [[Template:Colortext|Colortext]] ||<pre>{{Colortext}}</pre>|| {{Colortext}} | |[[Template:Colortext|Colortext]]||<pre>{{Colortext}}</pre>||{{Colortext}} | ||
|- | |- | ||
| [[Template:ColorOutlinetext|ColorOutlinetext]] ||<pre>{{ColorOutlinetext}}</pre>|| {{ColorOutlinetext}} | |[[Template:ColorOutlinetext|ColorOutlinetext]]||<pre>{{ColorOutlinetext}}</pre>||{{ColorOutlinetext}} | ||
|- | |- | ||
| [[Template:Spoiler|Spoiler]] ||<pre>{{Spoiler}}</pre>|| {{Spoiler}} | |[[Template:Spoiler|Spoiler]]||<pre>{{Spoiler}}</pre>||{{Spoiler}} | ||
|- | |- | ||
| [[Template:Clear|Clear]] ||<pre>{{Clear}}</pre>|| {{Clear}} | |[[Template:Clear|Clear]]||<pre>{{Clear}}</pre>||{{Clear}} | ||
|- | |- | ||
| [[Template:Nowrap|Nowrap]] ||<pre>{{NoWrap}}</pre>|| {{Nowrap}} | |[[Template:Nowrap|Nowrap]]||<pre>{{NoWrap}}</pre>||{{Nowrap}} | ||
|- | |- | ||
| [[Template:Important|Important]] ||<pre>{{Important}}</pre>|| {{Important | |[[Template:Important|Important]]||<pre>{{Important}}</pre>||{{Important}} | ||
|} | |} | ||
== | ==Cargo== | ||
Previously, infobox templates were used, but are being phased out for new Cargo templates. See [[Projects:Cargo-complete]]. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! Template Name !! Template Code !! Template Preview | !Template Name!!Template Code!!Template Preview | ||
|- | |||
|[[Template:IncidentCargo|IncidentCargo]]|| | |||
<nowiki>{{IncidentCargo}}</nowiki> | |||
|{{IncidentCargo}} | |||
|- | |||
|[[Template:CompanyCargo|CompanyCargo]]||<pre>{{CompanyCargo}}</pre>||{{CompanyCargo}} | |||
|- | |- | ||
| [[Template: | |[[Template:ProductCargo|ProductCargo]] | ||
|<pre>{{ProductCargo}}</pre> | |||
|{{ProductCargo}} | |||
|- | |- | ||
| [[Template: | |[[Template:ProductLineCargo|ProductLineCargo]] | ||
|<pre>{{ProductLineCargo}}</pre> | |||
|{{ProductLineCargo}} | |||
|} | |} | ||