Difference between revisions of "Template:Also"

From Nottinghack Wiki
Jump to navigation Jump to search
(see also hatnote)
 
(docs)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
::''{{hatnote|extraclasses=relarticle mainarticle|See also<!-- code for plurals {{#if:{{{2|}}}|s}} -->: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}
+
::''{{hatnote|extraclasses=relarticle mainarticle|See also<!-- code for plurals {{#if:{{{2|}}}|s}} -->: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
 
 
  |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
 
  |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
 
  |{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}}
 
  |{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}}
Line 10: Line 9:
 
  |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}}}''<noinclude>
 
  |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}}}''<noinclude>
 
==Documentation==
 
==Documentation==
Used in subsections to point reader to main expanded article cover the topic of the subsection. Wiki mark-up:
+
Used at the top of an article or subsection to point reader to a related article. Wiki code:
<pre>
+
;Simple single parameter example
{{main|<page name>}}
+
<code><nowiki>{{also|ToDo}}</nowiki></code>
</pre>
+
:{{also|ToDo}}
 +
 
 +
;More parameters example
 +
<code><nowiki>{{also|Help:Reference guide|l1=Wiki Reference Guide|Help:Reference_guide#Namespaces|Wiki Namespaces}}</nowiki></code>
 +
:{{also|Help:Reference guide|l1=Wiki Reference Gudie|Help:Reference guide#Namespaces|l2=Wiki Namespaces}}
 +
 
 +
===Parameters===
 +
;<unnamed>
 +
:The page being linked to is passed as a unnamed parameter
 +
 
 +
;l<number>
 +
:The label used to link to the page can be specified. For example, l1 is used to specify label for first page passed.
 +
 
 +
===Templates used===
 +
Part of this template uses the following template/s:
 +
* [[Template:Hatnote]]
 +
 
 
[[Category:Templates highlighting]]
 
[[Category:Templates highlighting]]
 +
 +
==See also==
 +
* [[Template:Main]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:31, 1 March 2019

Documentation

Used at the top of an article or subsection to point reader to a related article. Wiki code:

Simple single parameter example

{{also|ToDo}}

More parameters example

{{also|Help:Reference guide|l1=Wiki Reference Guide|Help:Reference_guide#Namespaces|Wiki Namespaces}}

Parameters

<unnamed>
The page being linked to is passed as a unnamed parameter
l<number>
The label used to link to the page can be specified. For example, l1 is used to specify label for first page passed.

Templates used

Part of this template uses the following template/s:

See also