This is sort of an oddball question. Is it possible to have mediawiki do something similar to the <a> tag where the link (the href attribute) is different from the text displayed?
What I need is something like this:
<a href="[[wiki page name]]">text displayed</a>
Is that possible?
Yan Seiner wrote:
This is sort of an oddball question. Is it possible to have mediawiki do something similar to the <a> tag where the link (the href attribute) is different from the text displayed?
What I need is something like this:
<a href="[[wiki page name]]">text displayed</a>
Is that possible?
Never mind, just found it. (GAH! I hate asking a question and then immediately finding the answer after looking for a while....)
On Wed, Sep 18, 2013 at 6:56 AM, Yan Seiner yan@seiner.com wrote:
Yan Seiner wrote:
This is sort of an oddball question. Is it possible to have mediawiki do something similar to the <a> tag where the link (the href attribute) is different from the text displayed?
What I need is something like this:
<a href="[[wiki page name]]">text displayed</a>
Is that possible?
Never mind, just found it. (GAH! I hate asking a question and then
immediately finding the answer after looking for a while....)
Just for posterity, the syntax is:
[[Link|text]]
-Chad
Chad wrote:
Just for posterity, the syntax is:
[[Link|text]]
Is there any way to do something like that for page titles? I'd like to be able to drop a portion of the name so I can have multiple pages with the same displayed name.
For example I'd like to display the features a customer is interested in, but it depends on the model year of the vehicle:
Features;2013 Features;2014
Would both display as "Features"
{{DISPLAYTITLE:NEWNAME}}
On Wed, Sep 18, 2013 at 10:40 AM, Yan Seiner yan@seiner.com wrote:
Chad wrote:
Just for posterity, the syntax is:
[[Link|text]]
Is there any way to do something like that for page titles? I'd like to be able to drop a portion of the name so I can have multiple pages with the same displayed name.
For example I'd like to display the features a customer is interested in, but it depends on the model year of the vehicle:
Features;2013 Features;2014
Would both display as "Features"
-- Project Management Consulting and Training http://www.**ridgelineconsultingllc.comhttp://www.ridgelineconsultingllc.com
______________________________**_________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.**org MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/mediawiki-lhttps://lists.wikimedia.org/mailman/listinfo/mediawiki-l
John wrote:
{{DISPLAYTITLE:NEWNAME}}
On Wed, Sep 18, 2013 at 10:40 AM, Yan Seiner yan@seiner.com wrote:
Chad wrote:
Just for posterity, the syntax is:
[[Link|text]]
Is there any way to do something like that for page titles? I'd like to be able to drop a portion of the name so I can have multiple pages with the same displayed name.
For example I'd like to display the features a customer is interested in, but it depends on the model year of the vehicle:
Features;2013 Features;2014
Would both display as "Features"
Perfect, thanks guys.
John wrote:
{{DISPLAYTITLE:NEWNAME}}
Is there any way to automate this in a template?
My titles are in the form
DisplayTitle;HiddenSuffix
so I could manually edit each and every page to add
{{DisplayTitle;HiddenSuffix:DisplayTitle}}
but I'd really like to find a way to drop the part after the semicolon in a template; in regex:
s/;.*$//
or in php (pseudocode, not mediawiki code)
preg_replace(';.*$', '', $DISPLAYTITLE);
Can this be done?
Are these pages in their own namespace?
On Wed, Sep 18, 2013 at 11:32 AM, Yan Seiner yan@seiner.com wrote:
John wrote:
{{DISPLAYTITLE:NEWNAME}}
Is there any way to automate this in a template?
My titles are in the form
DisplayTitle;HiddenSuffix
so I could manually edit each and every page to add
{{DisplayTitle;HiddenSuffix:**DisplayTitle}}
but I'd really like to find a way to drop the part after the semicolon in a template; in regex:
s/;.*$//
or in php (pseudocode, not mediawiki code)
preg_replace(';.*$', '', $DISPLAYTITLE);
Can this be done?
-- Project Management Consulting and Training http://www.**ridgelineconsultingllc.comhttp://www.ridgelineconsultingllc.com
______________________________**_________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.**org MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/mediawiki-lhttps://lists.wikimedia.org/mailman/listinfo/mediawiki-l
No. They're all in the main namespace.
I'm working on user manuals, and thinking about maintainability as we move forward and certain articles change as equipment gets updated. Most of the manual will remain the same, but some pieces will change if, for example, we change manufacturers on a part.
So if we have an electric heater subassembly, it might make sense to have something like:
Electric_Heater;ManufA Electric_Heater;ManufB
and then have a main index page for each particular assembly with the appropriate links to the correct manufacturer for the subassemblies.
Does that make sense?
I'm open to suggestions on how to structure this better. Basically I need to be able to tag each page with some sort of tag to allow collation of the main document with similar titles. My customers don't care who makes the heater, they just want to know how to use it.
John wrote:
Are these pages in their own namespace?
On Wed, Sep 18, 2013 at 11:32 AM, Yan Seiner yan@seiner.com wrote:
John wrote:
{{DISPLAYTITLE:NEWNAME}}
Is there any way to automate this in a template?
My titles are in the form
DisplayTitle;HiddenSuffix
so I could manually edit each and every page to add
{{DisplayTitle;HiddenSuffix:**DisplayTitle}}
but I'd really like to find a way to drop the part after the semicolon in a template; in regex:
s/;.*$//
or in php (pseudocode, not mediawiki code)
preg_replace(';.*$', '', $DISPLAYTITLE);
Can this be done?
-- Project Management Consulting and Training http://www.**ridgelineconsultingllc.comhttp://www.ridgelineconsultingllc.com
______________________________**_________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.**org MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/mediawiki-lhttps://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
!DSPAM:5239c80246501804284693!
You might look into http://www.mediawiki.org/wiki/Help:Subpages subpages would enable you to do what you need, and group stuff together. You then could use {{SUBPAGENAME}} in a template
On Wed, Sep 18, 2013 at 11:42 AM, Yan Seiner yan@seiner.com wrote:
No. They're all in the main namespace.
I'm working on user manuals, and thinking about maintainability as we move forward and certain articles change as equipment gets updated. Most of the manual will remain the same, but some pieces will change if, for example, we change manufacturers on a part.
So if we have an electric heater subassembly, it might make sense to have something like:
Electric_Heater;ManufA Electric_Heater;ManufB
and then have a main index page for each particular assembly with the appropriate links to the correct manufacturer for the subassemblies.
Does that make sense?
I'm open to suggestions on how to structure this better. Basically I need to be able to tag each page with some sort of tag to allow collation of the main document with similar titles. My customers don't care who makes the heater, they just want to know how to use it.
John wrote:
Are these pages in their own namespace?
On Wed, Sep 18, 2013 at 11:32 AM, Yan Seiner yan@seiner.com wrote:
John wrote:
{{DISPLAYTITLE:NEWNAME}}
Is there any way to automate this in a template?
My titles are in the form
DisplayTitle;HiddenSuffix
so I could manually edit each and every page to add
{{DisplayTitle;HiddenSuffix:****DisplayTitle}}
but I'd really like to find a way to drop the part after the semicolon in a template; in regex:
s/;.*$//
or in php (pseudocode, not mediawiki code)
preg_replace(';.*$', '', $DISPLAYTITLE);
Can this be done?
-- Project Management Consulting and Training http://www.**ridgelineconsulti**ngllc.comhttp://ridgelineconsultingllc.com <http://www.**ridgelineconsultingllc.comhttp://www.ridgelineconsultingllc.com
______________________________****_________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.****org <MediaWiki-l@lists.wikimedia.**orgMediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/****mailman/listinfo/mediawiki-lhttps://lists.wikimedia.org/**mailman/listinfo/mediawiki-l <h**ttps://lists.wikimedia.org/**mailman/listinfo/mediawiki-lhttps://lists.wikimedia.org/mailman/listinfo/mediawiki-l
______________________________**_________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.**org MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/mediawiki-lhttps://lists.wikimedia.org/mailman/listinfo/mediawiki-l
!DSPAM:5239c80246501804284693!
-- Project Management Consulting and Training http://www.**ridgelineconsultingllc.comhttp://www.ridgelineconsultingllc.com
______________________________**_________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.**org MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/**mailman/listinfo/mediawiki-lhttps://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org