Jump to content

Template:Topic series doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m use Template:Sandbox other to wrap categorization per WP:CAT#T
use new option nomobilesidebar
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Documentation
<noinclude>
{{Documentation}}
</noinclude>{{Documentation
| content =
| content ={{template display|nomobilesidebar}}
== Purpose ==
{{#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:Sidebar templates by topic|Sidebar templates by topic]]
**Templates will be added automatically to [[:Category:Sidebar templates by topic]] 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>{{Documentation
| content =<table class="plainlinks advert" role="presentation" style="margin: 0 10%; border: 1px solid #aaa; border-left: 10px solid #1e90ff; background: #fbfbfb;"><tr><td class="mbox-image" style="width:55px">[[File:Handheld devices no.svg|55px|link=|alt=]]</td><td class="mbox-text"><span class="mbox-text-span">This template does not display in the mobile view of Wikipedia; it is <strong>desktop only</strong>. Read the [[Template:Sidebar/doc|parent documentation]] for an explanation.</span></td></tr></table>
{{#if:{{{header|}}}|{{{header|}}}|}}
== Usage ==
== Usage ==
{{#if:{{{usage|}}}|{{{usage}}}|
{{#if:{{{usage|}}}|{{{usage}}}|
Line 35: Line 17:
}}{{#if:{{{footer|}}}|{{{footer|}}}|}}
}}{{#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 }}}
Line 46: Line 28:
}} 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>{{#ifeq:{{{nocats|no}}}|yes | |{{DEFAULTSORT:{{{sort|}}}}}[[Category:{{{cat|Sidebar templates by topic}}}]][[Category:Exclude in print]] }}</includeonly><noinclude>
}}}}<includeonly>{{#if:{{yesno|{{{nocat|{{{nocats|no}}}}}}}}|<!-- categorization is disabled -->|{{DEFAULTSORT:{{{sort|}}}}}[[Category:{{{cat|Sidebar templates by topic}}}]]}}</includeonly>
{{Sandbox other||
[[Category:Documentation shared content templates]]
}}</noinclude>

Latest revision as of 08:43, 10 May 2022