Jump to content

Template:Topic series doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
creating test template from Special:Diff/896388957
 
use new option nomobilesidebar
 
(21 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>
{{Documentation
{{Documentation}}
| content =<noinclude>
</noinclude>{{Documentation
== Purpose ==
| content ={{template display|nomobilesidebar}}

{{#if:{{{header|}}}|{{{header|}}}}}
This template is used to provide generic documentation for most of the [[Wikipedia:Article series|Article series]] templates.

== Parameters available ==
*{{para|header}} Used to add any header notes to docs. Add things such as shortcut links here.
*{{para|footer}} Used to add any footer notes to docs.
*{{para|usage}} Used to replace the standard ''Usage''-section with a user defined.
*{{para|sort}} Used to set the {{tl|DEFAULTSORT}} for the template.
*{{para|cat}} Category name (without "Category:"), if it is something more specific than [[:Category:"Part of a series on" sidebar templates|"Part of a series on" sidebar templates]]
**Templates will be added automatically to [[:Category:"Part of a series on" sidebar templates]] and [[:Category:Exclude in print]],
**if the {{para|nocats}} is set to ''yes'', the template will not be added to any categories.

Templates for topics about a person should use the {{para|sort}} parameter.

== Usage (of this template) ==
* Like the general {{tl|Documentation}} template, place {{tlc|Topic series doc}} between [[WP:NOINCLUDE|<nowiki><noinclude></nowiki>]] tags below the template code. Be sure to place the first tag, <code><nowiki><noinclude></nowiki></code> (the opening tag), after the very last code of the template. If the opening tag is placed on its own line below the template code, then it will introduce undesirable whitespace below the end-product template.
* The "Usage" header below and the text (code) beneath it will be included in the template documentation under that header unless altered by the <code><nowiki>usage=</nowiki></code> parameter.
</noinclude><includeonly>
{{Template display|nomobile}}</includeonly>
{{{header|}}}
== Usage ==
== Usage ==
{{#if:{{{usage|}}}|{{{usage}}}|
{{#if:{{{usage|}}}|{{{usage}}}|
Line 28: Line 10:
{{#ifexist:Template:{{Remove last word|{{PAGENAME}} }}|
{{#ifexist:Template:{{Remove last word|{{PAGENAME}} }}|
== See also ==
== See also ==
* Template:{{Remove last word|{{PAGENAME}} }}
* [[Template:{{Remove last word|{{PAGENAME}} }}]]{{#if:{{{also|}}}|
* {{{also|}}}
* [[{{{also}}}]] |}} |
== See also ==
}}
{{{footer|}}}
{{#if:{{{also|}}}|
* [[{{{also}}}]] |}}

}}{{#if:{{{footer|}}}|{{{footer|}}}|}}
<!-- *** transclusion of /doc if it exists *** -->
<!-- *** transclusion of /doc if it exists *** -->
{{#ifexist:{{FULLPAGENAME}}/doc|{{{{FULLPAGENAME}}/doc}}
{{#ifexist:{{FULLPAGENAME}}/doc|{{ {{FULLPAGENAME}}/doc}}
}}|link box=This documentation is transcluded from [[Template:Topic series doc]]. <span style="font-size:small; font-style: normal line-height:130%">([{{fullurl:Template:Topic series doc|action=edit}} edit] &#124; [{{fullurl:Template:Topic series doc|action=history}} history])</span><br />Editors can experiment in this {{#switch: {{SUBJECTSPACE}} | {{ns:module}} = module's | #default = template's}} {{
}}

|link box=This documentation is transcluded from [[Template:Topic series doc]]. <span style="font-size:small; font-style: normal line-height:130%">([{{fullurl:Template:Topic series doc|action=edit}} edit] &#124; [{{fullurl:Template:Topic series doc|action=history}} history])</span><br />Editors can experiment in this {{#switch: {{SUBJECTSPACE}} | {{ns:module}} = module's | #default = template's}} {{
#ifexist: {{{sandbox| {{FULLPAGENAME}}/sandbox }}}
#ifexist: {{{sandbox| {{FULLPAGENAME}}/sandbox }}}
| [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|sandbox]] <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} edit] <nowiki>|</nowiki> [{{fullurl:Special:ComparePages | page1={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&page2={{urlencode:{{{sandbox|{{FULLPAGENAME}}/sandbox}}}}}}} diff])</small>
| [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|sandbox]] <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} edit] <nowiki>|</nowiki> [{{fullurl:Special:ComparePages | page1={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&page2={{urlencode:{{{sandbox|{{FULLPAGENAME}}/sandbox}}}}}}} diff])</small>
| sandbox <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-{{#ifeq: {{SUBJECTSPACE}}|{{ns:Module}}|module-}}sandbox }} create] <nowiki>|</nowiki> [{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&summary={{urlencode:Create sandbox version of [[{{{template page|{{FULLPAGENAME}}}}}]]}} }} mirror])</small>
| sandbox <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-{{#ifeq: {{SUBJECTSPACE}}|{{ns:Module}}|module-}}sandbox }} create] <nowiki>|</nowiki> [{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&summary={{urlencode:Create sandbox version of [[{{{template page|{{FULLPAGENAME}}}}}]]}} }} mirror])</small>
}} and {{
}} and {{
Line 46: Line 27:
| testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-{{#ifeq: {{SUBJECTSPACE}}|{{ns:Module}}|module-}}testcases }} create])</small>
| testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-{{#ifeq: {{SUBJECTSPACE}}|{{ns:Module}}|module-}}testcases }} create])</small>
}} pages. <br />{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop
}} pages. <br />{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop
|<br/>This template is [[WP:PROTECT|fully protected]] and any [[WP:CAT|categories]] should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Category_interwiki/preload}} /doc] subpage, which is not protected, while [[H:ILL|interlanguage links]] should be added to Wikidata. For more information see [[Wikipedia:Wikidata]].
|<br />This template is [[WP:PROTECT|fully protected]] and any [[WP:CAT|categories]] should be added to the template's [{{fullurl:{{FULLPAGENAME}}/doc|action=edit&preload=Template:Category_interwiki/preload}} /doc] subpage, which is not protected, while [[H:ILL|interlanguage links]] should be added to Wikidata. For more information see [[Wikipedia:Wikidata]].
}}}}<includeonly>{{#if:{{yesno|{{{nocat|{{{nocats|no}}}}}}}}|<!-- categorization is disabled -->|{{DEFAULTSORT:{{{sort|}}}}}[[Category:{{{cat|Sidebar templates by topic}}}]]}}</includeonly>
}}
}}<includeonly>{{#ifeq:{{{nocats|no}}}|yes | |{{DEFAULTSORT:{{{sort|}}}}}[[Category:{{{cat|"Part of a series on" sidebar templates}}}]][[Category:Exclude in print]] }}</includeonly><noinclude>

{{#ifeq:{{SUBPAGENAME}}|sandbox||
[[Category:Documentation pages]]
[[Category:Template documentation]]

}}</noinclude>

Latest revision as of 08:43, 10 May 2022