Page MenuHomePhabricator

Replace variables in "default" parameter
Closed, ResolvedPublic

Description

Author: gangleri

Description:
splitted requests from bug 2805 "<inputbox> should allow to set predefined titles"
bug 2805 comment 0

a) However it might be usefull to provide the ability to *insert predefined
titles* (for the articles to be created. Each wiki could decide (on each
occurence)

where no requirement about *flexible predefined titles* (trough templates) was made.

This (actual) limitation is documented at
[[meta:Help:Inputbox#Impossibility_to_use_an_expression_for_a_parameter_value]].

At
http://ro.wikinews.org/w/index.php?title=Format:Creeaz%C4%83_articol/alternativ%C4%83&action=history
are some tests regaring this limitation.

default={{CURRENTDAYNAME}},&nbsp;{{CURRENTDAY}}&nbsp;{{CURRENTMONTHNAME}}&nbsp;{{CURRENTYEAR}},&nbsp;ora&nbsp;([[w:UTC|UTC]])
default=Wikiştiri:{{creează articol/truc}}
default=Wikiştiri:{{SUBST:creează articol/truc}}

*If* the actual software design would permit to use variables (and as a maximal
requirement templates) many conflicts due to already existing titles could be
avoided.

This requirement somehow relates

  • to what is called *actual title* at bug 1575 comment 4
  • to what is called *legal article title* at bug 2797 comment 1

Best regards Reinhardt [[user:gangleri]]


Version: unspecified
Severity: enhancement
URL: http://meta.wikimedia.org/w/index.php?title=Help:Inputbox&oldid=176593#Impossibility_to_use_an_expression_for_a_parameter_value

Details

Reference
bz2847

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:41 PM
bzimport set Reference to bz2847.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Let me clear this up. The request is to have variables replaced in the "default"
parameter before using it to fill in the default title?

cohesion wrote:

I think so, I would use this as well, for making date based pages also.

cohesion wrote:

Actually, it's easier to just not use inputbox for this, and just encode the
variables all in a url.

robchur wrote:

This was done in r24580.