Difference between revisions of "Template:Information page/doc"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "<!-- ****************************************************************************** **** This is the documentation for both Template:Information_page and **** **...")
 
m (Wikitext cleanup with links to Wikipedia and some minor details)
 
Line 15: Line 15:
This is the page banner template for [[:Category:Wikipedia {{#if:{{{howto|}}}|how-to{{!}}Wikipedia how-to|information pages{{!}}Wikipedia information pages}}]].
This is the page banner template for [[:Category:Wikipedia {{#if:{{{howto|}}}|how-to{{!}}Wikipedia how-to|information pages{{!}}Wikipedia information pages}}]].


It can be placed on top of [[WP:GOVPS|administration pages]] (not-articles) when appropriate (see [[WP:INFOPAGES]] for details). This usually means pages in the "Wikipedia:" and "Help:" namespaces, but sometimes {{#if:{{{howto|}}}|how-to guides|information pages}} also exist as user subpages.
It can be placed on top of {{Wikipedia|WP:GOVPS|administration pages}} (not-articles) when appropriate (see {{Wikipedia|WP:INFOPAGES}} for details). This usually means pages in the "Wikipedia:" and "Help:" namespaces, but sometimes {{#if:{{{howto|}}}|how-to guides|information pages}} also exist as user subpages.


== Categorization ==
== Categorization ==
If a page that uses this template is in the "Wikipedia:" or "Help:" [[WP:Namespace|namespace]], then this template adds [[:Category:Wikipedia {{#if:{{{howto|}}}|how-to|information pages}}]] to the page.
If a page that uses this template is in the "Wikipedia:" or "Help:" {{Wikipedia|WP:Namespace|namespace}}, then this template adds [[:Category:Wikipedia {{#if:{{{howto|}}}|how-to|information pages}}]] to the page.


If the page is in the [[WP:User pages|"User:"]] namespace, it will be put into [[:Category:User essays]].  If your page is just a draft, please use the {{para|nocat}} parameter to prevent categorization, until it is finished.
If the page is in the [[:User pages|"User:"]] namespace, it will be put into [[:Category:User essays]].  If your page is just a draft, please use the {{para|nocat}} parameter to prevent categorization, until it is finished.


If it is in some other namespace, it will not be auto-categorized, and it may be in the wrong place.
If it is in some other namespace, it will not be auto-categorized, and it may be in the wrong place.
Line 30: Line 30:
:{{tlc|{{BASEPAGENAME}}}}
:{{tlc|{{BASEPAGENAME}}}}


But it can also take up to three [[Wikipedia:Shortcut|shortcuts]] as parameters. It then displays a small shortcut box inside it. Like this:
But it can also take up to three {{Wikipedia|Wikipedia:Shortcut|shortcuts}} as parameters. It then displays a small shortcut box inside it. Like this:


:{{tlc|{{BASEPAGENAME}}|WP:SHORT|WP:LONG}}
:{{tlc|{{BASEPAGENAME}}|WP:SHORT|WP:LONG}}
Line 46: Line 46:


=== Optional parameters ===
=== Optional parameters ===
* {{para|1}} or {{para|sc1}}, {{para|shortcut1}}, {{para|shortcut}}, or first unnamed parameter – First [[WP:Shortcut|shortcut]]. Don't include <code><nowiki>[[...]]</nowiki></code> linking brackets in this or other shortcut parameters.
* {{para|1}} or {{para|sc1}}, {{para|shortcut1}}, {{para|shortcut}}, or first unnamed parameter – First {{Wikipedia|WP:Shortcut|shortcut}}. Don't include <code><nowiki>[[...]]</nowiki></code> linking brackets in this or other shortcut parameters.
* {{para|2}} or {{para|sc2}}, {{para|shortcut2}}, or first unnamed parameter – Second shortcut
* {{para|2}} or {{para|sc2}}, {{para|shortcut2}}, or first unnamed parameter – Second shortcut
* {{para|3}} or {{para|sc3}}, {{para|shortcut3}}, or first unnamed parameter – Third shortcut (deprecated; please use separate [[Template:Shortcut]] for three or more)
* {{para|3}} or {{para|sc3}}, {{para|shortcut3}}, or first unnamed parameter – Third shortcut (deprecated; please use separate [[Template:Shortcut]] for three or more)
Line 56: Line 56:


== TemplateData ==
== TemplateData ==
{{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by {{Wikipedia|Wikipedia:VisualEditor|VisualEditor}} and other tools}}
{{TemplateData header|noheader=1}}
{{TemplateData header|noheader=1}}
<templatedata>
<!--<templatedata>-->
<syntaxhighlight lang="json">
{
{
         "description": "",
         "description": "",
Line 69: Line 70:
         }
         }
}
}
</templatedata>
</syntaxhighlight>
<!--</templatedata>-->
{{collapse bottom}}
{{collapse bottom}}


Line 81: Line 83:
}}
}}
* {{tlx|Essay|interprets{{=}}}} – the banner template for pages that are more opinionated then instructional or technical; there are several parameters and variations.
* {{tlx|Essay|interprets{{=}}}} – the banner template for pages that are more opinionated then instructional or technical; there are several parameters and variations.
* {{tlx|Supplement|interprets{{=}}}}  – to tag a well-established page that adds something to a policy or guideline, to make up for a deficiency, and when it is referenced in the guideline or policy like [[WP:BRD]].
* {{tlx|Supplement|interprets{{=}}}}  – to tag a well-established page that adds something to a policy or guideline, to make up for a deficiency, and when it is referenced in the guideline or policy like {{Wikipedia|WP:BRD}}.
* [[Wikipedia:Template messages/Project namespace]] – for other "Wikipedia:"-namespace banner templates.
* [[Wikipedia:Template messages/Project namespace]] – for other "Wikipedia:"-namespace banner templates.
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||

Latest revision as of 01:16, 16 June 2023

Not to be confused with Template:Information.



This is the page banner template for Wikipedia information pages.

It can be placed on top of "Wikipedia logo"administration pages (not-articles) when appropriate (see "Wikipedia logo"WP:INFOPAGES for details). This usually means pages in the "Wikipedia:" and "Help:" namespaces, but sometimes information pages also exist as user subpages.

Categorization

If a page that uses this template is in the "Wikipedia:" or "Help:" "Wikipedia logo"namespace, then this template adds Category:Wikipedia information pages to the page.

If the page is in the "User:" namespace, it will be put into Category:User essays. If your page is just a draft, please use the |nocat = parameter to prevent categorization, until it is finished.

If it is in some other namespace, it will not be auto-categorized, and it may be in the wrong place.

Usage

This template can be used as is, like this:

{{Information page}}

But it can also take up to three "Wikipedia logo"shortcuts as parameters. It then displays a small shortcut box inside it. Like this:

{{Information page|WP:SHORT|WP:LONG}}

Then it looks like this:

If you want to feed more than one or two shortcuts then the shortcut box becomes too high, which doesn't look good. In such a case it is better to use a {{shortcut}} box directly below this template, like this:

{{Information page}}
{{shortcut|WP:SHORT|WP:SHORT2|WP:SHORT3|WP:SHORT4}}

Optional parameters

  • |1 = or |sc1 =, |shortcut1 =, |shortcut =, or first unnamed parameter – First "Wikipedia logo"shortcut. Don't include [[...]] linking brackets in this or other shortcut parameters.
  • |2 = or |sc2 =, |shortcut2 =, or first unnamed parameter – Second shortcut
  • |3 = or |sc3 =, |shortcut3 =, or first unnamed parameter – Third shortcut (deprecated; please use separate Template:Shortcut for three or more)
  • |interprets = or |page = or |pages = – Specify name of page (policy, process, etc.) that this essay provides advice about. For a single page, it is not necessary to include [[...]] linking brackets;. This will replace the wording "Wikipedia's norms and practices". If more than one page and/or any notes are intended, links must be manually coded, e.g.: |interprets = [[Wikipedia:Verifiability]] policy and the [[Wikipedia:Identifying reliable sources]] guideline
  • |sort-by = – Specify a sort key for the category. For example, if the how-to page is Wikipedia:Producing maps with xplanet and you want it category-sorted to appear under "X", use |sort-by = Xplanet, Producing maps with. This has no effect on the user essays category.
  • |category = – Specify a complete wikilink (i.e, do include the [[...]] linking brackets) to one or more categories to override the default Category:Wikipedia information pages. May include a category sort; example: [[Category:WikiProject Underwater Basketweaving|Article structure advice]] This parameter does not replace the Category:User essays categorization for pages in the "User:" namespace, but can be used to add them manually to Category:Wikipedia information pages, in addition to the automatic user category.
  • |nocat = y or |demo = y – Bypass all categorization, when the template is used for demo purposes, e.g. in template documentation, on talk pages, etc.
  • |style = – Pass arbitrary CSS to the Template:Ombox base template that this template uses.

TemplateData

TemplateData documentation used by "Wikipedia logo"VisualEditor and other tools
Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Information page

{
        "description": "",
        "params": {
             "page": {"type": "wiki-page-name","description": "Guideline or other page being interpreted"},
             "shortcut1" : {"type": "wiki-page-name","description": "Shortcut to this page"},
             "shortcut2" : {"type": "wiki-page-name","description": "Shortcut to this page"},
             "shortcut3" : {"type": "wiki-page-name","description": "Shortcut to this page"},
             "nocat" : {"type": "string","description": "Any value prevents addition of project category"}
        }
}

See also

  • {{Wikipedia how-to}} – the banner template for pages that are more directly instructional than just informational like H:EDIT.
  • {{Essay|interprets=}} – the banner template for pages that are more opinionated then instructional or technical; there are several parameters and variations.
  • {{Supplement|interprets=}} – to tag a well-established page that adds something to a policy or guideline, to make up for a deficiency, and when it is referenced in the guideline or policy like "Wikipedia logo"WP:BRD.
  • Wikipedia:Template messages/Project namespace – for other "Wikipedia:"-namespace banner templates.