Шаблон:Glossary preload — различия между версиями

Материал из ANT-Inform documentation
Перейти к: навигация, поиск
м (Hubbitus переименовал страницу АИС РГ в Шаблон:Glossary preload без оставления перенаправления: Ошибка)
(Try adopt template into real Glossary template)
Строка 1: Строка 1:
{{<includeonly>subst:</includeonly>#ifeq:{{<includeonly>subst:</includeonly>FULLPAGENAME}}|Template:Preload demo|Noinclude part, works with preload. [[Category:Test pages]]|Includeonly part, works with preload.}}<noinclude>
+
<noinclude>
 +
Создание новой страницы категории Glossary
  
This is inside noinclude tags, but preloaded anyway, preloading preserves the noinclude tags.</noinclude><includeonly>
+
Создать новую страницу можно проследовав по адресу: [index.php?action=edit&preload=Template%3AGlossary_preload&title=NEW_PAGE_NAME], заменив в адресе NEW_PAGE_NAME на требуемое имя.
 +
Возможно в будущем стоит упростить создание, используя расширение [http://meta.wikimedia.org/wiki/Help:Starting_a_new_page#Starting_a_new_page_using_an_Inputbox|inputbox]
  
This is originally inside includeonly tags; preloading removes the tags.</includeonly>
+
Шаблон сделан по описанию [http://www.mediawiki.org/wiki/Manual:Creating_pages_with_preloaded_text] and демо [http://meta.wikimedia.org/wiki/Template:Preload_demo].
 +
</noinclude>
  
<inputbox>
+
<includeonly>
type=create
+
== Примечания ==
buttonlabel=submit an ANY headline
+
<references/>
preload=Template:Preload demo
+
</inputbox>
+
  
The following is in pre tags, the includeonly tags are removed on preload anyway:
+
[[Category:glossary]]
<pre>
+
{{<includeonly>subst:</includeonly>#ifeq:{{<includeonly>subst:</includeonly>FULLPAGENAME}}|Template:Preload demo|Noinclude part, works with preload. [[Category:Test pages]]|Includeonly part, works with preload.}}<noinclude>
+
 
+
This is inside noinclude tags, but preloaded anyway, preloading preserves the noinclude tags.</noinclude>
+
 
+
<includeonly>
+
This is originally inside includeonly tags; preloading removes the tags.
+
 
</includeonly>
 
</includeonly>
 
<inputbox>
 
type=create
 
buttonlabel=Create Report
 
</inputbox>
 
</pre>
 
 
In the following the noinclude and includeonly tags are inside nowiki tags; like with pre,  the includeonly tags are removed on preload anyway:
 
 
{{<includeonly>subst:</includeonly>#ifeq:{{<includeonly>subst:</includeonly>FULLPAGENAME}}|Template:Preload demo|Noinclude part, works with preload. [[Category:Test pages]]|Includeonly part, works with preload.}}<nowiki><noinclude></nowiki>
 
 
This is inside noinclude tags, but preloaded anyway, preloading preserves the noinclude tags.<nowiki></noinclude><includeonly></nowiki>
 
 
This is originally inside includeonly tags; preloading removes the tags.<nowiki></includeonly></nowiki>
 
 
Thus, noinclude tags as text can as usual be put inside pre or nowiki tags. However, for includeonly tags as text this does now work. Instead, replace the "<" with "&amp;lt;".
 
 
*Here are &lt;includeonly> and &lt;/includeonly> as text.
 
*This produces regular includeonly tags on preload: <include<includeonly></includeonly>only> and </include<includeonly></includeonly>only>.
 

Версия 18:22, 27 октября 2014

Создание новой страницы категории Glossary

Создать новую страницу можно проследовав по адресу: [index.php?action=edit&preload=Template%3AGlossary_preload&title=NEW_PAGE_NAME], заменив в адресе NEW_PAGE_NAME на требуемое имя. Возможно в будущем стоит упростить создание, используя расширение [1]

Шаблон сделан по описанию [2] and демо [3].