Difference between revisions of "Template:History of China/doc"
Jump to navigation
Jump to search
imported>DixonDBot |
imported>Kanguole (remove navbox and category that are present in the main page) |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{Documentation subpage}} | + | {{Documentation subpage}}__NOTOC__<!-- |
| − | <!-- | ||
| − | === | + | PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE |
| + | |||
| + | --> | ||
| + | == Usage == | ||
| + | |||
| + | ===Collapsible lists=== | ||
| + | {{collapsible lists option |listnames=ancient, imperial, modern, related}} | ||
| + | <!-- | ||
| + | * The current default is <code><nowiki>|expanded=all</nowiki></code>, i.e. all lists visible. | ||
| + | ---> | ||
| + | |||
| + | ===BC, AD, BCE, CE=== | ||
This template has been designed so that it can be used both in articles that adopt the BC/AD date notation and those that adopt the BCE/CE date notation without forcing some articles to have inconsistent style. | This template has been designed so that it can be used both in articles that adopt the BC/AD date notation and those that adopt the BCE/CE date notation without forcing some articles to have inconsistent style. | ||
| Line 14: | Line 24: | ||
This functionality is necessitated by the [[Wikipedia:Manual of Style]] requirement that BC-AD and BCE-CE do not both appear in the same article. | This functionality is necessitated by the [[Wikipedia:Manual of Style]] requirement that BC-AD and BCE-CE do not both appear in the same article. | ||
| − | + | ===Other parameters=== | |
| − | |||
:<code>state - autocollapse, uncollapsed, collapsed</code>: the status of box expansion, where "autocollapse" hides stacked navboxes automatically. | :<code>state - autocollapse, uncollapsed, collapsed</code>: the status of box expansion, where "autocollapse" hides stacked navboxes automatically. | ||
| − | + | <includeonly>{{Sandbox other|| | |
| − | |||
| − | |||
| − | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Exclude in print]] | [[Category:Exclude in print]] | ||
| − | + | }}</includeonly> | |
| − | |||
| − | </includeonly> | ||
Latest revision as of 07:53, 1 May 2020
| This is a documentation subpage for Template:History of China. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Collapsible lists
This template includes collapsible lists.
- • To set it to display all lists when it appears (i.e. all lists expanded), use:
-
{{History of China |expanded=all}}or, if enabled,{{History of China |all}}(i.e. omitting "expanded=").
- • To set it to display one particular list while keeping the remainder collapsed (i.e. hidden apart from their headings), use:
-
{{History of China |expanded=listname}}or, if enabled,{{History of China |listname}} - …where listname is one of the following (do not include any quotemarks):
- ancient, imperial, modern, related
BC, AD, BCE, CE
This template has been designed so that it can be used both in articles that adopt the BC/AD date notation and those that adopt the BCE/CE date notation without forcing some articles to have inconsistent style.
It will display BCE/CE notation unless the template gives the parameter BC a value. For instance {{History of China}} will give BCE/CE notation, {{History of China|BC=1}} will give BC/AD notation.
It can be edited as normal, but with the following exception:
- Instead of writing BCE or BC write {{#if: {{{BC|}}}|BC|BCE}}
- Instead of writing CE or AD write {{#if: {{{BC|}}}|AD|CE}}
This functionality is necessitated by the Wikipedia:Manual of Style requirement that BC-AD and BCE-CE do not both appear in the same article.
Other parameters
state - autocollapse, uncollapsed, collapsed: the status of box expansion, where "autocollapse" hides stacked navboxes automatically.