User:Jcreer/Misc: Difference between revisions
Line 139: | Line 139: | ||
{{Template:Used in system/testcases}} | {{Template:Used in system/testcases}} | ||
{{Template:V}} | |||
==Categories== | ==Categories== |
Revision as of 14:55, 25 September 2014
This page is for pages, templates, and categories I want to keep track of but don't have a place for them at the moment.
Pages
Tempates
- Template:Jcreer/Misc/sandbox
- http://en.wikipedia.org/wiki/Template:Multiple_issues
- http://en.wikipedia.org/wiki/Template:No_footnotes
A contributor has requested that an edit be made to this protected page. Once this request is completed by an administrator, please remove this template. You may wish to ask for the help of a Template:Editprotected/Volunteers |
This template is used on Wikipedia:Database reports/Templates transcluded on the most pages |
{{ombox
| type = style
| image =
| text =
This template is used on many pages, and changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them.
Contents |
---|
[[Category:{{{1}}}]]
%7B%7B%7B1%7D%7D%7D
Missing text
Template:Case preserving encode
{{ombox
| type = content
| text =
This template is used in system messages.
Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's [[User:Jcreer/Misc/sandbox|/sandbox or [[User:Jcreer/Misc/testcases|/testcases subpage, or in your own Wikipedia:Subpages#How to create user subpages|user space. The tested changes can then be added in one single edit to this template. Please discuss any changes at {{#if:|[[{{{2}}}]]|the [[User talk:Jcreer/Misc|talk page}} before implementing them.
}}
This is the {{case preserving encode}}
meta-template.
This template is used inside the templates tl|sec link, tl|sec link auto, and tl|sec link image. (And it might be used in other templates too.)
This template is used to URL-encode wiki page names for external links to other MediaWiki wikis. Since MediaWiki's own URL-encode functions don't work when making links to other MediaWiki wikis.
This template preserves the case of the first character, and it correctly preserves the namespace name.
Usage
Technical details
For a detailed explanation of the methods used in this template see the Template talk:Sec link#About ((sec link)), ((sec link auto)) and ((sec link image))|talkpage of {{sec link}}.
<noinlcude>
</noinclude>
Missing text
Template:Case preserving encode/doc
Missing text
Template:Case preserving encode/doc
Missing text
Template:Case preserving encode
Missing text
Template:Case preserving encode
This template is used on Wikipedia:Database reports/Templates transcluded on the most pages |
This template is a "subroutine" of {{Citation/core}}
used for conditionally making links for thechapter=
andtitle=
fields in a citation.
It is invoked as:
- {{Citation/make link
- | 1 = <value of IncludedWorkURL= or URL= or PMC= parameters>
- | 2 = <value of IncludedWorkTitle= or Title= parameters>
- }}
It uses the following algorithm:
- If the first parameter is empty, it returns the second parameter as plain text.
- If the first parameter is a URL, it returns the second parameter wrapped inside an external link to the first.
This "subroutine" is designed for {{Citation/core}}
and makes assumptions that may not be valid elsewhere.
Examples:
- "
{{Citation/make link||BBC News front page}}
" produces "BBC News front page". - "
{{Citation/make link|http://news.bbc.co.uk/|BBC News front page}}
" produces "BBC News front page".
When to use
This template should be used only on articles that have sources.
It may be used with {{Refimprove}}
or other check references templates. This template should not be used with XMS Wiki:Stub|stubs.
The most common correct use of this template is to identify an article that uses more than one major citation style (e.g., half the citations use Wikipedia:Manual of Style/Layout#Standard appendices and footers|ref tags]], and half are Wikipedia:Parenthetical referencing|parenthetical citations]]).
Do not place on articles containing all parenthetical citations! They're not as easy to spot with a quick glance as superscripted blue numbers, but they are an acceptable form of Wikipedia:Inline citation|inline citation]]. Wikipedia:Citing sources|Wikipedia's guidelines]] generally prohibit editors from changing from one acceptable form of inline citations to another, especially for reasons of personal preference or to make one article match the style in another article.
This template may be removed by anyone who fixes the problems with confusing citation styles.
How to use
To use this template, place {{Citation style|date=November 2024}}
on the article page or talk page in a location that may aid in conveying the message of the template. This template may be used within tl|Multiple issues and placement of this template on the article page is guided by Wikipedia:Template messages/Cleanup|Template messages/Cleanup]]. The following parameters may be specified for this template:
|date=
should preferably be used to categorize the article in a subcategory of :Category:Wikipedia references cleanup. This helps with addressing aged cleanup messages. (e.g.,{{Citation style|date=November 2024}}
.)|details=
may be used to provide more details on some of the aspects that should be addressed for the given article. (e.g.,{{Citation style|date=November 2024|details=In particular, citation titles should be specified}}
)|
A first unnamed parameter may be used to specify whether the template applies to the entire article or a section of the article (e.g.,{{Citation style|section|date=November 2024}}
. If not specified, the first unnamed parameter defaults to "article."
Operation
This template will categorise tagged articles into :Category:Wikipedia references cleanup and :Category:Articles covered by WikiProject Wikify.
This template is a Wikipedia:Manual of Style/Self-references to avoid|self-reference]].
This template should not be substituted.
Template data
TemplateDataHeader
This template generates a tag to indicate that the article needs additional inline citations.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date | date | The month and year that the need for citations is identified, such as 'June 2013'; may use '{{subst:DATE}}' template instead | String | optional |
Section | 1 | Specifies the region of the page to which this template applies, such as 'section' or 'table'. Omit if the template applies to the whole article. | String | optional |
Small | small | Any value (such as 'y') will result in the addition of 'See talk page for details.' to the tag | String | optional |
Details | details | A sentence explaining more about the problem. | String | optional |
Redirects
- {{Citationstyle}}
- {{Citation-style}}
- {{Cleanup-citation}}
- {{Cleanup-refs}}
See also
The following templates are useful in cases where there are some sources, but these are inadequate or insufficient
— Use only when a section contains zero inline citations.
- {{Refimprove}}
— The article needs either more or better sources.
- tl|Primary sources}} — See WP:Party and person]] for the differences between a primary and secondary source.
- tl|Third-party}} — The article needs WP:Independent sources]].
- {{No footnotes}}
— The article contains only Wikipedia:Citing sources#General references|General references]] rather than Wikipedia:Inline citation|Inline citations]]
- {{Format footnotes}}
— The inline citations are badly formatted.
- Wikipedia:Template messages/Sources of articles]]
- Wikipedia:Template messages/Cleanup/Verifiability and sources]]
"Error: no |title=
specified when using {{Cite web}}".
C
http://en.wikipedia.org/wiki/Template:Cleanup-refs
Script error: No such module "Error".
[[:Category:{{{1}}}]]
<noprint> </noprint>
There is currently missing text for this page.
<noprint> </noprint>
<noprint> </noprint>
|||||||||||||
<noprint> </noprint>
{{ombox
| image =
| text =
This is the template test case page for the sandbox of User:Jcreer. to update the examples.
If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page.
You can also use Special:Expanded Templates to examine the results of template uses.
You can test how this page looks in the different skins with these links:
}}Category:Template test cases
Documentation
---- {{documentation}} ---- {{documentation|Template:Documentation/testcases/test1}} ---- {{documentation|Template:Documentation/testcases/test2}} ---- {{documentation|content=This is in line documentation.}} ---- {{documentation|Template:Documentation/testcases/nodoc|content=Documentation.}} ---- {{documentation|Template:Documentation/testcases/test1|content=Documentation.}} ----
Default Documentation | |
---|---|
|
<noprint> </noprint>
The above documentation is transcluded from Template:Documentation/testcases/test1. (edit | history) Subpages of this page. |
The above documentation is transcluded from Template:Documentation/testcases/test2. (edit | history) Subpages of this page. |
This is in line documentation.
Subpages of this page. |
{{documentation|Template:Documentation/testcases/nodoc|content=Documentation.
Documentation.
The above documentation is transcluded from Template:Documentation/testcases/test1. (edit | history) Subpages of this page. |
Documentation/sandbox
---- {{documentation/sandbox}} ---- {{documentation/sandbox|Template:Documentation/testcases/test1}} ---- {{documentation/sandbox|Template:Documentation/testcases/test2}} ---- {{documentation/sandbox|content=This is in line documentation.}} ---- {{documentation/sandbox|Template:Documentation/testcases/nodoc|content=Documentation.}} ---- {{documentation/sandbox|Template:Documentation/testcases/test1|content=Documentation.}} ----
Default Documentation | |
---|---|
|
<noprint> </noprint>
The above documentation is transcluded from Template:Documentation/testcases/test1. (edit | history) Subpages of this page. |
The above documentation is transcluded from Template:Documentation/testcases/test2. (edit | history) Subpages of this page. |
This is in line documentation.
Subpages of this page. |
Documentation.
The above documentation is transcluded from Template:Documentation/testcases/nodoc. (edit | history) Subpages of this page. |
Documentation.
The above documentation is transcluded from Template:Documentation/testcases/test1. (edit | history) Subpages of this page. |
Usage
Test doc page.
unknown
Template:Documentation/testcases
Sandbox
Template:Jcreer/Misc is deprecated. |
{{{text}}} |
http://en.wikipedia.org/wiki/Template:Format_footnotes
Usage
This template simply returns the passed parameter. It can be used to exclude parts of a page (or template) in print versions. This works since it is a member of Category:Exclude in print.
Please note that the books functionality is still experimental. Hiding text in "PDF/book print" currently works different from hiding text for "normal printing". To hide something both in book and in normal printing, please use class="noprint" or {{noprint}}
.
Please also note that this template has an unresolved bug such that it hides edit links from any included sections, see Template talk:Hide in print#Hides edit link bug. This means that using this template may inconvenience wikipedia editors. However, without the Hide in print wrapper, any printed book or PDF will include possibly unwanted parts. Therefore, please avoid using this template to hide sections.
Examples
{{hide in print|text to be hidden}}
|
{{hide in print|1=text to be hidden that uses an = sign}}
|
- Edit section link bug
|
The above boxed example produces the below unboxed result
|
The above boxed example produces the below unboxed result
hides edit link bug2
If you can edit the section "hides edit link bug2" then a second possible hide link bug has been resolved. Otherwise, the bug is still present.
This template is obsolete.
<noprint> </noprint>
This is the {{high-risk}}
message box.
It is meant to be put at the top of the documentation for the most high-use (high-risk) templates. That is for templates used on 100,000 pages or more.
For templates used on 2000 - 100,000 pages we instead recommend using {{high-use}}
which has a softer wording.
Note! It is normal that some of the links in the message box are red.
Usage
The template can be used as is. But it can also take some parameters:
- First parameter is the number of pages. See Wikipedia:Database reports/Templates with the most transclusions to find out how many pages use a given template.
- Second parameter is the name of some other talk page if you want discussion to be made there instead. But a better option might be to redirect the talkpage of your template to that other talkpage.
Here are some examples:
{{high-risk| 300,000+ | Wikipedia talk:High-risk templates }}
This template is used on Wikipedia:Database reports/Templates transcluded on the most pages |
{{high-risk| 300,000+ }}
This template is used on Wikipedia:Database reports/Templates transcluded on the most pages |
{{high-risk| | Wikipedia talk:High-risk templates }}
This template is used on Wikipedia:Database reports/Templates transcluded on the most pages |
The full code for a /doc page top can look like this:
{{documentation subpage}} {{high-risk| 300,000+ }} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Technical details
The /sandbox and /testcases links are the standard names for such subpages. If those pages are created then the green /doc box for the template will detect them and link to them in its heading. For instance see the top of this documentation.
See also
- {{used in system}}
– For templates used in the Wikipedia user interface.
- {{high-risk}}
– For the most high-use (high-risk) templates.
- {{high-use}}
– For the slightly less high-risk templates.
- {{pp-template}}
– The protection template that usually is put on high-risk templates.
high-risk sandbox
<noprint> </noprint>
<noprint> </noprint>
See http://en.wikipedia.org/wiki/Template:High-use/sandbox
<noprint> </noprint>
See http://en.wikipedia.org/wiki/Template:High-use/testcases
<noprint> </noprint>
Please discuss changes on the talk page or request unprotection. You may use {{editprotected}}
on the talk page to ask for an administrator to make an edit for you.
This contains information about future features. |
This template automatically displays a documentation box like you are seeing now, of which the content is transcluded from another page. It is intended for pages which are transcluded in other pages, i.e. templates, whether in the template namespace or not.
Usage
Normal /doc
<noinclude>{{Documentation}}</noinclude>
Any /doc page
<noinclude>{{Documentation|Template:any page/doc}}</noinclude>
In-line content
<noinclude>{{Documentation|content=This is documentation.}}</noinclude>
In-line content with [view][edit] links
<noinclude>{{Documentation |1 = Template:any page/doc |content ={{Template:any page/doc|parameters}} }}</noinclude>
Best practice
This code should be added at the bottom of the template code, with no extra space before "<noinclude>
" (which would cause extra space on pages where the template is used). The parameter can be used as shown above to transclude an arbitrary documentation page.
Add categories and interwiki links to the documentation page inside <includeonly> </includeonly>
tags.
If the documentation page contains includeonly or noinclude tags as part of the documentation, replace the "<" with "<".
Customizing display
Overrides exist to customize the output in special cases:
{{documentation| heading = ...}}
− change the text of the "documentation" heading. If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.
Functions
If the documentation page doesn't exist, the "edit" link includes a preload parameter so that clicking it will pre-fill the edit form with the basic documentation page format.
Rationale
Use of this template allows templates to be protected where necessary, while allowing anyone to edit the documentation, categories, and interwiki links.
See also
{{ Documentation }} family
Documentation/testcases/test2
Documentation, template/testcases
Documentation subpage/testcases
Meta Wiki {{ Documentation }} ancestor
- tim|Documentation
Other similar templates
- tl|Usage of template for a similar documentation template, but redesigned and appears yellow instead of blue.
<noprint> </noprint>
- Note page has hidden operative code when viewed directly.
- This template is used to extend the parser function '#ifeq:' to multiple tests.
- The returned string is defined TRUE if any test pair of input parameters satisfies as if presented in any single #ifeq: test.
- The returned value is essentially TRUE OR FALSE— garbage characters OR a null (computer) string, respectively. Thus it is suitable for testing by a simple #if:-then-else conditional on the calling page.
- Applications are generally to display selective text for a set of pages, as in for example, a common usage page for templates, selected by specific page name cases.
- This template takes upto eight pairs of arguments (i.e 16 m:Help:Template|numbered parameters]]), tests the odd verus the even, and returns true if any pair matches using the parser function '#ifeq:'.
- This can be used to test for criteria which may be satisfied by some combination of mulitple magic words, such as {{SITENAME}} or {{PAGENAME}}.
- ifexist:Category:Miscellaneous templates|Category:Miscellaneous templates|Jcreer/Misc
- ifexist:Category:if-then-else templates|Category:if-then-else templates|Jcreer/Misc
<noprint>
</noprint>
<noprint> </noprint>
<noprint> </noprint>
http://en.wikipedia.org/wiki/Template:Inconsistent_citations
Categories
- Pages with script errors
- Unknown
- Intricate templates
- Case preserving encode
- Interwikitmp-grp
- Cob
- Pages using deprecated templates
- Formatting templates
- High-risk
- High-use
- Upcoming feature
- Template documentation
- Ifequal
- Notice and warning templates
- Redirects from shortcuts
- Semi-protected from banned users
- Semantic markup templates
- %s