Difference between revisions of "Template:DT Category"
From FollowTheScore
(New page: <includeonly> {{{doc|}}} {{#dpl:|namespace=Category|skipthispage=false|category=DocType|format=«small»- ,%TITLE% - ,,new..«/small»}} {|cellspaci...) |
|||
Line 2: | Line 2: | ||
{{{doc|}}} | {{{doc|}}} | ||
− | {{#dpl:|namespace=Category|skipthispage=false|category=DocType| | + | <small>{{#dpl:|debug=1|namespace={{DT Language|Category}}|skipthispage=false|category=DocType|ordermethod=sortkey|mode=inline|shownamespace=no}} |
+ | - [[Template:DT Type create|new Type]]..</small> | ||
{|cellspacing=0 cellpadding=0 | {|cellspacing=0 cellpadding=0 | ||
− | | | + | |{{#form: name= track |action={{SCRIPTPATH}}/index.php| |
− | {{#form: | + | {{#input: name= title |type= hidden | value = Special:Call/Category:{{{cat}}} }} |
− | {{#input: name= title |type= hidden | ||
{{#input: name= cat |type= hidden | value = {{{cat}}} }} | {{#input: name= cat |type= hidden | value = {{{cat}}} }} | ||
− | + | {{{viewcriteria|}}} | |
− | + | {{#input: type = submit | value = filter }} <small>[[:Category:{{{cat}}}|reset]]</small> | |
}} | }} | ||
| | | | ||
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 | ||
}} | }} | ||
− | |||
− | |||
|} | |} | ||
<!-------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------> | ||
{{#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:{{{ | + | |{{#if:{{{viewselect|}}}|includematch=/{{{viewselect}}}/s}} |
− | |table=class=sortable,-,{{{cat}}},{{{ | + | |table=class=sortable,-,{{{cat}}},{{{viewfields|}}} |
}} | }} | ||
− | <small> | + | <small>Export: [{{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 XML,type={{{cat}}},title=,namespace={{{namespace|}}}|XML]] Reports: <!-- |
− | [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}. | + | --------------------------------------- find reports for the current type |
− | | + | -->{{#dpl:debug=1 |
− | [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}. | + | |namespace={{DT Language|Template}} |
− | [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}} | + | |titlematch={{{cat}}}.report.% |
− | [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}. | + | |nottitlematch={{{cat}}}.report.%.% |
− | [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}. | + | |replaceintitle=/^{{{cat}}}[.]report[.]/, |
− | [{{ | + | |mode=inline |
+ | |shownamespace=no | ||
+ | }} - [[Special:Call/DT Report create,type={{{cat}}}|New report..]]</small><br> | ||
+ | <!----------------------------------------- links to meta scripts for current type | ||
+ | --><small>Meta: | ||
+ | [{{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] | ||
+ | [{{SERVER}}{{SCRIPTPATH}}/index.php?title=Template:{{{cat}}}&action=edit&preload=Template:DT_Article_Wiki_(Form)&editintro=Template:DT_Article_Wiki_(Intro){{DT Language}} Wiki] | ||
+ | [{{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] | ||
+ | [{{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] | ||
+ | [[Special:Call/DT Article Intro (Form),saveAsPage=Template:{{{cat}}}.intro,Type?={{{cat}}}|Intro]] | ||
+ | [[Special:Call/DT Article Help (Form),saveAsPage=Template:{{{cat}}}.help,Type?={{{cat}}}|Help]] | ||
+ | [[Special:Call/DT Articles list HTML (Form),saveAsPage=Template:{{{cat}}}.text,Type?={{{cat}}},Namespace?={{{namespace|}}}|HTML]] | ||
[[Special:Call/DT Scripts index,type={{{cat}}}|Scripts]] | [[Special:Call/DT Scripts index,type={{{cat}}}|Scripts]] | ||
[[:Category:DocTypeScript|DocTypeScripts]] | [[:Category:DocTypeScript|DocTypeScripts]] | ||
+ | [[:Template:DT Meta|Modell]] | ||
</small> | </small> | ||
− | {{#ifeq:{{{cat}}}|Type?||[[Category:DocType]]}}{{#if:{{{ | + | {{#ifeq:{{{cat}}}|Type?||{{#if:{{{index}}}|[[Category:DocType|{{{index}}}]]|[[Category:DocType]]}}}}{{#if:{{{supercat|}}}|[[Category:{{{supercat}}}]]}} |
</includeonly><noinclude>[[Category:DocTypeScript]]</noinclude> | </includeonly><noinclude>[[Category:DocTypeScript]]</noinclude> |