Jump to content

User:Pdfpdf/Tools and references

From Wikipedia, the free encyclopedia

Useful stuff:

Tools and references

[edit]

Multiple columns - several methods

[edit]

multicol

[edit]

{{multicol}}xxx{{multicol-break}}xxx{{multicol-break}}xxx{{multicol-end}}

Templates

[edit]

Inside Infobox

[edit]
  • "{{Birth date and age|df=yes|1999|12|31}}" results in " (1999-12-31) 31 December 1999 (age 24)"
  • "{{Death date and age|1951|5|27|1884|1|24|df=yes}}" results in "27 May 1951(1951-05-27) (aged 67)" (Thomas Blamey)

Dab Headers

[edit]
  • {{for|XXX|YYY}} results in
  • {{Otheruses}} results in
  • {{About||the acronym|VC|other uses|Victoria Cross (disambiguation)}} results in
  • Parameters for Gallery:
    • {{Gallery |title= |width=150 |height=150 |lines=3 ...

In-line

[edit]
+ ? Note Bene!
{{how}} - [how?] {{how?}} - [how?]
{{what}} - [clarification needed] {{what?}} - [clarification needed]
{{when}} - [when?] {{when?}} - [when?]
{{where}} - [where?] {{where?}} - [where?]
{{why}} - [why?] {{why?}} - [why?]
{{who}} - [who?] {{who?}} - [who?]
{{by who}} - [by whom?] {{by who?}} - [by whom?] who => whom
{{whom}} - [according to whom?] {{whom?}} - [according to whom?] whom => according to whom
{{by whom}} - [by whom?] {{by whom?}} - [by whom?]
{{to whom}} - [to whom?] {{to whom?}} - [to whom?]
{{cn}} - [citation needed] {{cn?}} - {{cn?}}
{{dn}} - [disambiguation needed] {{dn?}} - {{dn?}}
{{ref}} - [1] {{ref?}} - [citation needed] +? gives very different result
{{vague}} - [vague] {{vague?}} - [vague]
{{verify}} - see below {{verify?}} - {{verify?}}
{{Nonspecific}} - [not specific enough to verify] {{Nonspecific?}} - {{Nonspecific?}}
{{Failed verification}} - [failed verification] {{Failed verification?}} - {{Failed verification?}}

Create boxes

[edit]




Citations

[edit]
  • "{{Australian Dictionary of Biography |last= Jones |first= Philip |year= 1990 |id= A120339b |title= Unaipon, David (1872 - 1967) |accessdate= 2009-01-13}}" results in
    Jones, Philip (1990). "Unaipon, David (1872 - 1967)". Australian Dictionary of Biography. Canberra: National Centre of Biography, Australian National University. ISBN 978-0-522-84459-7. ISSN 1833-7538. OCLC 70677943. Retrieved 2009-01-13.

Stolen from User:Smallbones

<ref name="">{{cite news 
  | last =
  | first =
  | coauthors =
  | title =
  | work =
  | pages =
  | language =
  | publisher =
  | date =
  | url =
  | accessdate =  }}</ref>
<ref name="">{{cite journal
  | last =
  | first =
  | authorlink =
  | coauthors =
  | title =
  | journal =
  | volume =
  | issue =
  | pages =
  | year =
  | url =
  | doi =
  | id =
  | accessdate =  }}</ref>
<ref name="">{{cite web
  | last =
  | first =
  | authorlink =
  | coauthors =
  | title =
  | work =
  | publisher =
  | year =
  | url =
  | format =
  | doi =
  | accessdate =  }}</ref>
<ref name="">{{cite book
  | last =
  | first =
  | authorlink =
  | coauthors =
  | title =
  | publisher =
  | year =
  | location =
  | pages =
  | url =
  | doi =
  | id =  }}</ref>
<ref name="">{{cite video
  | people =
  | title =
  | medium =
  | publisher =
  | location =
  | date =  }}</ref>

Categories

[edit]
  • {{DEFAULTSORT:Begg, Raymond}}
  • [[Category:1989 births]]
  • [[Category:1983 deaths]]
  • [[Category:Living people]]
  • {{lifetime|1898|1983|Begg, Raymond}}

"The other neat thing about "lifetime" is that if the death date is blank it adds [[Category:Living people]]. PamD (talk) 08:34, 1 February 2009 (UTC)"

wikitable sortable

[edit]

See: Help:Table | Help:Table#Sorting | Help:Sorting | Template:Sortname | Template:Sortname/doc | {{sortname}} | {{sort}} | {{dts}} | {{nts}}

{| class="wikitable sortable"
!Name!!Date of<br>action !!Conflict
!class=unsortable | U1
!Unit||Place of action||Location of<br>medal
!class=unsortable | U2 || #<br>
|-
|{{sortname|Charles|Anderson|Charles Groves Wright Anderson}}||align=center|1942||Second World War||zzz||2/19th Battalion||Muar River, Malaya||AWM||aaa||align=right|1
|-
|{{sortname|Thomas|Axford}}||align=center|1918||First World War||yyy||16th Battalion||Hamel Wood, France||AWM||bbb||align=right|2||<-- deliberate "mistake"
|-
|{{sortname|Peter|Badcoe|Peter John Badcoe}}||style="background:#e3d9ff;" align="center"|1967*||Vietnam War||xxx||[[Australian Army Training Team]]||Huong Tra, Vietnam|| South Australian<br>Museum<ref>{{cite web|url=http://www.samuseum.sa.gov.au/page/default.asp?site=1&id=1761|title=Major Badcoe's Victoria Cross and Yandruwandha Breast Plate Exhibits|accessdate=2008-10-07|publisher=South Australian Museum}}</ref>||ccc||3<--||^<-- deliberate
|}
<references/>
Name Date of
action
Conflict U1 Unit Place of action Location of
medal
U2 #
Charles Anderson 1942 Second World War zzz 2/19th Battalion Muar River, Malaya AWM aaa 1
Thomas Axford 1918 First World War yyy 16th Battalion Hamel Wood, France AWM bbb 2
Peter Badcoe 1967* Vietnam War xxx Australian Army Training Team Huong Tra, Vietnam South Australian
Museum[1]
ccc 3<-- ^
.
  1. ^ "Major Badcoe's Victoria Cross and Yandruwandha Breast Plate Exhibits". South Australian Museum. Retrieved 2008-10-07.

wikitable

[edit]
{| class="wikitable"
! col 1 !! col 2 !! col 3 !! col 4
|-
| r1c1 || r1c2 || r1c3 || r1c4
|-
| colspan="2" | r2c1
| rowspan="3" | r2c3 || r2c4
|-
| rowspan="2" | r3c1 || r3c2 || r3c4
|-
| r4c2
| rowspan="2" | r4c4
|-
| r5c1
| colspan="2" | r5c2
|-
| r6c1 || r6c2 || r6c3 || r6c4
|}
col 1 col 2 col 3 col 4
r1c1 r1c2 r1c3 r1c4
r2c1 r2c3 r2c4
r3c1 r3c2 r3c4
r4c2 r4c4
r5c1 r5c2
r6c1 r6c2 r6c3 r6c4

wiki table in show/hide section?

[edit]

{{helpme}} I'm trying to put a wiki table in a show/hide section. I am not having any success. Here's what I'm doing:

{{hidden|test|
:a
:b
:c
{| class="wikitable"
|-
|row 1
|-
|row 2
|-
|row 3
|}
}}

Here's what's happening:

test
a
b
c
{

Can anyone tell me what I'm doing wrong please? Thanks, Pdfpdf (talk) 12:26, 10 March 2009 (UTC)

I'm just looking into your question, and will answer here very soon. --  Chzz  ►  12:30, 10 March 2009 (UTC)

OK; the two templates don't play well together. One solution would be to use HTML table syntax, like this;

{{Hidden|Title text here|
<table>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
</tr>
</table>
}}
Title text here
1 2
3 4
5 6

For more info, see Help:Table#Other table syntax

Hope that answers your question, if not please put another helpme on here.

Cheers, --  Chzz  ►  12:46, 10 March 2009 (UTC)

Replied on my talk. --  Chzz  ►  13:07, 10 March 2009 (UTC)


Hi. This is actually a two part problem.

  1. The {{hidden}} template requires two attributes: header and content. You may omit the titles (i.e., |header= and |content= are not required) unless there is an equals symbol in the content, which you have: class="wikitable". Since there is an equals symbol in your content, you have to include the attribute title, |content=.
  2. You also had unescaped pipe symbols inside of another template. The pipe ("|") is used to separate parameters inside of templates (as you probably know) and also used to identify table cells (as you probably also know). The problem is that the parser cannot tell if the pipe it encounters is indicating a new cell or a template parameter. In my experience, the template usually wins. Solution? It's easy. Change the pipes that relate to the table to the {{!}} template. It looks funky when you see the code, but it fixes most problems with wiki tables inside of templates.

And here is the working result or your original example, only making those two changes:

test
a
b
c
row 1
row 2
row 3

Of course, the solution below works well, too. Since I am very comfortable with XHTML and CSS, it's the method I usually use. But learning how to work with tables inside of templates is a highly useful skill, too. It's good to know both methods. Feel free to ask me if you run into any future issues like this. —Willscrlt “Talk” ) 11:55, 7 May 2009 (UTC)


Tables - a solution

[edit]

Hi,

I thought about your problem, and have a possible solution.

If you use the actual code generated by the {{hidden}} template instead of the template itself, it would work.

You'd put this bit before all the medals;

<div class="NavFrame collapsed" style="border:none; "><div class="NavHead"
style="font-weight:bold; background:transparent;
text-align:center; ">Title text here </div>
<div class="NavContent" style="font-weight:normal;
background-color:transparent; text-align:left;
">

And this bit after them;

</div></div>

I've made an example in User:Chzz/table

I hope this helps.

--  Chzz  ►  14:48, 10 March 2009 (UTC)

P.S. I've also just found Help:Collapsing

--  Chzz  ►  14:51, 10 March 2009 (UTC)

Sort out wikitables in show / hide boxes

[edit]

Show / Hide

[edit]

I've recently learnt some new tricks that may amuse you, and you may even find them useful.

[Before I start, do you know about <nowiki></nowiki>? Whatever you put between them stays as text and doesn't get treated as markup.
e.g. the text <nowiki>xx<!-- Insert non-formatted text here -->yy</nowiki> can be seen on this page, but if I remove the <nowiki></nowiki>,
then it will do what it is supposed to (i.e. xxyy) ]
Right!

First trick

{{collapse top}}
The quick brown fox jumps over the lazy dog.
{{collapse bottom}}
results in:

Extended content

The quick brown fox jumps over the lazy dog.


Second trick

{{Hidden|titlestyle = background-color: #ccccff;|Second trick|content=
The quick brown fox jumps over the lazy dog.}}
results in:

Second trick
The quick brown fox jumps over the lazy dog.


More tricks at

User:Pdfpdf#Tools and references and
User:Pdfpdf/Tools and references

Cheers, Pdfpdf (talk) 13:54, 11 April 2009 (UTC)

Colours

[edit]

Blatently stolen from User talk:B. Fairbairn

Pink Violet Fuchsia

Red Crimson Maroon Purple

Aqua Blue Navy

Lime Green Teal Olive

Yellow Gold Orange Coral

Tan Chocolate Brown

Silver Gray

That takes care of headings, external references, internal references, tables, quotes, fonts, colours, strike-through and sizes.
Still to work out loads more. B. Fairbairn (talk) 13:13, 5 April 2009 (UTC)

. .

An example of (Actually, I'm not sure what it's an example of)

[edit]
Variation on POTD

Variation on POTD

Can you become the Supreme Leader of the Supreme Cabal?
Wikibreak
Third opinion
$220
Chance
?
Mediation
$220
Arbitration
$240
Jimbo Wales
$200
In the news
$260
On this day
$260
MediaWiki
$150
Did you know
$280
You are banned!
RFA
$200
WIKIOPOLYFPC
$300
PERM
$180
POTD
$300
Community discussionCommunity discussion
Editor review
$180
FAC
$320
Developers
$200
Rouge admin
$200
Deletion review
$160
Chance
?
AFD
$140
TFA
$350
Wikimedia Foundation
$150
Edit war
(pay $100)
CSD
$140
Main Page
$400
{{{Space_412}}}
WP:BANNED
Just browsing
WikiProject Spam
$120
UAA
$100
Chance
?
AIV
$100
Admin cabal
$200
Teh Drahmaz
(pay $200)
AN
$60
Community discussionANI
$60
Go
Collect $200 salary as you pass