Help talk:Parameter default

Latest comment: 10 years ago by Patrick in topic To use empty/space parameter as default

[n] perhaps ambiguous edit

Perhaps, instead of

[v[i|@] | [sep|] {{[call]|[pc1|]|[pc2|]|[pc3|]|[pc4|]|[pv|1]=[i]}} ]

type

«v«i|@» | «sep|» {{«call»|«pc1|»|«pc2|»|«pc3|»|«pc4|»|«pv|1»=«i»}} »

AzaToth 10:57, 12 December 2005 (UTC)Reply

It is not as easy to type on my keyboard. Also double symbols look more complicated when there are several. But when I encounter a case where there is confusion with links, I will consider this again.--Patrick 11:37, 12 December 2005 (UTC)Reply
For me it's the same work, [ is Alt Gr + 8, ] is Alt Gr + 9, « is Alt Gr + z, » is Alt Gr + x AzaToth 11:46, 12 December 2005 (UTC)Reply
I thought [ and ] are on most keyboards. I do not even need Shift. And I do not have a key Gr.--Patrick 11:53, 12 December 2005 (UTC)Reply
The key is "Alt Gr" (for Alternate Graphics in the begining), I'm using a swedish keyboard AzaToth 11:56, 12 December 2005 (UTC)Reply
Alt Gr does various things dependent on the Keyboard layout selected, on US Keyboards it does nothing (it's a spare Alt key) on UK keyboards it does allows ¦ (as opposed to |) and € é ú í ó á to be typed on other layouts it has similar functions (i.e. not often required but useful chars in the language) 217.146.125.100 14:03, 26 June 2007 (UTC)Reply
Ambiguous? Pfft. None of this made any sense. {{{a}}} is written as [a]? What syntax are we working with here? Otheus 17:25, 21 January 2006 (UTC)Reply

Version edit

Would it kill you to state clearly that this is 1.6 only and will not work at all on 1.5? I just wasted a lot of time here.

What they said. Good lord.

Understandability edit

it is a difficult topic, but perhaps by revising accessibility could be improved for beginners. The special topics are certainly useful, but seem a bit misplaced. LastBut1 etc. are excellent tricks, but I failed to understand what this has to do with Parameter defaults.

It applies them.--Patrick (talk) 00:45, 17 April 2008 (UTC)Reply

Another note: I stumbled here and elsewhere on assumptions that we understand what the special symbol "@" means, but this is not explained. Vigilius 17:10, 15 April 2008 (UTC)Reply

"@" has no special meaning, the method described is based on the assumption that this is an unlikely parameter value.--Patrick (talk) 00:45, 17 April 2008 (UTC)Reply

Unreadable edit

Frankly, this documentation is completely unreadable. I have a decade of programming web applications in scripting languages under my belt, and I'm having severe difficulty understanding it. This page needs to be rewritten using tables to display the results of code, instead of trying to describe what the code does.

Code Result
Here is some code
    It does stuff
This is the output of the code
Here is some other code
    It does different stuff
This is the output of the other code

All outdated material ("this section was written before ParserFunctions" - what are they? No explanation is given to the new reader) needs to be removed or placed on a page clearly explaining until when it was relevant.

-- Hex [t/c] 10:22, 24 September 2012 (UTC)Reply

For introductory material there are some links at the top of Help:Template.--Patrick (talk) 14:33, 24 September 2012 (UTC)Reply

To use empty/space parameter as default edit

Please explain how to make this to work on old version of wiki where #if does not work.

Can't understand this help section here with hard-to-read examples.


I want:

{{tempname||param2|param3}}

where it used empty parameter as {{PAGENAME}}


a pity that this does not work.. :(
{{{1|{{PAGENAME}}}}}

— The preceding unsigned comment was added by HaxLi (talk)

{{tempname|2=param2|3=param3}}
leaves {{{1}}} undefined. - Patrick (talk) 00:18, 5 March 2014 (UTC)Reply
Return to "Parameter default" page.