User:Jcreer/Misc: Difference between revisions
(→Pages) |
|||
Line 5: | Line 5: | ||
*[[BugFixes]] | *[[BugFixes]] | ||
*[[ReleaseXML]] | *[[ReleaseXML]] | ||
*{{Template:Jcreer/Misc/sandbox}} | |||
==Tempates== | ==Tempates== |
Revision as of 14:58, 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
Text is missing from this page.
<noprint> </noprint>
When to useAdd this to articles that need help from other editors because they sound like Advertising|advertisement]]s. For example, they may tell users to buy the company's product, provide price lists, give links to online sellers, or use unencyclopedic or meaningless buzzword]]s. The advert tag is for articles that are directly trying to sell a product to our readers. Don't add this tag simply because the material in the article shows a company or a product in an overall positive light or because it provides an encyclopedic summary of a product's features. How to use
Add a date parameter like this: tlx|Advert|date=November 2024}}. A bot will do this for you later, if you didn't. This template adds articles to :Category:Articles with a promotional tone]] See also
<noprint> </noprint> <noprint> </noprint>
It is used to build article message box templates such as tl|underlinked. It offers several different colours, uses default images if no image parameter is given, and has some other features. Common parametersThe box on the right shows the most common parameters that are accepted by tl|ambox. The purpose of each is described below.
nameThe name parameter specifies the name of the template, without the Template namespace prefix. For example tl|underlinked specifies para|name|Underlinked. This parameter should be updated if the template is ever moved. The purpose of this parameter is twofold:
substThe subst parameter allows the meta-template to detect whether the template has been incorrectly substituted, and give an appropriate warning. It will also add such pages to :Category:Pages with incorrectly substituted templates. Just copy the code exactly as it appears in the box. smallThe small parameter should be passed through the template, as this will allow editors to use the small format by specifying
Otherwise the standard format will be produced:
Other variations:
typeThe type parameter defines the colour of the left bar, and the image that is used by default. The type is chosen not on aesthetics but is based on the type of issue that the template describes. The seven available types and their default images are shown below. {{Ambox |
nocat=true | type = speedy | db-g1 and {{[[Template:db-g3. | db-g3.
]]}}
|
nocat=true | type = delete | afd and {{[[Template:prod. | prod.
]]}}
|
nocat=true | type = content | POV and {{[[Template:globalize. | globalize.
]]}}
|
nocat=true | type = style | cleanup and {{[[Template:underlinked. | underlinked.
]]}}
|
nocat=true | type = notice | current and {{[[Template:inuse. | inuse.
]]}}
|
nocat=true | type = move | text = type=move – Merge, split and transwiki proposals, such as {{[[Template:split and copy to wiktionary. | split and copy to wiktionary.
]]}}
If no type parameter is given the template defaults to imageYou can choose a specific image to use for the template by using the image parameter. Images are specified using the standard syntax for inserting files in Wikipedia (see Wikipedia:Manual of Style/Images#How to place an image.) Widths of 40-50px are typical. For example:
{{POV|date=April 2013
{{underlinked|date=April 2013 Please note:
sectMany article message templates begin with the text This article ... and it is often desirable that this wording change to This section ... if the template is used on a section instead. Other possibilities include This list ... and This biographical article ... To facilitate this functionality, pass If using this feature, be sure to remove the first two words ("This article") from the template's text, otherwise it will be duplicated. issue and fixThe issue parameter is used to describe the issue with the article. Try to keep it short and to-the-point (approximately 10-20 words) and be sure to include a link to a relevant policy or guideline. The fix parameter contains some text which describes what should be done to improve the article. It may be longer than the text in issue, but should not usually be more than two sentences. When the template is in its compact form (when placed inside {{multiple issues}} ) or small form (when using defines
When used stand-alone it produces the whole text: Script error: No such module "Unsubst". But when used inside {{multiple issues}} or with
Script error: No such module "Unsubst". Script error: No such module "Unsubst". datePassing the date parameter through to the meta-template means that the date that the article is tagged may be specified by an editor (or more commonly a WP:bot|bot). This will be displayed after the message in a smaller font. Passing this parameter also enables :Category:Wikipedia maintenance categories sorted by month|monthly cleanup categorisation when the cat parameter is also defined. catThis parameter defines a monthly cleanup category. If
For example, {{no footnotes}} specifies allThe all parameter defines a category into which all articles should be placed. Other parametersThe box on the right shows all possible parameters for this template. However, it is not recommended to copy this, because it will never be required to use all parameters simultaneously.
imagerightAn image on the right side of the message box may be specified using this parameter. The syntax is the same as for the image parameter, except that the default is no image. smallimage and smallimagerightImages for the small format box may be specified using these parameters. They will have no effect unless classA custom Cascading Style Sheets|CSS class to apply to the box. style and textstyleOptional CSS values may be defined, without quotation marks
text and smalltextInstead of specifying the issue and the fix it is possible to use the text parameter instead. Customised text for the small format can be defined using smalltext. Additional categorisation parameters
Technical notes
{{Ambox | text = <div> Equal sign = and a start and end brace { } work fine as they are. But here is a pipe | and two end braces <nowiki>}}</nowiki>. And now a pipe and end braces <nowiki>|}}</nowiki>. </div> }}
or {{ambox/small}} which holds most of the code for {{Ambox}} , while {{Ambox}} itself does parameter preprocessing.
, {{Imbox}} , {{Cmbox}} and {{Ombox}} their talk pages and related pages might also contain more details. See alsoThere are seven meta-templates in this family:
– For article message boxes.
– For category message boxes.
– For file (image) page message boxes.
– For header and footer message boxes.
– Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.
– For other pages message boxes.
– For talk page message boxes. Closely related meta-templates:
– For article stub message boxes.
– For disambiguation and set index message boxes.
– A simplistic, full-width box intended to surround important messages or notices, with an ivory background by default. Other pages:
|
|
·
X0
X1
See en.wikipedia.org/wiki/Template:X4
<noinclude>Text 1</noinclude> / <includeonly>Text 2</includeonly>
Text is missing from this page.
This page is missing text.
|
List
s. By default, all lists are collapsed.
|
type = style | image = | text =
This template is used on 33,000+ 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.
The quick Template:Color can be used to add a span of text with any given text color, such as an RGB hex code, #C9E72A, or any of the web colors: red, blue, green, moccasin, or darkorchid, etc. The foreground text color is set, but to reset the background color, see: Template:Bg|bg. Usage
For example:
Wikitext generated: <span style="color:{{{1|}}}">{{{2|}}}</span> See: Web colors, for a list of colors. A misspelled color name will not be reported, but will cause the text to remain as black text. Performance considerationsThe template merely uses a span tag:
PurposeThis template gives an equation passed in as numbered parameter {{{1}}} a number {{{2}}}, which is displayed in the far right column. This also creates an anchor (#equation-{{{2}}}), which can be adjusted with the Usage{{Equation|1=e=m c^2\,|2=1}} {{Equation|1=a^2+b^2=c^2\,|2=2}} {{Equation|1=X(t)= V_0 * t + A*t^2\,|2=3}} results in: (1) (2) (3)
) won't work in this template, use LaTeX syntax instead.
style="background: #ececec; color: black;" class="table-na" | N/A
Page for test cases.
message box. It is meant to be put at the top of the documentation for templates that are used in the Wikipedia user interface. Note! It is normal that some of the links in the message box are red. UsageThe template can be used as is. But it can also take some parameters:
Here are some examples: {{used in system| in many system messages | Wikipedia talk:High-risk templates }} {{ombox |
type = content | text =
This template is used in many system messages. {{used in system| in many system messages }} {{ombox |
type = content | text =
This template is used in many system messages. {{used in system| | Wikipedia talk:High-risk templates }} {{ombox |
type = content | text =
This template is used in system messages. The full code for a /doc page top can look like this: {{documentation subpage}} {{used in system| in many system messages }} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> Technical detailsThe /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
– For templates used in the Wikipedia user interface.
– For the most high-use (high-risk) templates.
– For the slightly less high-risk templates.
– The protection template that usually is put on high-risk templates.
|
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
Script error: No such module "Unsubst".
Categories
- Pages with script errors
- Advert
- Infobox Templates
- Text color templates
- Unknown
- Template namespace templates
- 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