Difference between revisions of "Template:Status"

From Moegirlpedia
Jump to: navigation, search
m
(Add support for Chinese)
Line 1: Line 1:
 
<includeonly><div>{{{prefix|Status: }}}<span style="background:{{#if:{{{color|}}}|{{{color}}}|
 
<includeonly><div>{{{prefix|Status: }}}<span style="background:{{#if:{{{color|}}}|{{{color}}}|
   {{#switch:{{lc:{{{1}}}}}|fixed|done=#00c53e|rejected=#ff0000|shelve|withdraw=#AAA|#ffc418}}<!-- end_switch ; end_if(color) -->
+
   {{#switch:{{lc:{{{1}}}}}|已完成|完成|fix|fixed|done=#00c53e|拒絕|拒绝|rejected=#ff0000|擱置|搁置|shelved|撤回|withdrawn=#AAA|#ffc418}}<!-- end_switch ; end_if(color) -->
}};" {{#ifeq:{{{nospan|}}}|yes||{{#switch:{{lc:{{{1}}}}}|done|rejected|shelved=|#default=id="_new_request"}}}}>&emsp;&emsp;</span> <b>{{{2|<!--
+
}};" {{#ifeq:{{{nospan|}}}|yes||{{#switch:{{lc:{{{1}}}}}|已完成|完成|done|拒絕|拒绝|rejected|擱置|搁置|shelved=|#default=id="_new_request"}}}}>&emsp;&emsp;</span> <b>{{{2|<!--
-->{{#switch:{{lc:{{{1}}}}}|fixed|done=done|rejected=rejected|shelved=shelved|withdraw|withdraw=withdrew|{{{1|Pending}}}}}<!--
+
-->{{#switch:{{lc:{{{1}}}}}|已完成|完成|fix|fixed|done=Done|拒絕|拒绝|rejected=Rejected|擱置|搁置|shelved=Shelved|撤回|withdrawn=Withdrawn|{{{1|Pending}}}}}<!--
-->}}}</b>{{{sign|}}}</div>{{#if:{{{category|}}}|{{#switch:{{lc:{{{1}}}}}|done|fixed|rejected|shelved|withdraw=|#default=[[Category:{{{category|}}}]]}}}}</includeonly><noinclude>
+
-->}}}</b>{{{sign|}}}</div>{{#if:{{{category|}}}|{{#switch:{{lc:{{{1}}}}}|已完成|完成|done|fix|fixed|拒絕|拒绝|rejected|擱置|搁置|shelved|撤回|withdrawn=|#default=[[Category:{{{category|}}}]]}}}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 09:57, 27 August 2021

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

This template is modified from Template:Status2 from Chinese Wikipedia.

致中文使用者:中文站参数亦可使用。

Usage

{{Status}}
Status:    Pending
{{Status|<Description>}}
Status:    <Description>
{{Status|done}}
Status:    Done
{{Status|done|<Description>}}
Status:    <Description>
{{Status|done|color=blue}}
Status:    Done
{{Status|rejected}}
Status:    Rejected
{{Status|rejected|<Description>}}
Status:    <Description>
{{Status|shelved}}
Status:    Shelved
{{Status|shelved|<Description>}}
Status:    <Description>
{{Status|prefix=Progress:}}
Progress:    Pending
{{Status|prefix=}}
   Pending
{{Status|prefix=|}}
  
{{Status|color=#66CCFF}}
Status:    Pending
{{Status|prefix=Color:|color=pink|pink}}
Color:    pink

If the parameter category is specified, the page where it is located will be added to the corresponding category, and it will be automatically removed after the parameter status is set to agree or reject types.