Difference between revisions of "Template:About"

From Science Olympiad Student Center Wiki
Jump to: navigation, search
m (Changed wiki name to Scioly Wiki)
m (Comment accidentally had no ending)
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="padding: 5px; border: 1px solid black; text-align: center; background: #ffdead; margin: 20px;">
+
<!-- Thanks Scratch Wiki for this! -->
{| style="margin: 1em auto; width: 95%"
 
|-
 
|<span style="font-size: 56px; font-weight: bold;">👷‍♂️</span> ||<span style="font-size: 26px; font-weight: bold;">This template is currently under construction. Please don't use it yet!</span> ||<span style="font-size: 56px; font-weight: bold;">👷‍♀️</span>
 
|-
 
|}
 
</div>
 
 
 
<!-- Thanks Scratch-Wiki! -->
 
<noinclude>
 
 
:<i>{{#if: {{{1|}}}|<!--
 
:<i>{{#if: {{{1|}}}|<!--
   -->This {{#ifeq:{{NAMESPACE}}|{{ns:0}}|article|{{#ifeq:{{NAMESPACE}}|{{ns:4}}|Scioly Wiki page|{{#ifeq:{{NAMESPACE}}|{{ns:Help}}|help page|{{lc:{{NAMESPACE}}}}}}}}}} is about {{{1}}}.&#32;&#32;}}<!--
+
   -->This {{#ifeq: {{{section|}}}|yes|section|{{#ifeq:{{NAMESPACE}}|{{ns:0}}|article|{{#ifeq:{{NAMESPACE}}|{{ns:4}}|Scioly Wiki page|{{#ifeq:{{NAMESPACE}}|{{ns:Help}}|help page|{{lc:{{NAMESPACE}}}}}}}}}}}} is about {{{1}}}.&#32;&#32;}}<!--
 
-->For {{#if:{{{2|}}}|{{{2}}}|other uses}}, see {{#if:{{{3|}}}|[[{{{3}}}]]{{#ifeq:{{{4|}}}|and|&#32;and {{#if:{{{5|}}}|[[{{{5}}}]]|[[{{PAGENAME}} (disambiguation)]]}}}}|[[{{PAGENAME}} (disambiguation)]]}}.<!--
 
-->For {{#if:{{{2|}}}|{{{2}}}|other uses}}, see {{#if:{{{3|}}}|[[{{{3}}}]]{{#ifeq:{{{4|}}}|and|&#32;and {{#if:{{{5|}}}|[[{{{5}}}]]|[[{{PAGENAME}} (disambiguation)]]}}}}|[[{{PAGENAME}} (disambiguation)]]}}.<!--
 
-->{{#if:{{{2|}}}|{{#if:{{{4|}}}|<!--
 
-->{{#if:{{{2|}}}|{{#if:{{{4|}}}|<!--
Line 24: Line 15:
 
   -->}}<!--
 
   -->}}<!--
 
-->}}}}</i>
 
-->}}}}</i>
 +
<noinclude>
 +
{{TemplateDocStart}}
 +
 +
The '''About template''' creates hatnotes which can be used at the top of articles and sections to direct readers to articles that they may have been wanting to visit instead of the article they were directed to.
 +
 +
=== Usage ===
 +
 +
<code><nowiki>{{About|Use1}}</nowiki></code> {{About|Use1}}
 +
<code><nowiki>{{About|Use1||Article2}</nowiki></code> {{About|Use1||Article2}}
 +
<code><nowiki>{{About|Use1||Article2|and|Article3}}</nowiki></code> {{About|Use1||Article2|and|Article3}}
 +
<code><nowiki>{{About|Use1|Use2|Article2}}</nowiki></code> {{About|Use1|Use2|Article2}}
 +
<code><nowiki>{{About|Use1|Use2|Article2|and|Article3}}</nowiki></code> {{About|Use1|Use2|Article2|and|Article3}}
 +
<code><nowiki>{{About|Use1|Use2|Article2|other uses}}</nowiki></code>{{About|Use1|Use2|Article2|other uses}}
 +
<code><nowiki>{{about|Use1|Use2|Article2|Use3|Article3|Use4|Article4|Use5|Article5}}</nowiki></code>{{about|Use1|Use2|Page2|Use3|Page3|Use4|Page4|Use5|Page5}}
 +
<code><nowiki>{{about|Use1|Use2|Article2|Use3|Article3|other uses}}</nowiki></code> {{about|Use1|Use2|Article2|Use3|Article3|other uses}}
 +
<code><nowiki>{{about|Use1|Use2|Article2|Use3|Article3|other uses|Article4}}</nowiki></code> {{about|Use1|Use2|Article2|Use3|Article3|other uses|Article4}}
 +
<code><nowiki>{{about||Use2|Article2|Use3|Article3|other uses}}</nowiki></code> {{about||Use2|Article2|Use3|Article3|other uses}}
 +
 +
==== Section Hatnotes ====
 +
 +
You can use <code><nowiki>section=yes</nowiki></code> in an <code><nowiki>{{About}}</nowiki></code> reference to change the wording of the template to show that it is being used in a section:
 +
 +
<code><nowiki>{{About|Use1|section=yes}}</nowiki></code> {{About|Use1|section=yes}}
 +
<code><nowiki>{{About|Use1||Article2|section=yes}}</nowiki></code> {{About|Use1||Article2|section=yes}}
 +
<code><nowiki>{{About|Use1|Use2|Article2|section=yes}}</nowiki></code> {{About|Use1|Use2|Article2|section=yes}}
 +
<code><nowiki>{{About|Use1|Use2|Article2|and|Article3|section=yes}}</nowiki></code> {{About|Use1|Use2|Article2|and|Article3|section=yes}}
 +
<code><nowiki>{{About|Use1|Use2|Article2|other uses|section=yes}}</nowiki></code> {{About|Use1|Use2|Article2|other uses|section=yes}}
 +
 
</noinclude>
 
</noinclude>

Revision as of 17:56, 15 February 2020

For other uses, see About (disambiguation).

Template:About - Documentation

The About template creates hatnotes which can be used at the top of articles and sections to direct readers to articles that they may have been wanting to visit instead of the article they were directed to.

Usage

{{About|Use1}}

This template is about Use1. For other uses, see About (disambiguation).

{{About|Use1||Article2}

This template is about Use1. For other uses, see Article2.

{{About|Use1||Article2|and|Article3}}

This template is about Use1. For other uses, see Article2 and Article3.

{{About|Use1|Use2|Article2}}

This template is about Use1. For Use2, see Article2.

{{About|Use1|Use2|Article2|and|Article3}}

This template is about Use1. For Use2, see Article2 and Article3.

{{About|Use1|Use2|Article2|other uses}}

This template is about Use1. For Use2, see Article2. For other uses, see About (disambiguation).

{{about|Use1|Use2|Article2|Use3|Article3|Use4|Article4|Use5|Article5}}

This template is about Use1. For Use2, see Page2. For Use3, see Page3. For Use4, see Page4. For Use5, see Page5.

{{about|Use1|Use2|Article2|Use3|Article3|other uses}}

This template is about Use1. For Use2, see Article2. For Use3, see Article3. For other uses, see About (disambiguation).

{{about|Use1|Use2|Article2|Use3|Article3|other uses|Article4}}

This template is about Use1. For Use2, see Article2. For Use3, see Article3. For other uses, see Article4.

{{about||Use2|Article2|Use3|Article3|other uses}}

For Use2, see Article2. For Use3, see Article3. For other uses, see About (disambiguation).


Section Hatnotes

You can use section=yes in an {{About}} reference to change the wording of the template to show that it is being used in a section:

{{About|Use1|section=yes}}

This section is about Use1. For other uses, see About (disambiguation).

{{About|Use1||Article2|section=yes}}

This section is about Use1. For other uses, see Article2.

{{About|Use1|Use2|Article2|section=yes}}

This section is about Use1. For Use2, see Article2.

{{About|Use1|Use2|Article2|and|Article3|section=yes}}

This section is about Use1. For Use2, see Article2 and Article3.

{{About|Use1|Use2|Article2|other uses|section=yes}}

This section is about Use1. For Use2, see Article2. For other uses, see About (disambiguation).