wikilife>Sdkb (→top: fix for cats) |
(没有差异)
|
2020年10月30日 (五) 08:47的版本
This {{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:模板| | main | other }} }} | main = article | other | #default = page }} uses material copied and pasted from other pages, and is therefore likely to become outdated over time. (11月 2024) |
{{#ifeq:|left|}}
{{#ifeq:convert to transclusion |doc
|
{{#ifeq:show |show
|40px | This is a documentation subpage for 模板:Convert to transclusion. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:模板 |用户 |模板 template page |{{#if:模板 |模板 page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:模板:Convert to transclusion | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
Usage
{{Convert to transclusion|date=11月 2024}}
Also, the first parameter may be included to replace "article" or "page" with a specific term, such as "section" or "table". For example:
{{Convert to transclusion|section|date=11月 2024}}
The template will add pages to the maintenance category Category:Pages needing conversion to transclusion.
Known issues
- Not sure that the categorization is working...
See also
- Template:Copied
- Template:Update
- Template:Excerpt (common method of transcluding)
{{#if:{{#ifeq:Convert|sandbox|1}}{{#ifeq:Convert to transclusion|doc|1}}|| }}