Difference between revisions of "Template:DT Category"

From FollowTheScore
Jump to: navigation, search
(New page: <includeonly> {{{doc|}}} {{#dpl:|namespace=Category|skipthispage=false|category=DocType|format=«small»- ,%TITLE% - ,,new..«/small»}} {|cellspaci...)
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 +
{|
 +
|bgcolor=f0f0f0|<small>{{#dpl:|debug=1|namespace={{DT Language|Category}}|skipthispage=false|category=DocType|ordermethod=sortkey|mode=inline|shownamespace=no}}</small>
 +
|}
 
{{{doc|}}}
 
{{{doc|}}}
 
{{#dpl:|namespace=Category|skipthispage=false|category=DocType|format=«small»- ,[[%PAGE%|%TITLE%]] - ,,[[Template:DT Type create|new]]..«/small»}}
 
 
{|cellspacing=0 cellpadding=0
 
{|cellspacing=0 cellpadding=0
|
+
|bgcolor={{{color|#f0f0f0}}}|{{#form: name= track    |action={{SCRIPTPATH}}/index.php|
{{#form: name= track    |action={{SCRIPTPATH}}/index.php|
+
{{#input: name= title    |type= hidden | value = Special:Call/Category:{{{cat}}} }}
{{#input: name= title    |type= hidden | size = 10 | value = Special:Call/Category:{{{cat}}} }}
 
 
{{#input: name= cat      |type= hidden | value = {{{cat}}} }}
 
{{#input: name= cat      |type= hidden | value = {{{cat}}} }}
&nbsp;{{#input: name= filter | value = {{{filter|}}} }}
+
{{{viewcriteria|}}}&nbsp;
{{#input: type = submit | value = filter }}&nbsp; <small>[[:Category:{{{cat}}}|reset]]</small>&nbsp;
+
{{#input: type = submit | value = filter }}&nbsp; <small>[[:Category:{{{cat}}}|reset]]</small>&nbsp;
 
}}
 
}}
|
+
|bgcolor={{{color|#f0f0f0}}}|
 
:{{#inputbox:
 
:{{#inputbox:
 
   |type=create
 
   |type=create
Line 17: Line 17:
 
   |width=10
 
   |width=10
 
   |default=?
 
   |default=?
 +
  |titleprefix={{{namespace|}}}:
 
   |editintro=Template:{{{cat}}}.intro
 
   |editintro=Template:{{{cat}}}.intro
 
   |preload=Template:{{{cat}}}.edit
 
   |preload=Template:{{{cat}}}.edit
 
   |break=no
 
   |break=no
 
}}
 
}}
|
 
:<small>export</small> &nbsp; [[Special:Call/DT Articles list XML,type={{{cat}}},title=|XML]] / [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.text&printable=yes Text]
 
 
|}
 
|}
 
<!------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------->
 
{{#dpl:debug=1
 
{{#dpl:debug=1
 
   |resultsheader=__NOTOC____NOEDITSECTION__\n
 
   |resultsheader=__NOTOC____NOEDITSECTION__\n
 +
  |noresultsheader= {{{!}}\n{{!}}bgcolor=#eeeeee{{!}}No matching '''{{{cat}}}''' found.\n{{!}}}\n
 
   |category={{{cat}}}
 
   |category={{{cat}}}
 
   |{{#if:{{{namespace|}}}|namespace={{{namespace}}}|namespace=}}
 
   |{{#if:{{{namespace|}}}|namespace={{{namespace}}}|namespace=}}
 
   |nottitlematch = {{#var:cat}}.edit
 
   |nottitlematch = {{#var:cat}}.edit
 
   |addeditdate=true
 
   |addeditdate=true
 +
  |adduser=true
 
   |userdateformat = Y-m-d H:i
 
   |userdateformat = Y-m-d H:i
 
   |ordermethod=title,lastedit
 
   |ordermethod=title,lastedit
 
   |include={{{{cat}}}}.view
 
   |include={{{{cat}}}}.view
   |{{#if:{{{filter|}}}|includematch=/.*{{{filter}}}/s}}
+
   |{{#if:{{{viewselect|}}}|includematch=/{{{viewselect}}}/s}}
   |table=class=sortable,-,{{{cat}}},{{{view|}}}
+
   |table=class=sortable,-,{{{cat}}},{{{viewfields|}}}
 
}}
 
}}
<small>
+
<small>Export: &nbsp;[{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.text&printable=yes HTML] -  [[Special:Call/DT Articles list Wiki,type={{{cat}}},namespace={{{namespace|}}},title=|Wiki]] - [[Special:Call/DT Articles list csv,type={{{cat}}},title=,namespace={{{namespace|}}}|CSV]] - [[Special:Call/DT Articles list XML,type={{{cat}}},title=,namespace={{{namespace|}}}|XML]] &nbsp; Reports: <!--
[{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.edit&action=edit&preload=Template:DT_Article_Edit_(Form) Edit]
+
--------------------------------------- find reports for the current type
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}&action=edit&preload=Template:DT_Article_Wiki_(Form) Wiki]
+
-->{{#dpl:debug=1
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.xml&action=edit&preload=Template:DT_Article_XML_(Form) XML]
+
  |namespace={{DT Language|Template}}
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.view&action=edit&preload=Template:DT_Articles_view_(Form) View]
+
  |titlematch={{{cat}}}.report.%
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.intro&action=edit&preload=Template:DT_Article_Intro_(Form) Intro]
+
  |nottitlematch={{{cat}}}.report.%.%
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.help&action=edit&preload=Template:DT_Article_Help_(Form) Help]
+
  |replaceintitle=/^{{{cat}}}[.]report[.]/,
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.text&action=edit&preload=Template:DT_Articles_list_Wiki_(Form) Text]
+
  |mode=inline
 +
  |shownamespace=no
 +
}} - [[Special:Call/DT Report create,type={{{cat}}}|New report..]]</small><br>
 +
<!----------------------------------------- links to meta scripts for current type
 +
--><small>Meta: &nbsp;&nbsp;
 +
[{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.edit&action=edit&preload=Template:DT_Article_Edit_(Form)&editintro=Template:DT_Article_Edit_(Intro){{DT Language}} Edit]
 +
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}&action=edit&preload=Template:DT_Article_Wiki_(Form)&editintro=Template:DT_Article_Wiki_(Intro){{DT Language}} Wiki]
 +
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.csv&action=edit&preload=Template:DT_Article_csv_(Form)&editintro=Template:DT_Article_csv_(Intro){{DT Language}} CSV]
 +
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.xml&action=edit&preload=Template:DT_Article_XML_(Form)&editintro=Template:DT_Article_XML_(Intro){{DT Language}} XML]
 +
&nbsp; [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}.view&action=edit&preload=Template:DT_Articles_view_(Form)&editintro=Template:DT_Articles_view_(Intro){{DT Language}} View]
 +
&nbsp; [[Special:Call/DT Article Intro (Form),saveAsPage=Template:{{{cat}}}.intro,Type?={{{cat}}}|Intro]]
 +
&nbsp; [[Special:Call/DT Article Help (Form),saveAsPage=Template:{{{cat}}}.help,Type?={{{cat}}}|Help]]
 +
&nbsp; [[Special:Call/DT Articles list HTML (Form),saveAsPage=Template:{{{cat}}}.text,Type?={{{cat}}},Namespace?={{{namespace|}}}|HTML]]
 
&nbsp; [[Special:Call/DT Scripts index,type={{{cat}}}|Scripts]]
 
&nbsp; [[Special:Call/DT Scripts index,type={{{cat}}}|Scripts]]
 +
<br>Model:
 
&nbsp; [[:Category:DocTypeScript|DocTypeScripts]]
 
&nbsp; [[:Category:DocTypeScript|DocTypeScripts]]
 +
&nbsp; [[:Template:DT Meta|Graph]]
 +
&nbsp; [[Template:DT Type create|new Type]]..
 
</small>
 
</small>
{{#ifeq:{{{cat}}}|Type?||[[Category:DocType]]}}{{#if:{{{super|}}}|[[Category:{{{super}}}]]}}
+
{{#ifeq:{{{cat}}}|Type?||{{#if:{{{index}}}|[[Category:DocType|{{{index}}}]]|[[Category:DocType]]}}}}{{#if:{{{supercat|}}}|[[Category:{{{supercat}}}]]}}
 
</includeonly><noinclude>[[Category:DocTypeScript]]</noinclude>
 
</includeonly><noinclude>[[Category:DocTypeScript]]</noinclude>

Latest revision as of 21:55, 3 December 2007