Difference between revisions of "Template:Incomplete"
m |
Onizuka-gto (talk | contribs) m (→Usage) |
||
(14 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | <div style=" width:25%; border:10px solid white; clear:both; float:right; text-align:center;"> |
||
− | {| class="wikitable" style="text-align:left; margin:1em auto 1em auto;<!--Center Alignment of Table--> clear:both; font-size:100%; background:#E6F2FF; font-weight:900" |
||
+ | <div style=" width:100%; border:2px solid black;"> |
||
− | | style="background:#cee0f2;" align="center"|<big>Status: Incomplete</big> |
||
+ | <p> |
||
− | {{#if:{{{percentage|}}}|<!--then:-->{{Incomplete/Box|{{{percentage}}}% completed}}|}}{{#if:{{{pages|}}}|<!--then:--> |
||
+ | <big> |
||
− | {{Incomplete/Box|Pages {{{pages}}} done}}|}}{{#if:{{{parts|}}}|<!--then:--> |
||
+ | '''{{{text|Status: Incomplete}}}''' |
||
− | {{Incomplete/Box|Parts {{{parts}}} done}}|}} |
||
+ | </big> |
||
− | |- |
||
+ | </p> |
||
− | |}<noinclude> |
||
+ | <div style=" width:75%; clear:both; {{#ifeq: {{{center|yes}}} | yes | margin:auto; text-align:center;}}"> |
||
+ | {{#if:{{{percentage|}}}|<!--then:--> |
||
+ | <div> |
||
+ | <p> |
||
+ | <big> |
||
+ | '''{{#expr: ( {{{percentage|0}}} / 100 ) * 100 round 1}}%''' |
||
+ | </big> |
||
+ | {{{text|completed <small>(estimated)</small>}}} |
||
+ | </p> |
||
+ | <p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;"> |
||
+ | <span style=" |
||
+ | width: {{#expr: {{{percentage|0}}} / 100 * 100}}%; |
||
+ | height: {{{height|8}}}px; |
||
+ | background:{{{color1|#5FDB00}}}; |
||
+ | float:left; |
||
+ | "> </span> |
||
+ | <span style=" |
||
+ | width:{{#expr: 100 - {{{percentage|0}}} / 100 * 100}}%; |
||
+ | height:{{{height|8}}}px; |
||
+ | background:{{{color2|#efefef}}}; |
||
+ | float:left; |
||
+ | "> </span> |
||
+ | </p> |
||
+ | </div>|}}{{#if:{{{pages|}}}|{{#if:{{{tpages|}}}|<!--then:--> |
||
+ | <div> |
||
+ | <p> |
||
+ | <big> |
||
+ | '''{{{text| {{{pages|0}}}/{{{tpages|1}}} }}}''' |
||
+ | </big> |
||
+ | {{{text|pages completed}}} |
||
+ | </p> |
||
+ | <p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;"> |
||
+ | <span style=" |
||
+ | width: {{#expr: ( {{{pages|0}}} / {{{tpages|1}}} ) * 100}}%; |
||
+ | height: {{{height|8}}}px; |
||
+ | background:{{{color1|#5FDB00}}}; |
||
+ | float:left; |
||
+ | "> </span> |
||
+ | <span style=" |
||
+ | width:{{#expr: 100 - ( {{{pages|0}}} / {{{tpages|1}}} ) * 100}}%; |
||
+ | height:{{{height|8}}}px; |
||
+ | background:{{{color2|#efefef}}}; |
||
+ | float:left; |
||
+ | "> </span> |
||
+ | </p> |
||
+ | </div>|}}|}}{{#if:{{{parts|}}}|{{#if:{{{tparts|}}}|<!--then:--> |
||
+ | <div> |
||
+ | <p> |
||
+ | <big> |
||
+ | '''{{{text|{{{parts|0}}}/{{{tparts|1}}} }}}''' |
||
+ | </big> |
||
+ | {{{text|parts completed}}} |
||
+ | </p> |
||
+ | <p style="border:{{{border|1px solid gray}}}; padding:{{{padding|1px}}}; overflow:hidden;"> |
||
+ | <span style=" |
||
+ | width: {{#expr: {{{parts|0}}} / {{{tparts|1}}} * 100}}%; |
||
+ | height: {{{height|8}}}px; |
||
+ | background:{{{color1|#5FDB00}}}; |
||
+ | float:left; |
||
+ | "> </span> |
||
+ | <span style=" |
||
+ | width:{{#expr: 100 - {{{parts|0}}} / {{{tparts|1}}} * 100}}%; |
||
+ | height:{{{height|8}}}px; |
||
+ | background:{{{color2|#efefef}}}; |
||
+ | float:left; |
||
+ | "> </span> |
||
+ | </p> |
||
+ | </div>|}}|}} |
||
+ | </div> |
||
+ | <div style=" clear:both; {{#ifeq: {{{center|yes}}} | yes | margin:auto; text-align:center;"> |
||
+ | {{#if:{{{comments|}}}|<!--then:--> |
||
+ | <p> |
||
+ | <big> |
||
+ | '''{{{text|{{{comments}}}}}}''' |
||
+ | </big> |
||
+ | </p>|}} |
||
+ | </div> |
||
+ | </div> |
||
+ | </div><noinclude> |
||
---- |
---- |
||
==Purpose== |
==Purpose== |
||
Line 11: | Line 90: | ||
==Usage== |
==Usage== |
||
+ | Simply write: |
||
− | Simply write <nowiki>{{Incomplete|percentage="Insert Percentage Number Here"|pages="Insert Page Completion Fraction Here"|parts="Insert number of completed parts over(/) total parts here"}}</nowiki>. (no speechmarks) |
||
+ | |||
+ | <nowiki>{{Incomplete|percentage="Insert Percentage Number Here"|pages="Insert Number of Pages '''Completed''' Here"|tpages="Insert '''Total''' Number of Pages Here"|parts="Insert Number of '''Completed''' Parts Here"|tparts="Insert '''Total''' Number of Parts Here"|comments="Insert Comments here"}}</nowiki>. |
||
+ | |||
+ | (no speechmarks) |
||
And you shall have the template inserted displaying the required info. You can chose not to add the "pages" parameter. |
And you shall have the template inserted displaying the required info. You can chose not to add the "pages" parameter. |
||
+ | |||
+ | <big>'''Note:''' The ''comments'' parameter must be used as little as possible, preferably if there is no other choice. The reason is that it has the potential to stretch the box beyond the page and thus distort the template.</big> |
||
+ | |||
+ | ==Examples== |
||
+ | |||
+ | |||
+ | <nowiki>{{Incomplete}}</nowiki> |
||
+ | {{Incomplete}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|percentage=20}}</nowiki> |
||
+ | {{Incomplete|percentage=20}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|pages=20|tpages=100}}</nowiki> |
||
+ | {{Incomplete|pages=20|tpages=100}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|parts=1|tparts=5}}</nowiki> |
||
+ | {{Incomplete|parts=1|tparts=5}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|comments=Pending TLC/Delayed/etc}}</nowiki> |
||
+ | {{Incomplete|comments=Pending TLC/Delayed/etc}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|percentage=20|pages=20|tpages=100}}</nowiki> |
||
+ | {{Incomplete|percentage=20|pages=20|tpages=100}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|pages=20|tpages=100|parts=1|tparts=5}}</nowiki> |
||
+ | {{Incomplete|pages=20|tpages=100|parts=1|tparts=5}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki> |
||
+ | {{Incomplete|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|percentage=20|comments=Pending TLC/Delayed/etc}}</nowiki> |
||
+ | {{Incomplete|percentage=20|comments=Pending TLC/Delayed/etc}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5}}</nowiki> |
||
+ | {{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki> |
||
+ | {{Incomplete|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|percentage=20|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki> |
||
+ | {{Incomplete|percentage=20|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|percentage=20|pages=20|tpages=100|comments=Pending TLC/Delayed/etc}}</nowiki> |
||
+ | {{Incomplete|percentage=20|pages=20|tpages=100|comments=Pending TLC/Delayed/etc}} |
||
+ | <br clear="both" /> |
||
+ | |||
+ | <nowiki>{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}</nowiki> |
||
+ | {{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}} |
||
+ | <br clear="both" /> |
||
+ | [[Category:Templates]] |
||
</noinclude> |
</noinclude> |
Latest revision as of 16:37, 9 September 2014
Status: Incomplete
Purpose
Normally completion perentage/progress is displayed on the main LH page. But what about when you are reading from chapter page to chapter page using the nav links? This way you can see the progress on the page itself rather than going to the main page just to see if that is all in the chapter since there are no nav links/template at the bottom (translators often forget to add that).
Usage
Simply write:
{{Incomplete|percentage="Insert Percentage Number Here"|pages="Insert Number of Pages '''Completed''' Here"|tpages="Insert '''Total''' Number of Pages Here"|parts="Insert Number of '''Completed''' Parts Here"|tparts="Insert '''Total''' Number of Parts Here"|comments="Insert Comments here"}}.
(no speechmarks)
And you shall have the template inserted displaying the required info. You can chose not to add the "pages" parameter.
Note: The comments parameter must be used as little as possible, preferably if there is no other choice. The reason is that it has the potential to stretch the box beyond the page and thus distort the template.
Examples
{{Incomplete}}
Status: Incomplete
{{Incomplete|percentage=20}}
Status: Incomplete
20% completed (estimated)
{{Incomplete|pages=20|tpages=100}}
Status: Incomplete
20/100 pages completed
{{Incomplete|parts=1|tparts=5}}
Status: Incomplete
1/5 parts completed
{{Incomplete|comments=Pending TLC/Delayed/etc}}
Status: Incomplete
Pending TLC/Delayed/etc
{{Incomplete|percentage=20|pages=20|tpages=100}}
Status: Incomplete
20% completed (estimated)
20/100 pages completed
{{Incomplete|pages=20|tpages=100|parts=1|tparts=5}}
Status: Incomplete
20/100 pages completed
1/5 parts completed
{{Incomplete|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
Status: Incomplete
1/5 parts completed
Pending TLC/Delayed/etc
{{Incomplete|percentage=20|comments=Pending TLC/Delayed/etc}}
Status: Incomplete
20% completed (estimated)
Pending TLC/Delayed/etc
{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5}}
Status: Incomplete
20% completed (estimated)
20/100 pages completed
1/5 parts completed
{{Incomplete|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
Status: Incomplete
20/100 pages completed
1/5 parts completed
Pending TLC/Delayed/etc
{{Incomplete|percentage=20|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
Status: Incomplete
20% completed (estimated)
1/5 parts completed
Pending TLC/Delayed/etc
{{Incomplete|percentage=20|pages=20|tpages=100|comments=Pending TLC/Delayed/etc}}
Status: Incomplete
20% completed (estimated)
20/100 pages completed
Pending TLC/Delayed/etc
{{Incomplete|percentage=20|pages=20|tpages=100|parts=1|tparts=5|comments=Pending TLC/Delayed/etc}}
Status: Incomplete
20% completed (estimated)
20/100 pages completed
1/5 parts completed
Pending TLC/Delayed/etc