User:Jcreer/Misc: Difference between revisions
Line 179: | Line 179: | ||
{{Template:Ml}} | {{Template:Ml}} | ||
{{Template:Multiple image}} | |||
==Categories== | ==Categories== |
Revision as of 15:15, 29 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
Script error: No such module "Unsubst".
Jcreer/Misc |
---|
Jcreer/Misc | |
---|---|
— {{{type}}} — | |
{{{official_name}}} | |
Coordinates: |
{{{type}}}
Actually, this template's syntax is relatively simple, but templates that link to the above message should be intricate, i.e., complex, using less obvious techniques, [[wikt:esoteric|esoteric syntax, combining different techniques, used as parameter for other templates, build to function for a variety of calling instances, etc. The above template adds templates to [[:Category:Intricate templates.
Usage
This template is intended as a meta-template, that is, a template that's used when constructing other templates. It's not meant for use directly in an article. See Help:Infobox for information on how to craft infoboxes in general.
Usage is similar to {{navbox}}
, but with an additional distinction. Each row on the table can either be a "header", or it can have a label/data pair, or it can just be a data cell. These are mutually exclusive states so if you define a row to be both a header and a label/data pair, the label/data pair is overridden.
Note that if you want to insert an image elsewhere other than the top of the infobox, or insert other "freeform" data, using a row with just a "data" field allows for that sort of thing.
Parameters
Mandatory:
- name
- The template page name that the "view/discuss/edit" links should point to. You can use {{subst:PAGENAME}}.
- title
- A title to put in the titlebar at the top.
Optional content:
- image
- An image to display at the top of the template. Use full image syntax, for example [[Image:example.png|200px]]. Image is centered by default.
- caption
- Text to put underneath the image.
- header(n)
- Text to use as a header in row n.
- label(n)
- Text to use as a label in row n.
- data(n)
- Text to display as data in row n.
- below
- Text to put in the bottom cell. The bottom cell is intended for footnotes, see-also, and other such information.
Optional CSS styling:
- bodystyle
- Applies to the infobox table as a whole
- titlestyle
- Applies only to the title cell
- imagestyle
- Applies to the cell the image is in (including the caption)
- captionstyle
- Applies to the text of the caption
- headerstyle
- Applies to all header cells
- labelstyle
- Applies to all label cells
- datastyle
- Applies to all data cells
- belowstyle
- Applies only to the below cell
Making fields optional
A row with a label but no data is not displayed. This allows for optional infobox contents. To make a field optional, use a parameter that defaults to an empty string, like so:
| data5 = {{{population|}}}
For more complex fields with pre-formated contents that would still be present if a parameter was unset, you can wrap it all in a simple "if" statement to make the whole thing vanish when not used. Example:
| data5 = {{#if: {{{mass|}}} | {{{mass}}} kg}}
You can make headers optional in a similar way. If you want a header to appear only if one or more of the data fields that fall under it are filled, one could use the following pattern as an example of how to do it:
{{Infobox | name = {{subst:PAGENAME}} | title = Example of an optional header | header1 = {{#if: {{{item_one|}}}{{{item_two|}}}{{{item_three|}}} | Optional header }} | label2 = Item One | data2 = {{{item_one|}}} | label3 = Item Two | data3 = {{{item_two|}}} | label4 = Item Three | data4 = {{{item_three|}}} }}
The trick to this is that the "if" returns false only if there is nothing whatsoever in the conditional section, so only if all three of item_one, item_two and item_three are undefined will the if statement fail.
Examples
Image:example.png Caption for example.png | |
Header defined alone | |
---|---|
Data defined alone | |
All three defined (header) | |
Label and data defined (label) | Label and data defined (data) |
Below text | |
{{Infobox | name = Infobox/doc | title = Test Infobox | image = [[Image:example.png|200px]] | caption = Caption for example.png | header1 = Header defined alone | label1 = | data1 = | header2 = | label2 = Label defined alone | data2 = | header3 = | label3 = | data3 = Data defined alone | header4 = All three defined (header) | label4 = All three defined (label) | data4 = All three defined (data) | header5 = | label5 = Label and data defined (label) | data5 = Label and data defined (data) | below = Below text }}
For this example bodystyle = width:20em; and labelstyle = width:33%;
Label 1 | Data 1 |
---|---|
Label 2 | Data 2 |
Label 3 | Data 3 |
Header 4 | |
Label 5 | Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
Below text | |
Full blank declaration
(Note: the template currently handles up to 40 rows, only 20 are included here since infoboxes larger than that will be relatively rare. Just extend the numbering as needed.)
{{Infobox | name = {{subst:PAGENAME}} | bodystyle = | titlestyle = | imagestyle = | captionstyle = | headerstyle = | labelstyle = | datastyle = | belowstyle = | title = | image = | caption = | header1 = | label1 = | data1 = | header2 = | label2 = | data2 = | header3 = | label3 = | data3 = | header4 = | label4 = | data4 = | header5 = | label5 = | data5 = | header6 = | label6 = | data6 = | header7 = | label7 = | data7 = | header8 = | label8 = | data8 = | header9 = | label9 = | data9 = | header10 = | label10 = | data10 = | header11 = | label11 = | data11 = | header12 = | label12 = | data12 = | header13 = | label13 = | data13 = | header14 = | label14 = | data14 = | header15 = | label15 = | data15 = | header16 = | label16 = | data16 = | header17 = | label17 = | data17 = | header18 = | label18 = | data18 = | header19 = | label19 = | data19 = | header20 = | label20 = | data20 = | below = }}
See also
Lps
It has been suggested that [[:User:{{{1}}}|{{{1}}}]] be merged into this page or section. |
User:Jcreer/Misc]]
<div class="thumb tright" style="width:Expression error: Unrecognized punctuation character "{".px;">
<div style="float:left;margin:1px;width:Expression error: Unrecognized punctuation character "{".px;">
Categories
Modules: Mesh Module · Cartesian Grid Module · Scatter Module · Map Module · GIS Module · Particle Module
Models: ADCIRC · BOUSS-2D · CGWAVE · CMS-Flow · CMS-Wave · FESWMS · FVCOM · Generic Mesh Model · GENESIS · HYDRO AS-2D · PTM · SRH-2D · Steering · STWAVE · TABS · TUFLOW
- Pages with script errors
- Pages with ignored display titles
- Unknown
- Intricate templates
- Case preserving encode
- Interwikitmp-grp
- Cob
- Pages using deprecated templates
- Formatting templates
- High-risk
- High-use
- Upcoming feature
- Template documentation
- Ifequal
- Infobox Templates
- Template namespace templates
- Infobox templates
- Wikipedia metatemplates
- Templates using ParserFunctions
- Pp
- Merging
- Notice and warning templates
- Redirects from shortcuts
- Semi-protected from banned users
- Semantic markup templates
- %s