نسخهٔ ۰۵:۵۴, ۸ نوامبر ۲۰۰۷ (ویرایش) Xo.هری پاتر (بحث | مشارکتها) → تفاوت قبلی |
نسخهٔ ۰۷:۳۷, ۸ نوامبر ۲۰۰۷ (ویرایش) Xo.هری پاتر (بحث | مشارکتها) تفاوت بعدی ← |
||
سطر ۱: | سطر ۱: | ||
<span class="plainlinks">[{{SERVER}}{{localurl:{{{1}}}}} {{{2}}}]</span> <noinclude> | <span class="plainlinks">[{{SERVER}}{{localurl:{{{1}}}}} {{{2}}}]</span> <noinclude> | ||
- | <!-- The <noinclude> being on the end of the first line above is deliberate - if it is put on the line below, then the template does not work properly and adds an unwanted line break when the template is used--> | + | این الگو برای لینک دادن تصاویر به یک صفحه استفاده میشود. |
- | '''This templates allows images to be used as links pointing to a desired page. i.e. a [[Help:Navigational image|navigational image]].''' | + | |
- | Syntax: | + | نحوه نوشتن کد: |
- | <pre><nowiki>{{clickpic|TITLE OF TARGET PAGE|PATH OF IMAGE FILE}}</nowiki></pre> | + | <pre><nowiki>{{clickpic|TARGET PAGE TITLE|FULL PATH OF IMAGE FILE}}</nowiki></pre> |
- | '''Note:''' | + | مثال: |
- | This only works for Mediawiki sites that support [[Help:Images_and_other_uploaded_files#Embedding_external_images|embedding external images]] (internally held images can be referenced this way too). | + | <pre><nowiki>{{clickpic|gryffindor|http://www.jadoogaran.org/uploads/mediawiki/a/a6/Gg-16px.gif}}</nowiki></pre> |
+ | که خواهید دید: | ||
+ | {{clickpic|gryffindor|http://www.jadoogaran.org/uploads/mediawiki/a/a6/Gg-16px.gif}} | ||
- | Main Wikimedia sites do not support embedding external images, but plenty of other personal, public and corporate intranet Mediawiki-based sites do, and these can use this template to make navigational images easy to implement. | + | توجه: |
+ | فقط برای تصاویر بارگذاری شده در فرهنگ نامه سایت کار میکند یعنی تصاویر باید در {{SERVER}}/uploads/mediawiki باشند. | ||
- | If you want to duplicate this template on your Mediawiki site, here is the code: | + | برای مطالعه بیشتر در مورد این الگو به لینک زیر مراجعه کنید |
- | <pre><nowiki><span class="plainlinks">[{{SERVER}}{{localurl:{{{1}}}}} {{{2}}}]</span></nowiki></pre> | + | * [http://meta.wikimedia.org/wiki/User:CharlesC/Template_for_navigational_images_on_Mediawiki_websites Template_for_navigational_images_on_Mediawiki_websites]</noinclude> |
- | For information such as: | + | |
- | *How to get the full path of the image which this template needs | + | |
- | *What to do if you have a whitespace problem in Internet Explorer or Opera | + | |
- | then please see further details at [[User:CharlesC/Template for navigational images on Mediawiki websites]]. | + | |
</noinclude> | </noinclude> |
نسخهٔ ۰۷:۳۷, ۸ نوامبر ۲۰۰۷
این الگو برای لینک دادن تصاویر به یک صفحه استفاده میشود.
نحوه نوشتن کد:
{{clickpic|TARGET PAGE TITLE|FULL PATH OF IMAGE FILE}}
مثال:
{{clickpic|gryffindor|http://www.jadoogaran.org/uploads/mediawiki/a/a6/Gg-16px.gif}}
که خواهید دید: http://www.jadoogaran.org/uploads/mediawiki/a/a6/Gg-16px.gif
توجه:
فقط برای تصاویر بارگذاری شده در فرهنگ نامه سایت کار میکند یعنی تصاویر باید در https://www.jadoogaran.org/uploads/mediawiki باشند.
برای مطالعه بیشتر در مورد این الگو به لینک زیر مراجعه کنید