List Info

Thread: Rép.




Rép.
user name
2006-11-07 19:07:16
Actually, these are already found ;)

What I am searching is a way to have a function like this :

{{if (this page is included) | then put <onlyinclude
tag> | else <putnothing>}}

That way, only the text that I want would be included, and
at the same time would show when seeing the page directly.

Putting <noinclude> all over a lot of pages is not
really what I am looking for.


<
<<I believe you are looking for the <noinclude>
and <includeonly> tags.
<<See http://en.wikipedia.org/wiki/Help:Template#N
oinclude_and_includeonly 
<
<
>>> JMorgand2hawkeye.com 2006-11-07 13:43:48
>>>
>Hi all,
>
>So I am experimenting with page inclusion, but can't
find the perfect
>solution.
>
>I know I can include a full page with this {{:Page tests
no 99}}.
>
>I know I can include part of a page by putting in the
"Page tests no
99" >page some
"<include></include>" so that only the
not included part
will be >visible insite the first page.
>
>But what I would prefer, is more something like putting
some <from
here><to >here>, but that would be visible even
when the included page
is visited. >That's not what the
<onlyinclude></onlyinclude> tags do.
>
>So what I was thinking about doing is to put some kind
of condition.
>
>{{if (this page is included) | then put
<onlyinclude> | else <put
>nothing>}}
>{{if (this page is included) | then put
</onlyinclude> | else <put
>nothing>}}
>
>
>But I can't find the correct syntax for that. Can
someone help me?
Thanks.



I believe you are looking for the <noinclude> and
<includeonly> tags.
See http://en.wikipedia.org/wiki/Help:Template#N
oinclude_and_includeonly 
-Justin 
 
 
PRIVACY NOTICE

This email and any attachments may be confidential and/or
privileged. Use of the information contained in this email
by anyone other than the intended recipient is strictly
prohibited. If you have received this email in error, please
notify the sender by replying to this message and delete
this email.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org 
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

---------------------------------------------------
Alexandre Racine - Gardien Virtuel - Sécurité Informatique
www.gardienvirtuel.com
Montréal, Québec, Canada

_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Rép.
user name
2006-11-08 18:27:11
> What I am searching is a way to have a function like
this :
> {{if (this page is included) | then put <onlyinclude
tag> | else
> <putnothing>}}
> That way, only the text that I want would be included,
and at the same
> time would show when seeing the page directly.

The <includeonly> tag does that "if
function" for you.  If your page looks like this:

Abc <includeonly>xyz </includeonly>123
<noinclude>456</noinclude>

When the page is viewed directly, you'll see:
  Abc 123 456

When the page is transcluded, you'll see:
  Abc xyz 123

Get it?

-Justin 
 
 
PRIVACY NOTICE

This email and any attachments may be confidential and/or
privileged. Use of the information contained in this email
by anyone other than the intended recipient is strictly
prohibited. If you have received this email in error, please
notify the sender by replying to this message and delete
this email.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

after upgraded
user name
2006-11-08 20:56:28
Hi guys,

After I upgrade my wiki 1.5.3 to 1.6.8, I've been getting
this kind of links below for any internal link I might click
in my wiki:

http://my_site.com/_Art
icle_Name?mauroo_wiki_pt__session=50bf5cdc364138f9ba518fd438
e49a14

I've noticed that if happen to save one page, the address of
this saved page will be shown this kind of link like the
above one, but
on the contrary, will shown as usual http://my_site.com/
_Article_Name. 


Thanks for your help, mauro.
_________________________________________________
Server: MediaWiki: 1.6.8
        PHP: 4.3.11 (apache)
        MySQL: 4.1.20-max-log
        phpMyAdmin - 2.8.0.1
        * no access to shell command

Client:
       Win XP Home Edition SP2
       Browser Mozila FireFox
____________________________________


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.29/520 - Release
Date: 11/6/2006
 
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )