Help:Templates

From ChangesWiki

Jump to: navigation, search
Image:PD-icon.svg Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages.

If you have standard texts you want to include on several pages, the MediaWiki template feature comes into play (like the tag above which is included in the pages of the Help namespace).

Contents

[edit] Creating a template

Template names are prefixed with Template:, you create them like any other wiki page.

[edit] Using a template

Templates are wiki pages which can be used in other pages in three ways:

  • {{Name}} includes the content of the template at the moment the page containing it is fetched "[[Template:Name]]".
  • {{subst:Name}} inserts the content of the template into the code of the page in a form that is editable normally "[[Template:Name]]" after you have saved your text.
  • {{msgnw:Name}} when the page containing it is fetched, includes the template in a form that displays it as raw wiki syntax, like <nowiki> does

下载 0.1.2 后执行报错,之前的 0.1.1b 正常,WIN7 环境。Traceback (most recent call last): File SS.py , line 404, in File SS.py , line 200, in __init__ File SS.py , line 235, in __set_properties File wx\_controls.pyo , line 3875, in Realizewx._core.PyAssertionError: C++ asesrtion wxAssertFailure failed at ..\..\src\msw\tbar95.cpp(726) in wxToolBar::Realize(): invalid tool button bitmapException TypeError: NoneType' object is not callable in <bound method Popen.__del__ of > ignored

[edit] Control template inclusion

You can control template inclusion by the use of <noinclude> and <includeonly> tags.

Anything between <noinclude> and </noinclude> will be processed and displayed only when the page is being viewed directly, not included.

Possible applications are:

  • Categorising templates
  • Interlanguage links to similar templates in other languages
  • Explanatory text about how to use the template

The converse is <includeonly>. Text between <includeonly> and </includeonly> will be processed and displayed only when the page is being included. The obvious application is to add all pages containing a given template to a category, without putting the template itself into that category.

Template:Note when you change the categories applied by a template, the categorization of the pages that use that template may not be updated until some time later: this is handled by the job queue.

[edit] Organizing templates

For templates to be effective users need to find them and be able to use them. A simple technique is to include an example on the template page. For example:

<noinclude>
==Usage==
Allows to establish a link to a subject:
{{NameOfTemplate|Term1+Term2+Term3}}
</noinclude>

Then, an editor can simply copy and paste the example to create a similar page.

[edit] See Also

ഈ പ ട ക ക പര ക ഷ ക ക ന നത ന കമന റ ച യ യ ന നത ന സന മനസ സ ക ണ ച ച എല ല വര ക ക ഒറ റവ ക ക ല നന ദ പറയട ട . സ ങ ക ത ക വ ദ യകള ല ല ദ ര വ ന യ ഗ ച യ യപ പ ട ന ന ക ലത ത അത തരത ത ല ഈ സ കര യവ ദ ര പയ ഗ ച യ യപ പ ട മ ന ന പലര ഓര മ മപ പ ട ത ത . ക വല പര ക ഷ ക ക ക, എന ന ഉദ ദ ശ മ ത രമ ഇത ന പ ന ന ല ഉണ ട യ ര ന ന ള ള . പലര ല ന ന ന ഞങ ങള ക ക ലഭ ച ച പ ര ത സ ഹനങ ങള ക ട തല ബ ല ഗ ട പ സ കള ക ക ര യ ച യ യണമ ന ന ച ന തയ ല ക ക ഞങ ങള നയ ക ക കയ ണ ട യ . ഇത ക ക റ ച ച ഒര പ സ റ റ ട ട ക രള ബ ല ഗ അക ക ദമ , ബസ ല ക റ പ പ ഴ ത യ ന രക ഷരന , ഗ ഗ ള ന ള ല ഇത ക ക റ ച ച ഴ ത യ ഫ ല പ പ വര ഗ സ - ഏര യല എന ന വര ക ക നന ദ .ഫ ല പ പ സ ര , ന ള സന ദര ശ ച ച . ഗ ഗ ള ന റ ഈ സ വന പര ചയപ പ ട ന സ ധ ച ച . വളര വളര നന ദ .ക ട ത ,ആറങ ങ ട ട കര മ ഹമ മദ ,Athira,vijayan,ന ശ സ രഭ ,das ,revima,ഹ സ ,sankaranmash ,fasal,Anjana ,shadeed | ഷ ദ ദ ,MURALEEDHARAN.C.R,ഗ ത സ ധ ,binudigitaleye,അസ സ ,ക ഡ ഉപയ ക ത വ ,Free ,nisagandhi,somanmi,Swapna John,ഒര ന റ ങ ങ ,ShahnaNizar,രമണ ക മലപ പ റ ,Bibin ,reshma ,ശ ര ,സ ദ ധ ക ക.. ,പഞ ച രക ക ട ടന .... , മ ഖ ത ര udarampoyil ,Musheer,shajiqatar//ഷ ജ ഖത തര ,Ranjith Chemmad / ച മ മ ടന ,പ വപ പ ട ടവന ,ട ട ട ച ന (edukeralam) ,സ പന ദന ,Captain Haddock ,ജ വ ര യ സല ,Renjith,ഇസ മ യ ല ക റ മ പട (തണല ),ത ല കഎന ന വര ക ക പ രത യ ക നന ദ