[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2014-02-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

Morgon Kanter morgon.kan...@gmail.com changed:

   What|Removed |Added

 CC||morgon.kan...@gmail.com

--- Comment #16 from Morgon Kanter morgon.kan...@gmail.com ---
FYI for anyone that needs functionality like this, we implemented it on our
wiki using plain old ParserFunctions. It's REALLY ugly and almost impossible to
maintain or extend, but it works. http://dnd-wiki.org/wiki/Template:Pipe_Trick

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2013-04-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

Chong-Dae Park cdp...@gmail.com changed:

   What|Removed |Added

 CC||cdp...@gmail.com

--- Comment #15 from Chong-Dae Park cdp...@gmail.com ---
This could be useful for templates.

For example, Template:PipedLink could be work as:

* {{PipedLink|Boston}} will produce [[Boston]].
* {{PipedLink|San Jose, California}} will produce [[San Jose, California|San
Jose]]
* {{PipedLink|Georgia (U.S. state)}} will produce [[Georgia (U.S.
state)|Georgia]].


If [[{{#pipetrick:{{{1}}} }}]] works, it will reduce headache when designing
templates.

Instead of
{{BlahBlah...
| state = [[Georgia (U.S. state)|Georgia]]
}}
or
{{BlahBlah2...
| state = Georgia
| state_link = Georgia (U.S. state)
}}
,
we can put simply as
{{BlahBlah2...
| state = Georgia (U.S. state)
}}

Now we can make this function via Lua module. But this function should be
supported by MediaWiki core.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-09-25 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

Bawolff bawolff...@gmail.com changed:

   What|Removed |Added

 CC||ville...@iki.fi

--- Comment #14 from Bawolff bawolff...@gmail.com 2010-09-25 23:53:18 UTC ---
*** Bug 25313 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-02-19 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

--- Comment #13 from Raimond Spekking raimond.spekk...@gmail.com 2010-02-19 
11:48:04 UTC ---
Reverted by Tim in r62689. Work branched to
http://www.mediawiki.org/w/index.php?title=Special:Code/MediaWiki/pathpath=%2Fbranches%2Fconrad

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-02-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

--- Comment #8 from Danny B. dann...@email.cz 2010-02-08 13:25:52 UTC ---
As suggested in comment 6, you don't have to add the whole new set, just a
modificator after pipe char to current set, as we did it to random other
variables through the time. I would consider that as optimal - since the
clearest and simpliest - solution actually.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-02-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

--- Comment #9 from Conrad Irwin conrad.ir...@gmail.com 2010-02-08 14:04:11 
UTC ---
These variables already take an argument which is the page name to act on.

{{PAGENAME:Talk:Hi}} = Hi.

It would not be hard to modify them so that {{PAGENAME:|P}} works as you
propose; but {{PAGENAME|P}} would require changes to the parser (or you could
just implement Template:PAGENAME
{{#ifeq:{{{1|}}}|P|{{PIPETRICK}}|{{PAGENAME).

Implementation of  the above 6 (really 12 with the {{PAGENAMEE:|P}} versions)
cases is just a case of translating that wikitext into PHP.

The reason I WONTFIX this is because I think this syntax is ugly and confusing
{{PAGENAME}} {{PAGENAMEE}} {{PAGENAME:|P}} {{PAGENAMEE:|P}} provides two
totally different syntaxes for providing behavioural flags (right, we could
change it to be {{PAGENAME:|E|P}} or {{PAGENAME:|EP}} or :|PE or :|P|E to make
it consistent). The :| is still clearly a nasty hack, and I think people would
be bitten by {{PAGENAME:P}} more often than not.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-02-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

--- Comment #10 from Danny B. dann...@email.cz 2010-02-08 14:19:39 UTC ---
Such handling of parameters (:| combination) already exists and is being
commonly used, see http://www.mediawiki.org/wiki/Help:Magic_words#Statistics

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-02-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

--- Comment #11 from Conrad Irwin conrad.ir...@gmail.com 2010-02-08 14:23:42 
UTC ---
They don't implicitly assume that :| == :{{PAGENAME}}|

You could do {{FULLPAGENAME:{{PAGENAME}}|P}} - I have no problem with that, but
it's longer and yuckier than {{NAMESPACE}}:{{PAGENAME}}.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-02-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

--- Comment #12 from Conrad Irwin conrad.ir...@gmail.com 2010-02-08 14:26:56 
UTC ---
Ach, I'm wrong. Some of them do...

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-02-06 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

Conrad Irwin conrad.ir...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||conrad.ir...@gmail.com
 Resolution||FIXED

--- Comment #4 from Conrad Irwin conrad.ir...@gmail.com 2010-02-07 02:37:04 
UTC ---
Added {{pipetrick:}} in r62077

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-02-06 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

Bawolff bawolff...@gmail.com changed:

   What|Removed |Added

 CC||liang...@gmail.com

--- Comment #5 from Bawolff bawolff...@gmail.com 2010-02-07 02:41:45 UTC ---
*** Bug 21994 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 7264] Magic word to give Page Title as if pipe-trick performed on it

2010-02-06 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=7264

Danny B. dann...@email.cz changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

--- Comment #6 from Danny B. dann...@email.cz 2010-02-07 03:26:52 UTC ---
{{pipetrick:}} is definitely nice, however it should be accompanied by the
complement set of variables to random {{..PAGENAME(E)}} variables (see
[[mw:Help:Magic words#Page_names]]), so one wouldn't have to create ugly
templates with content like {{TALKPAGENAME:{{NAMESPACE}}:{{pipetrick:
{{{title|{{PAGENAME} (to get {{TALKPAGENAMEP}}), which are indeed much
more expensive than single variable which returns the same. Alternative (maybe
even better) may be adding of |P ({{TALKPAGENAME|P}} etc.).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l