Jump to content

User:Spike 'em/sandbox/TemplateTest

From Wikipedia, the free encyclopedia

Details

[edit]

These examples are for a proposed new template, based on {{nft}} / {{nfa}}.

The aim is to add a shortcut to give link to national cricket teams, in a similar way to {{cr}} but without the flags! These will probably be best used with {{subst}} rather that left in situ. See WT:CRIC#Infobox_question

Aim would be to mover User:Spike 'em/sandbox/Tcrtl to {{crtl}} and User:Spike 'em/sandbox/Tcrtl/code to {{crtl/code}} and hence in the below any occurrence of User:Spike 'em/sandbox/Tcrtl would be replaced with crtl.

Examples of usage

[edit]

{{subst:User:Spike 'em/sandbox/Tcrtl|ENG|short}}Saves as [[England cricket team|ENG]] which renders as ENG
{{subst:User:Spike 'em/sandbox/Tcrtl|ENG}}Saves as [[England cricket team|England]] which renders as England
{{subst:User:Spike 'em/sandbox/Tcrtl|England}}Saves as [[England cricket team|England]] which renders as England
{{subst:User:Spike 'em/sandbox/Tcrtl|PAK}}Saves as [[Pakistan national cricket team|Pakistan]] which renders as Pakistan
{{subst:User:Spike 'em/sandbox/Tcrtl|WI|short}}Saves as [[West Indies cricket team|WI]] which renders as WI
{{subst:User:Spike 'em/sandbox/Tcrtl|WI}}Saves as [[West Indies cricket team|West Indies]] which renders as West Indies
{{subst:User:Spike 'em/sandbox/Tcrtl|New Zealand}}An example of a valid long name not in template: [[New Zealand national cricket team|New Zealand]] which renders as New Zealand
{{subst:User:Spike 'em/sandbox/Tcrtl|NZ}}An example of short name not in template: [[NZ national cricket team|NZ]] which renders as NZ
{{subst:User:Spike 'em/sandbox/Tcrtl|Somewhere land}}An example of non-existent article: [[Somewhere land national cricket team|Somewhere land]] which renders as Somewhere land
{{subst:User:Spike 'em/sandbox/Tcrtl|SL|short}}An example of non-existent short code : [[SL national cricket team|SL]] which renders as SL

And some non-substed versions

{{User:Spike 'em/sandbox/Tcrtl|England}}:England
{{User:Spike 'em/sandbox/Tcrtl|ENG|short}}:ENG
{{User:Spike 'em/sandbox/Tcrtl|PAK}}:Pakistan
{{User:Spike 'em/sandbox/Tcrtl|WI|short}}WI
{{User:Spike 'em/sandbox/Tcrtl|New Zealand}}New Zealand
{{User:Spike 'em/sandbox/Tcrtl|NZ}}NZ
{{User:Spike 'em/sandbox/Tcrtl|Somewhere land}}Somewhere land

In some text

[edit]

One day {{subst:User:Spike 'em/sandbox/Tcrtl|ENG}} played a game of cricket against {{subst:User:Spike 'em/sandbox/Tcrtl|Aus}} and they won. Hurray!
One day England played a game of cricket against Australia and they won. Hurray!