Template:Information page/doc: Difference between revisions
>Jonesey95 (add conditions after implementing namespace check) |
WikiDwarfBOT (talk | contribs) m (clean up, replaced: Wikipedia → Bharatpedia (12)) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<!-- ****************************************************************************** | <!-- ****************************************************************************** | ||
**** This is the documentation for both Template:Information_page and **** | **** This is the documentation for both Template:Information_page and **** | ||
**** Template: | **** Template:Bharatpedia_how-to (it uses #if statements to distinguish). **** | ||
****************************************************************************** | ****************************************************************************** | ||
--> | --> | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Auto short description|conditions=when it is used in | {{Auto short description|conditions=when it is used in Bharatpedia, Help, or User space}} | ||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE; INTERWIKIS GO IN WIKIDATA. --> | <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE; INTERWIKIS GO IN WIKIDATA. --> | ||
{{#if:{{{howto|}}} | {{#if:{{{howto|}}} | ||
Line 12: | Line 12: | ||
}} | }} | ||
This is the page banner template for [[:Category: | This is the page banner template for [[:Category:Bharatpedia {{#if:{{{howto|}}}|how-to{{!}}Bharatpedia how-to|information pages{{!}}Bharatpedia information pages}}]]. | ||
It can be placed on top of [[ | It can be placed on top of [[BP:GOVPS|administration pages]] (not-articles) when appropriate (see [[BP:INFOPAGES]] for details). This usually means pages in the "Bharatpedia:" 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 " | If a page that uses this template is in the "Bharatpedia:" or "Help:" [[BP:Namespace|namespace]], then this template adds [[:Category:Bharatpedia {{#if:{{{howto|}}}|how-to|information pages}}]] to the page. | ||
If the page is in the [[ | If the page is in the [[BP: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 29: | Line 29: | ||
:{{tlc|{{BASEPAGENAME}}}} | :{{tlc|{{BASEPAGENAME}}}} | ||
But it can also take up to three [[ | But it can also take up to three [[Bharatpedia:Shortcut|shortcuts]] as parameters. It then displays a small shortcut box inside it. Like this: | ||
:{{tlc|{{BASEPAGENAME}}| | :{{tlc|{{BASEPAGENAME}}|BP:SHORT|BP:LONG}} | ||
Then it looks like this: | Then it looks like this: | ||
{{ {{BASEPAGENAME}}| | {{ {{BASEPAGENAME}}|BP:SHORT|BP:LONG|demo=y}} | ||
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 {{tlc|shortcut}} box directly {{em|below}} this template, 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 {{tlc|shortcut}} box directly {{em|below}} this template, like this: | ||
Line 41: | Line 41: | ||
{{block indent|1= | {{block indent|1= | ||
{{tlx|{{BASEPAGENAME}}}}<br /> | {{tlx|{{BASEPAGENAME}}}}<br /> | ||
{{tlx|shortcut| | {{tlx|shortcut|BP:SHORT|BP:SHORT2|BP:SHORT3|BP:SHORT4}} | ||
}} | }} | ||
=== Optional parameters === | === Optional parameters === | ||
* {{para|1}} or {{para|sc1}}, {{para|shortcut1}}, {{para|shortcut}}, or first unnamed parameter – First [[ | * {{para|1}} or {{para|sc1}}, {{para|shortcut1}}, {{para|shortcut}}, or first unnamed parameter – First [[BP: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) | ||
* {{para|interprets}} or {{para|page}} or {{para|pages}} – Specify name of page (policy, process, etc.) that this essay provides advice about. For a single page, it is not necessary to include <code><nowiki>[[...]]</nowiki></code> linking brackets;. This will replace the wording "{{#if:{{{howto|}}}|some aspect or aspects of | * {{para|interprets}} or {{para|page}} or {{para|pages}} – Specify name of page (policy, process, etc.) that this essay provides advice about. For a single page, it is not necessary to include <code><nowiki>[[...]]</nowiki></code> linking brackets;. This will replace the wording "{{#if:{{{howto|}}}|some aspect or aspects of Bharatpedia's norms and practices|Bharatpedia's norms and practices}}". If more than one page and/or any notes are intended, links must be manually coded, e.g.: {{para|interprets|<nowiki>[[Bharatpedia:Verifiability]] policy and the [[Bharatpedia:Identifying reliable sources]] guideline</nowiki>}} | ||
* {{para|sort-by}} – Specify a [[ | * {{para|sort-by}} – Specify a [[BP:Categorization#Sort keys|sort key]] for the category. For example, if the how-to page is [[Bharatpedia:Producing maps with xplanet]] and you want it category-sorted to appear under "X", use {{para|sort-by|Xplanet, Producing maps with}}. This has no effect on the user essays category. | ||
* {{para|category}} – Specify a complete wikilink (i.e, {{em|do}} include the <code><nowiki>[[...]]</nowiki></code> linking brackets) to one or more categories to override the default [[:Category: | * {{para|category}} – Specify a complete wikilink (i.e, {{em|do}} include the <code><nowiki>[[...]]</nowiki></code> linking brackets) to one or more categories to override the default [[:Category:Bharatpedia {{#if:{{{howto|}}}|how-to|information pages}}]]. May include a category sort; example: <code><nowiki>[[Category:WikiProject Underwater Basketweaving|Article structure advice]]</nowiki></code> 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:Bharatpedia {{#if:{{{howto|}}}|how-to|information pages}}]], in addition to the automatic user category. | ||
* {{para|nocat|y}} or {{para|demo|y}} – Bypass all categorization, when the template is used for demo purposes, e.g. in template documentation, on talk pages, etc. | * {{para|nocat|y}} or {{para|demo|y}} – Bypass all categorization, when the template is used for demo purposes, e.g. in template documentation, on talk pages, etc. | ||
* {{para|style}} – Pass arbitrary CSS to the [[Template:Ombox]] base template that this template uses. | * {{para|style}} – Pass arbitrary CSS to the [[Template:Ombox]] base template that this template uses. | ||
== TemplateData == | == TemplateData == | ||
{{collapse top|[[ | {{collapse top|[[Bharatpedia:TemplateData|TemplateData]] documentation used by [[Bharatpedia:VisualEditor|VisualEditor]] and other tools}} | ||
{{TemplateData header|noheader=1}} | {{TemplateData header|noheader=1}} | ||
<templatedata> | <templatedata> | ||
Line 75: | Line 75: | ||
{{#if:{{{howto|}}}| | {{#if:{{{howto|}}}| | ||
* {{tlx|How-to}} – the cleanup/dispute tag for articles written in a "how-to" style. | * {{tlx|How-to}} – the cleanup/dispute tag for articles written in a "how-to" style. | ||
* {{tlx|Information page}} – the banner template for pages that are more just informational than directly instructional like [[ | * {{tlx|Information page}} – the banner template for pages that are more just informational than directly instructional like [[BP:GOV]]. | ||
| | | | ||
* {{tlx| | * {{tlx|Bharatpedia how-to}} – the banner template for pages that are more directly instructional than just informational like [[H:EDIT]]. | ||
}} | }} | ||
* {{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 [[ | * {{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 [[BP:BRD]]. | ||
* [[ | * [[Bharatpedia:Template messages/Project namespace]] – for other "Bharatpedia:"-namespace banner templates. | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category: | [[Category:Bharatpedia header templates]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 19:58, 8 June 2021
![]() | This is a documentation subpage for Template:Information page. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template adds an automatically generated short description when it is used in Bharatpedia, Help, or User space. |
This is the page banner template for Bharatpedia information pages.
It can be placed on top of administration pages (not-articles) when appropriate (see BP:INFOPAGES for details). This usually means pages in the "Bharatpedia:" and "Help:" namespaces, but sometimes information pages also exist as user subpages.
Categorization
If a page that uses this template is in the "Bharatpedia:" or "Help:" namespace, then this template adds Category:Bharatpedia 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 shortcuts as parameters. It then displays a small shortcut box inside it. Like this:
{{Information page|BP:SHORT|BP:LONG}}
Then it looks like this:
![]() | This is an information page. It is not one of Bharatpedia's policies or guidelines, but rather intends to describe some aspect(s) of Bharatpedia's norms, customs, technicalities, or practices. It may reflect varying levels of consensus and vetting. |
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:
Optional parameters
|1=
or|sc1=
,|shortcut1=
,|shortcut=
, or first unnamed parameter – First 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 "Bharatpedia's norms and practices". If more than one page and/or any notes are intended, links must be manually coded, e.g.:|interprets=[[Bharatpedia:Verifiability]] policy and the [[Bharatpedia:Identifying reliable sources]] guideline
|sort-by=
– Specify a sort key for the category. For example, if the how-to page is Bharatpedia: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:Bharatpedia 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:Bharatpedia 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 VisualEditor and other tools
| ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
See the monthly parameter usage report for this template.
TemplateData for Information page
|
See also
{{Bharatpedia 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 BP:BRD.- Bharatpedia:Template messages/Project namespace – for other "Bharatpedia:"-namespace banner templates.