Checking how {{&}} behaves—like this.
Transcluding keeps —
displaying as code. Substituting inserts the actual dash.
Trying {{improve documentation}} with a wikilink in the reason parameter.
![]() | This template's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. (Reason: something including a wp:link and a to see if they get processed.) Please help to expand and improve it. |
This information here will not show until you click the "show" button. It's then hidden by collapsing the section when you press "hide" button.
Adding this purely to get the app to show the current version. So far, it absolutely refuses even if I purge the page.
Signature
editThis seems to need some text before it to display at a normal size.
Musiconeologist • talk • contribs
Pronunciations
editTesting whether IPA that isn't yet displaying correctly in an article is in fact correct. UK: /ˈʃrɜːdɪŋə, ˈʃroʊdɪŋə/—It isn't. The <əː> is appearing as a reversed <ε> instead.
Not working in a article, at least in the app: pronounced [ˈuːɐ̯ʃpʁaːxə] ⓘ
Templates
edit{{tnull}} displays the code for a "template" {{like this}}
Template syntax
edit- Parameters go in triple braces {{{}}}
- Unnamed parameters are referred to by number
- Parameter with no value set displays as its own code, so isn't empty
- Default value goes after the name and a pipe character
- A parameter can only test as false if explicitly given an empty value
Short descriptions test template
editTemplate is {{User:Musiconeologist/sdtest}}
Here is a call to it:
- Text in code section of template, before generated SD.
- Text in code section of template, after generated SD.
And here is it is substituted:
- Text in code section, before generated SD.
- Text in code section, after generated SD.
Horizontal rule
editTemplate is at {{hr}}
{{hr}}
inserts<hr />
{{hr|height}}
inserts<hr style="height:height px" />
The default thickness is 1 pixel.
Fractional thicknesses are possible. Here are 0.5, 0.7, 1 and 1.4:
Checking the default really is 1px by alternating between {{hr}} and {{hr|1}}:
0.8, default, 1.33:
Template code
editThe template code itself (minus line breaks) is
{{#if:{{{1|}}}|<hr style="height:{{{1}}}px" />|<hr />}}
in which
{{{1}}}
is the first supplied parameter{{{1|}}}
sets its default value to an empty string- an empty string counts as false for the purposes of
#if:
- the
#if:
syntax is
{{#if:x |then a |else b}}
.
Time related
editAs of February 2023[update], I haven't used the {{as of}}[1] template before. I see it capitalises the phrase regardless of whether its name is capitalised, but |alt=
[2] can be used before the date to rephrase it.
On March 20th, 2024 I am [needs update] trying out the {{update after}} template.
Test template
editTemplate created at {{user:Musiconeologist/temptest}}. Getting that to display required the {{tlu}} template.
Here is the output with a parameter value, an empty value, and no value:
- This is a fairly useful test template which calls itself in the noinclude section.
- This is a test template which calls itself in the noinclude section.
- This is a defaultly described test template which calls itself in the noinclude section.
Now treating |verb=
the same way:
- This might be a test template which calls itself in the noinclude section.
- This a test template which calls itself in the noinclude section.
- This is a test template which calls itself in the noinclude section.
Testing |tense=
- This is a test template which calls itself in the noinclude section. This sentence was in past tense as set by
|tense=
past
.
- This is a test template which calls itself in the noinclude section. This sentence is in present tense as set by
|tense=
present
.
- This is a test template which calls itself in the noinclude section. This sentence will be in future tense as set by
|tense=
future
.
Calling the template as {{../temptest}}
to avoid typing my username:
- This is a relatively addressed test template which calls itself in the noinclude section.
Parser functions
editThese look like templates but aren't. The colon gives it away.
Gender
edit- To refer to a user by their entered gender, use
{{gender:user|m_out|f_out|u_out}}
. ''{{gender:Musiconeologist|he is|she is|they are}}''
gives he is.- Substituting works as well. (In fact, I think
{{subst:}}
is itself a parser function really, not a template.)
Table tryout
editFor the cosine error article. I need some padding between the columns.
Angle | Error | Equivalent to |
10° | 1.5% | = 1 part in 66 |
1° | 0.015% | = 1 part in 6,600 |
0.1° | 0.00015% | = 1 part in 660,000 |
0.01° | 0.0000015% | = 1 part in 66,000,000 |
Long line of code
editSoft spaces before |
characters:
[[File:Name|Type
.|Border |Location |Alignment |Size |link=Link |alt=Alt |page=Page |lang=Langtag |Caption]]
Soft spaces after |
characters:
[[File:Name|Type|
.Border| Location| Alignment| Size| link=Link| alt=Alt| page=Page| lang=Langtag| Caption]]
Conclusion: breaking after the |
is far better. Each line looks incomplete, and each item is visibly intact.
Picture
editFor the English Havmannen article.
Links and linking
edit- Talk page section about TemplateData heading style
Various tryouts
edit- A link to Wikipedia:content removal#reasons
- and one to Wikipedia:content removal#Reasons
to see whether the capitalisation matters. (It does: the lowercase one doesn't find the anchor.)
Links for use on Norwegian talk page: en:å#Origin and en:talk:å#Pronunciation of Å
Link to Havmannen photo and waterfront photo anchors above
Link to Havmannen image page
Section link to § Citation formats below, using {{Section link}}
External link to a section of my user page. To link to a section, add the same code as for a wikilink, but with spaces changed to underscores.
Relative link to User:Musiconeologist/sdtest, using [[../sdtest]]
. (Wikipedia calls relative links subpage links.)
Linking between Wikipedias
editThis should link to a Norwegian article and then to the English one. The code for the Norwegian version has :nb:
before the usual link. Pleased to see it also works with
- Norwegian user page, via
:nb:Bruker:
- Danish user page, via
:da:Bruger:
- Swedish user page, via
:sv:Användare:
- Global user page on Meta, via
:m:User:
.
Other pages
edit- User:Musiconeologist/sandbox (this page)
- User:Musiconeologist/draft
- User:Musiconeologist/proto-
- User:Musiconeologist/temptest
- User:Musiconeologist/sdtest
- User:Musiconeologist/makesd
- User:Musiconeologist/common.js
Link to an automatically generated list of them: Special:Prefixindex/User:Musiconeologist
Citation formats
edit- Question about foreign language bibliographies.
- Book with translated title.[3]
- A reference I need to add to an article.[4]
- OED buckyball entry.[5]
- OED gender entry.[6]
- Tricky ref citing two sections of an online document: use
|at=
rather than|page=
to allow free description of a ___location in the document.[10]
- Organ ref [11]
References
edit- ^ To display a template like this, use {{tl}}.
- ^ To display code, use
<code></code>
. To stop it being treated as markup, put<nowiki></nowiki>
inside. - ^ Lastname, Firstname (1981), Title [Translated title] (2nd ed.), Copenhagen: Gyldendal, p. 123
- ^ "NIST Gravimetric Hygrometer for Verification of NIST Humidity Standards and for Research on Humidity Properties". National Institute of Standards and Technology. Retrieved 16 February 2023.
- ^ "Buckyball". Oxford English Dictionary. Oxford University Press. Retrieved 13 April 2024.
- ^ "gender". Oxford English Dictionary. Oxford University Press. Retrieved 23 Jan 2025.
- ^ a b The code for reusing the reference is
<ref name= />
. - ^ "Bovine TB; Coral sunscreen; Space junk". BBC Inside Science. BBC. Retrieved 6 January 2025.
- ^ "Ancient horses; Uncertainty; How cutlery affects taste". Material World. BBC. Retrieved 11 January 2025.
- ^ "Hazeltine Research, Inc. v. Dage Elec. Co". Casetext. Section 13 and Prior knowledge section. Retrieved 7 January 2025.
- ^ "Saint Peter's Roman Catholic Church". The Organ List. Hendrickson Op. 53 entry. Retrieved January 29, 2025.
Something else
editTo see what happens if the references aren't at the end. (Answer: everything works fine.)