Difference between revisions of "Template:Documentation constellation navbox/doc"

From blackwiki
Jump to navigation Jump to search
test>PhilipTerryGraham
m (PhilipTerryGraham moved page Constellation navbox doc/doc to Template:Constellation navbox doc/doc: Incorrect space)
test>PhilipTerryGraham
(Added "Succession" section)
Line 2: Line 2:
 
'''{{tl|Constellation navbox doc}}''' is a common documentation page for all navboxes listed in [[:Category:Constellation navboxes]]. It is designed to replace all the templates' individual documentation pages with a single interchangeable template, with words and links interchangeable with a single parameter. {{tl|Collapsible option}} and {{tl|Universe navboxes}} are used in this template.
 
'''{{tl|Constellation navbox doc}}''' is a common documentation page for all navboxes listed in [[:Category:Constellation navboxes]]. It is designed to replace all the templates' individual documentation pages with a single interchangeable template, with words and links interchangeable with a single parameter. {{tl|Collapsible option}} and {{tl|Universe navboxes}} are used in this template.
  
==Usage==
+
== Usage ==
 
This template has only one parameter, <code>1</code>, in which the name of a constellation is placed as the input. For example, <code><nowiki>{{Constellation navbox doc|Andromeda}}</nowiki></code> will output a description tailored to {{tl|Andromeda (constellation)}}. Only the name of the constellation is needed, regardless of whether or not the template name has "(constellation)" disambiguation. An [[mw:Help:Extension:ParserFunctions##ifexist|<code><nowiki>{{#ifexist:}}</nowiki></code> parser function]] is used to check if a template name has a disambiguation, and if it does, it automatically makes a proper wikilink to the template and its associated article, e.g. [[Andromeda (constellation)]]. To place the template on the page of a template, use the following syntax, with <code>constellation</code> replaced with the name of whichever constellation you want to feature:
 
This template has only one parameter, <code>1</code>, in which the name of a constellation is placed as the input. For example, <code><nowiki>{{Constellation navbox doc|Andromeda}}</nowiki></code> will output a description tailored to {{tl|Andromeda (constellation)}}. Only the name of the constellation is needed, regardless of whether or not the template name has "(constellation)" disambiguation. An [[mw:Help:Extension:ParserFunctions##ifexist|<code><nowiki>{{#ifexist:}}</nowiki></code> parser function]] is used to check if a template name has a disambiguation, and if it does, it automatically makes a proper wikilink to the template and its associated article, e.g. [[Andromeda (constellation)]]. To place the template on the page of a template, use the following syntax, with <code>constellation</code> replaced with the name of whichever constellation you want to feature:
 
<pre style="width:60%;">
 
<pre style="width:60%;">
Line 10: Line 10:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
== Succession ==
 +
This template is designed to be a successor to the following predecessor documentation templates which now serve as redirects to this template:
 +
* [[:Template:Andromeda (constellation)/doc]]

Revision as of 10:42, 15 February 2019

{{Constellation navbox doc}} is a common documentation page for all navboxes listed in Category:Constellation navboxes. It is designed to replace all the templates' individual documentation pages with a single interchangeable template, with words and links interchangeable with a single parameter. {{Collapsible option}} and {{Universe navboxes}} are used in this template.

Usage

This template has only one parameter, 1, in which the name of a constellation is placed as the input. For example, {{Constellation navbox doc|Andromeda}} will output a description tailored to {{Andromeda (constellation)}}. Only the name of the constellation is needed, regardless of whether or not the template name has "(constellation)" disambiguation. An {{#ifexist:}} parser function is used to check if a template name has a disambiguation, and if it does, it automatically makes a proper wikilink to the template and its associated article, e.g. Andromeda (constellation). To place the template on the page of a template, use the following syntax, with constellation replaced with the name of whichever constellation you want to feature:

{{Documentation
| 1       = Template:Constellation navbox doc
| content = {{Constellation navbox doc|constellation}}
}}

Succession

This template is designed to be a successor to the following predecessor documentation templates which now serve as redirects to this template: