User:JimsMaher/Sandbox
NOTE TO SELF: ALWAYS REMEMBER THAT THIS IS AN OPEN FORUM. BACKUP THE GOOD STUFF.
The following is a working sandbox of useful code bits.
Revealing code
[edit]First, we want to see code without enabling it. Wikiformatification (highly advanced technobabble) offers several options for casting just such enchantments upon these cogs, slowing the code to a halt like an episode of How Do They Do It? or How It's Made.
- Show tags without enabling it:
<nowiki> tags display as plain text between the 'nowiki' tag </nowiki>
- Highlight code with:
<code> highlight the code using the 'code' tag </code>
- Code column partially preformatted with pre tags:
Code | Produces | |
---|---|---|
<pre>[[article]]</pre> |
[[article]] |
|
[[article]] |
article | |
<code>[[article]]</code> |
article
| |
<nowiki>[[article]]</nowiki> |
[[article]] | |
<nowiki><pre>[[article]]</pre></nowiki> |
<pre>[[article]]</pre> | |
<pre><nowiki>[[article]]</nowiki></pre> |
[[article]] | |
<code><pre>[[article]]</pre></code> |
| |
<pre><code>[[article]]</code></pre> |
<code>[[article]]</code> | |
<code><nowiki>[[article]]</nowiki></code> |
[[article]]
| |
<nowiki><code>[[article]]</code></nowiki> |
<code>[[article]]</code> | |
<pre><code><nowiki>[[article]]</nowiki></code></pre> |
<code>[[article]]</code> | |
<pre><nowiki><code>[[article]]</code></nowiki></pre> |
<code>[[article]]</code> | |
<code><pre><nowiki>[[article]]</nowiki></pre></code> |
| |
<nowiki><pre><code>[[article]]</code></pre></nowiki> |
<pre><code>[[article]]</code></pre> | |
<code><nowiki><pre>[[article]]</pre></nowiki></code> |
<pre>[[article]]</pre>
| |
<nowiki><code><pre>[[article]]</pre></code></nowiki> |
<code><pre>[[article]]</pre></code> |
- And the code of the code of the code looks like this:
<pre><nowiki><code><pre>[[article]]</pre></code></nowiki></pre>
- Voilà!
- Ampersand gt Semicolon → >
- Ampersand lt Semicolon → <
- The code for symbol-codes won't display under any of the preceding conditions.[citation needed] It's recursively reclusive.[1]
Tables and columns
[edit]Code | Produces | |
---|---|---|
http://en.wikipedia.org |
http://en.wikipedia.org | |
[http://en.wikipedia.org Title or description] |
Title or description |
Citations
[edit]Include as much information as is definitively available (if you're not sure, don't guess) and at the very least include the URL for web, the title and author for books, journals or news. Be aware that dates included on sites such as YouTube are often not the actual date of release and should not be included as such; IMDb has more reliable information in that regard. Be confident that the info you include is legitimate and preferably from a source that won't be taken down from the internet in the near future, and avoid questionable sites in general.
- Concerning likely soon-to-be dead links, archive ephemeral (though trustworthy) pages.
- ... Internet Archive's WayBack Machine ... Wikipedia:Using the Wayback Machine
- ... WebCitation's WebCite ... Wikipedia:Using WebCite
<ref> {{Cite web | last = | first = | authorlink = | coauthors = | title = | work = | publisher = | date = | url = | format = | doi = | accessdate = }} </ref> |
<ref> {{Cite book | last = | first = | authorlink = | coauthors = | title = | publisher = | date = | location = | pages = | url = | doi = | id = | isbn = }} </ref> |
<ref> {{Cite journal | last = | first = | authorlink = | coauthors = | title = | journal = | volume = | issue = | pages = | publisher = | location = | date = | url = | issn = | doi = | id = | accessdate = }} </ref> |
<ref> {{Cite news | last = | first = | coauthors = | title = | newspaper = | location = | pages = | language = | publisher = | date = | url = | accessdate = }} </ref> |
<ref> {{Cite video | people = | title = | medium = | publisher = | location = | date = }} </ref> |
Practically speaking, this one gets used more often, deleting unnecessary or unavailable items:
<ref>{{Cite web |last= |first= |title= |work= |publisher= |url= |date= |accessdate= }}</ref> |
What's a DOI? Digital Object Identifier
- The DOI system is now an ISO standard for "assigning a unique international identification code to objects for use on digital networks".[2]
Note: Don't put links in section titles.
References
[edit]- ^ Lastname, Firstname (Date). "Title" (Format). Work. Publisher. Retrieved Access Date.
{{cite web}}
: Check date values in:|accessdate=
and|date=
(help); Unknown parameter|coauthors=
ignored (|author=
suggested) (help) - ^ "Digital object identifier (DOI) becomes an ISO standard". Press Release. International Organization for Standardization. 2012-05-10. Retrieved 2012-05-17.
{{reflist}} |
By default, there's one column. Also, the R in reflist doesn't need to be capitalized. Moreover, Wiki format is generally indifferent to capitalization ... except in the case of symbol-codes (i.e. the gt in "ampersand gt semicolon" must be lower-case, > won't raster the same as >) |
{{Reflist|3}} |
This reference list would have three columns, supposing there were at least three references to list. |
<div class='references-small'> <references/> {{Refbegin}} {{Refend}} </div> |
Forget this stuff here ... it shouldn't be used when templating a new article.
Just use |