Wikipedia:Template index/Examples: Difference between revisions

Content deleted Content added
Tags: Mobile edit Mobile web edit
Undid revision 1133796004 by 190.171.91.6 (talk) patent nonsense
 
(15 intermediate revisions by 15 users not shown)
Line 1:
A '''list of examples''' of the various message templates, and other sorts of templates.
__FORCETOC__
 
==Main namespace (for encyclopedic articles)==
{| border=1 cellspacing=0 cellpadding=3 align=center style="width: 100%;"
Line 77:
A list of ways to create several kinds of [[Wikipedia:Section#Compact TOC|compact]] [[Wikipedia:Section#Table of contents (TOC)|tables of contents]] (TOC). Please note that a normal compact TOC will not work when put on Category pages; the page contains a separate section instructing you how to put a compact TOC on Category pages.
'''Example:''' {{tl|Compact ToC}}
{{Compact ToC}}
<!--
-->{{#ifeq:{{{center|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes |
<div style="text-align:center;"><!--
-->}}<!--
 
Start contents box
 
--><div id="toc" class="toc plainlinks hlist"
style="{{#ifeq:{{{center|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes |margin-left:auto;margin-right:auto;
| {{#ifeq:{{{right}}}|yes |clear:right;float:right;}}
}} text-align:{{{align|left}}};">
<!--
 
"[name]/Contents"
 
-->{{#ifeq:{{{name}}}|no |
| <div id="toctitle" style="text-align:center;{{#ifeq:{{{side|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes |display:inline-block;}}"><!--
--><span style="font-weight:bold;">{{{name|{{MediaWiki:Toc}}&nbsp;}}}{{#ifeq:{{{side|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes |&#58;<!--(colon)-->}}</span><!--
--></div><!--
-->}}
<!--
 
Links
 
--><div style="margin:auto;white-space:nowrap;{{#ifeq:{{{side|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes |display:inline-block;}}"><!--
-->{{#ifeq:{{{top}}}|yes |
* [[#top|Top]]}}<!--
-->{{#if:{{{pre1|{{{preSec1|}}}}}} |
* [[{{{pre1link|{{{preSec1link|#{{{pre1|{{{preSec1}}} }}} }}} }}}|{{{pre1name|{{{preSec1name|{{{pre1|{{{preSec1}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{pre2|{{{preSec2|}}}}}} |
* [[{{{pre2link|{{{preSec2link|#{{{pre2|{{{preSec2}}} }}} }}} }}}|{{{pre2name|{{{preSec2name|{{{pre2|{{{preSec2}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{pre3|{{{preSec3|}}}}}} |
* [[{{{pre3link|{{{preSec3link|#{{{pre3|{{{preSec3}}} }}} }}} }}}|{{{pre3name|{{{preSec3name|{{{pre3|{{{preSec3}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{pre4|{{{preSec4|}}}}}} |
* [[{{{pre4link|{{{preSec4link|#{{{pre4|{{{preSec4}}} }}} }}} }}}|{{{pre4name|{{{preSec4name|{{{pre4|{{{preSec4}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{pre5|{{{preSec5|}}}}}} |
* [[{{{pre5link|{{{preSec5link|#{{{pre5|{{{preSec5}}} }}} }}} }}}|{{{pre5name|{{{preSec5name|{{{pre5|{{{preSec5}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{pre6|{{{preSec6|}}}}}} |
* [[{{{pre6link|{{{preSec6link|#{{{pre6|{{{preSec6}}} }}} }}} }}}|{{{pre6name|{{{preSec6name|{{{pre6|{{{preSec6}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{pre7|{{{preSec7|}}}}}} |
* [[{{{pre7link|{{{preSec7link|#{{{pre7|{{{preSec7}}} }}} }}} }}}|{{{pre7name|{{{preSec7name|{{{pre7|{{{preSec7}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{pre8|{{{preSec8|}}}}}} |
* [[{{{pre8link|{{{preSec8link|#{{{pre8|{{{preSec8}}} }}} }}} }}}|{{{pre8name|{{{preSec8name|{{{pre8|{{{preSec8}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{prebreak|}}} |{{{prebreak}}}</ul>}} <!--
-->{{#ifeq:{{{sym}}}|yes |
* [[#!$@|!$@]] }}<!--
-->{{#ifeq:{{{num}}}|yes |
* {{{0-9|[[#0–9|0–9]]}}} }}<!--
-->{{#ifeq:{{{symnum}}}|yes |
* [[#!–9|!–9]] }}{{#ifeq:{{{letters}}}|no||
* {{{a|[[#A|A]]}}}
* {{{b|[[#B|B]]}}}
* {{{c|[[#C|C]]}}}
* {{{d|[[#D|D]]}}}
* {{{e|[[#E|E]]}}}
* {{{f|[[#F|F]]}}}
* {{{g|[[#G|G]]}}}
* {{{h|[[#H|H]]}}}
* {{{i|[[#I|I]]}}}
* {{{j|[[#J|J]]}}}
* {{{k|[[#K|K]]}}}
* {{{l|[[#L|L]]}}}
* {{{m|[[#M|M]]}}}
* {{{n|[[#N|N]]}}}
* {{{o|[[#O|O]]}}}
* {{{p|[[#P|P]]}}}
* {{{q|[[#Q|Q]]}}}
* {{{r|[[#R|R]]}}}
* {{{s|[[#S|S]]}}}
* {{{t|[[#T|T]]}}}
* {{{u|[[#U|U]]}}}
* {{{v|[[#V|V]]}}}
* {{{w|[[#W|W]]}}}
* {{{x|[[#X|X]]}}}
* {{{y|[[#Y|Y]]}}}
* {{{z|[[#Z|Z]]}}}}} <!--
-->{{#ifeq:{{{nobreak|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes | |</ul>}}<!--
 
Custom links
 
-->{{#if:{{{custom1|{{{Sec1|}}}}}} |
* [[{{{custom1link|{{{Sec1link|#{{{custom1|{{{Sec1}}} }}} }}} }}}|{{{custom1name|{{{Sec1name|{{{custom1|{{{Sec1}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{custom2|{{{Sec2|}}}}}} |
* [[{{{custom2link|{{{Sec2link|#{{{custom2|{{{Sec2}}} }}} }}} }}}|{{{custom2name|{{{Sec2name|{{{custom2|{{{Sec2}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{custom3|{{{Sec3|}}}}}} |
* [[{{{custom3link|{{{Sec3link|#{{{custom3|{{{Sec3}}} }}} }}} }}}|{{{custom3name|{{{Sec3name|{{{custom3|{{{Sec3}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{custom4|{{{Sec4|}}}}}} |
* [[{{{custom4link|{{{Sec4link|#{{{custom4|{{{Sec4}}} }}} }}} }}}|{{{custom4name|{{{Sec4name|{{{custom4|{{{Sec4}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{custom5|{{{Sec5|}}}}}} |
* [[{{{custom5link|{{{Sec5link|#{{{custom5|{{{Sec5}}} }}} }}} }}}|{{{custom5name|{{{Sec5name|{{{custom5|{{{Sec5}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{custom6|{{{Sec6|}}}}}} |
* [[{{{custom6link|{{{Sec6link|#{{{custom6|{{{Sec6}}} }}} }}} }}}|{{{custom6name|{{{Sec6name|{{{custom6|{{{Sec6}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{custom7|{{{Sec7|}}}}}} |
* [[{{{custom7link|{{{Sec7link|#{{{custom7|{{{Sec7}}} }}} }}} }}}|{{{custom7name|{{{Sec7name|{{{custom7|{{{Sec7}}} }}} }}} }}}]] <!--
-->}} {{#if:{{{custom8|{{{Sec8|}}}}}} |
* [[{{{custom8link|{{{Sec8link|#{{{custom8|{{{Sec8}}} }}} }}} }}}|{{{custom8name|{{{Sec8name|{{{custom8|{{{Sec8}}} }}} }}} }}}]] <!--
-->}}<!--
 
"See also" etc links
 
-->{{#ifeq:{{{seealso}}}|yes |
* [[#See also|See also]] }}<!--
-->{{#ifeq:{{{notesfirst}}}|yes |
* [[#Notes|Notes]] }}<!--
-->{{#ifeq:{{{refs|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes |
* [[#References|References]] }}<!--
-->{{#ifeq:{{{notes}}}|yes |
* [[#Notes|Notes]] }}<!--
-->{{#ifeq:{{{further}}}|yes |
* [[#Further reading|Further reading]] }}<!--
-->{{#ifeq:{{{extlinks}}}|yes |
* [[#External links|External links]] <!--
-->}}
<!-- --></div><!--
 
End contents box
 
--></div><!--
 
-->{{#ifeq:{{{center|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes |
</div><!--
-->}}
|-
|
Line 216 ⟶ 95:
Before attempting to delete any articles, categories, etc., read [[Wikipedia:Deletion policy]], and the specific instructions for the type of page you want to delete.
'''Example:''' {{tl|cfd result}} {{cfd result}}
'''Example:''' {{tl|Old AfD}} {{Old AfD multi|page=Template messages/Examples|result='''keep'''}}
|-
|
Line 241 ⟶ 120:
|-
|
 
===[[Wikipedia:Template messages/Format|Formatting]]===
 
Line 287 ⟶ 167:
* Disputed content/length
|
'''Example:''' {{tltlg|AlphabetizeUnsorted list|reason{{=}}alpha}} {{Alphabetizeunsorted list|reason=alpha}}
'''Example:''' {{tl|List dispute}} {{List dispute}}
|-
|
 
===[[Wikipedia:Template messages/Maintenance|Maintenance]]===
 
Line 304 ⟶ 185:
Note that a message about "this page" may have an unintended effect on a page that includes the page with the message. If that applies, put the message inside noinclude tags, or be specific about which page the message refers to.
'''Example:''' {{tl|In use}} {{In use|category=no}}
'''Example:''' {{tl|Uncategorized}} {{Uncategorized}}
|-
|
Line 312 ⟶ 193:
* To be placed on top of the pages or sections which require merging.
|
'''Example:''' {{tl|merge}} {{merge|Wikipedia:Template messages/Merging|demospace=main}}
|-
|
 
===[[Wikipedia:Template messages/Moving|Moving]]===
 
* To be used for, during, and after proposing a move on [[Wikipedia:Requested moves#Requesting controversial and potentially controversial moves]].
|
'''Example:''' {{tl|disputed title}} {{disputed title}}
|-
|
Line 451 ⟶ 326:
|-
|
===[[Template:TaxoboxAutomatic taxobox/doc|TaxoboxAutomatic taxobox]]===
|
{{Automatic taxobox|taxon=Animalia}}
{{Taxobox|regnum=[[Animal]]ia}}
This template sets up a {{tl|Automatic taxobox}}, a table setting out the [[Biological classification]] ([[taxonomy (biology)|taxonomy]]) for a group of living things with a choice of over 160 parameters.
 
'''Example:''' {{tlp|TaxoboxAutomatic taxobox|2=regnumtaxon=[[Animal]]iaAnimalia}}
|-
Line 474 ⟶ 349:
|}
 
==Other namespaces==
{| border=1 cellspacing=0 cellpadding=3 align=center style="width: 100%;"
! style="width: 30%;" | Usage and links
! style="width: 70%;" | Description and examples
|-
|
===[[Wikipedia:Template messages/Category namespace|Category namespace]]===
* Births in years
* Books in years
* Deaths in years
* Works in years
* Categorization of people:
**Subjective category disclaimer
**Disputed categorisation
* Category headers
|
These notes are generally placed on top of [[Wikipedia:Categorization|category pages]].
 
For notes about the deletion and renaming of categories, see [[Wikipedia:Template messages/Deletion]].
 
Additional templates for category pages can be found in [[:Category:Category namespace templates]] and its subcategories.
 
For '''table of contents''' templates, see [[Wikipedia:Template messages/Compact tables of contents]].
 
'''Example:''' {{tlp|birth year category header|<nowiki>123|4</nowiki>}} '''What you would see:''' see the header at [[:Category:1234 deaths]].
'''Example:''' {{tlp|category diffuse|2=nocat=true}} {{Category diffuse|nocat=true}}
|-
|
===[[Wikipedia:Template messages/File namespace|File namespace]]===
* General
* Categorization
* Copy to Wikimedia Commons
* Creative Commons
* Deletion
* Featured content
* Format and quality
* Free image / Semi-free image usage
* GNU/GFDL images
* Government copyrights (UK, Canada, Poland, etc.)
* Non-free (copyrighted) images
* Public ___domain images
|
These are tags that may be placed on the [[Help:File page|file description pages]], i.e., the pages that open up when pictures in articles are clicked. This is not the complete list (at the moment). When tagging images, please see the full text list at [[Wikipedia:File copyright tags]].
'''Example:''' {{tl|ffd}} {{ffd}}
'''Example:''' {{tl|POV-map}} {{POV-map}}
|-
|
===[[Wikipedia:Template messages/Talk namespace|Talk namespace]]===
* General
* Archiving
* Biography
* Comments
* Discussion thread tags
* Expansion requests
* FAQ
* Featured and good articles
* Free images
* Peer review
* To do lists
* Translation requests
* WikiProject notices
|
These are [[Wikipedia:Template messages|template messages]] that can be used on [[Wikipedia:Talk page guidelines|talk pages]].
 
If you create a new or modify an old talk page template please first read the guideline about how they should look at [[Wikipedia:Talk page templates]].
'''Example:''' {{tlp|connected contributor|Jimbo Wales}} {{connected contributor|Jimbo Wales}}
'''Example:''' {{tl|resolved}} {{resolved}}
'''Example:''' {{tl|GA}} {{GA}}
|-
|
===[[Wikipedia:Template messages/Template namespace|Template namespace]]===
 
* Template documentation
* High-use and intricate
* Template talk page messages
|
These templates and message boxes are used on template pages and their subpages such as their /doc pages.
 
Additional templates for template pages can be found in [[:Category:Template namespace templates]] and its subcategories.
 
'''Example:''' {{tl|documentation subpage}}
{{mbox
| type = notice
| image = [[File:Edit-copy green.svg|40px]]
| text =
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}''' <small>(see that page for the {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template | {{ #if: {{SUBJECTSPACE}} | {{lc:{{SUBJECTSPACE}}}} | article }}}}}} itself)</small>.<br />It contains usage information, [[Wikipedia:Categorization|categories]], [[Help:Interlanguage links|interlanguage links]] and other content that is not part of the original {{ #if: {{{text2|}}} | {{{text2}}} | {{ #if: {{{text1|}}} | {{{text1}}} | {{ #ifeq: {{SUBJECTSPACE}} | {{ns:User}} | {{lc:{{SUBJECTSPACE}}}} template page | {{ #if: {{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}.
}}
|-
|
===[[Wikipedia:Template messages/User namespace|User namespace]]===
* General
* [[Wikipedia:Babel|Languages (Babel)]]
* [[Wikipedia:Userboxes/Large/Licensing|Licensing]]
* Open tasks
* Sockpuppet, blocked, talk page and inactive user alerts
* [[Template:User sandbox|User sandboxes]]
* [[Wikipedia:Userboxes|Userboxes]]
* Wikipedia Awards / Barnstars
|
'''Example:''' {{tl|user sandbox}}
{{Ombox
|type = notice
|image = [[File:Essay.svg|50px|link=]]
|text =
<div><!--
-->This is {{#if:|a|the}} user sandbox of '''[[{{NAMESPACE}}:{{BASEPAGENAMEE}}|{{BASEPAGENAME}}]]'''. <!--
-->A user sandbox is a subpage of the user's [[Wikipedia:User pages|user page]]. <!--
-->It serves as a testing spot and page development space for the user and is '''not an encyclopedia article'''. <!--
-->{{#ifeq: | all
| <!--blank-->
| <small>For a sandbox of your own, [{{fullurl:Special:MyPage/sandbox|action=edit&preload=Template:User_sandbox/preload}} create it here].</small>
}}<!--
-->{{#if:
| <p>This user's sandboxes: {{{list}}}</p>
}}<!--
-->{{#if:
| <!--blank-->
| <p><!--
-->Other sandboxes: <!--
-->[[Wikipedia:Sandbox|Main sandbox]] &#x7c; <!--
-->Tutorial sandbox 1, <!--
-->[[Wikipedia:Tutorial/Formatting/sandbox|2]], <!--
-->[[Wikipedia:Tutorial (Wikipedia links)/sandbox|3]], <!--
-->[[Wikipedia:Tutorial/Wikipedia links/sandbox|4]], <!--
-->[[Wikipedia:Tutorial/Keep in mind/sandbox|5]] {{!}} <!--
-->[[Template:Template sandbox|Template sandbox]]<!--
--></p>
}}<!--
--></div><!--
 
-->{{#if:
| <div style="font-size:x-small; text-align:center;">{{selectskin}}</div>
}}<!--
-->{{#ifeq: | no
| <!-- blank -->
| {{#if:
| <!-- blank -->
| <p>Writing an article and ready to request its creation? {{#if: {{REVISIONID}}
| <span class="afc-draft-submit-button">{{Clickable button 2|Submit your draft for review!|url={{fullurl:{{FULLPAGENAME}}|action=edit&section=new&preload=Template:AFC_submission/Subst&editintro=Template:AFC_submission/Subst/Editintro}}|class=mw-ui-constructive|style=line-height: 1.4em; margin-top: 3px; padding: 0 1.7em 0 1.7em}}</span>
| Save your work by pressing the "Save page" button below, and a button will appear here allowing you to submit your draft for review.
}}</p>
}}
}}<!--
-->{{#ifeq:yes|yes| __NOINDEX__ }}
 
}}
Line 498 ⟶ 516:
* Unaccepted practices, unilateral action against policies or guidelines
|
'''[[Wikipedia:WikiProject User warnings]]''': ''User talk templates'' are placed on users' talk pages to advise a user against actions that disrupt Wikipedia, to advise editors of common mistakes, or to place a standard boilerplate note at the namespace#Miscellanea|Miscellanea]]'''top (Pageof headers.a Imagespage. Discussions and editing. New user. Deletion notifications. Other notifications.)
 
'''[[Wikipedia:Template_messages/User_talk_namespace/Multi-level_templates|Multi-level warning templates]]'''
Blatant vandalism. General disruptive editing. Behavior in articles. Behavior towards editors. Adding promotions of objects or ideologies (also spam). Inserting factual inaccuracies and/or libel. Unaccepted practices, unilateral action against policies or guidelines.
'''Example:''' {{tl|Uw-vandalism1}} {{clear}} [[File:Information.svg|25px|alt=Information icon]] Hello, I'm [[User:Mrjulesd|Mrjulesd]]. I wanted to let you know that I undid one or more of [[Special:Contributions/Mrjulesd/sandbox|your recent contributions]] because it did not appear constructive. If you would like to experiment, please use the [[WP:sandbox|sandbox]]. If you think I made a mistake, or if you have any questions, you can leave me a message on [[User_talk:Mrjulesd|my talk page]]. Thanks!<!-- Template:uw-vandalism1 -->
'''[[Wikipedia:Template messages/User talk namespace/Single-level templates|Single-level templates]]''' (Advisories. Noticeboard notices. Warnings.)
 
'''[[Wikipedia:Template messages/User talk namespace/Blocks|Blocks]]'''.
 
'''[[Wikipedia:Template messages/User talk namespace#Foreign-language contributors|Foreign-language contributors]]'''.
 
'''[[Wikipedia:Template messages/User talk namespace#Miscellanea|Miscellanea]]''' (Page headers. Images. Discussions and editing. New user. Deletion notifications. Other notifications.)
'''Example:''' {{tl|usercomment}} {{usercomment}}
'''Example:''' {{tl|Talk header}} {{Talk header}}
Line 537 ⟶ 566:
{{Unicode templates|state=collapsed}}
{{Wikipedia template messages|expanded}}
 
[[Category:Wikipedia template administration]]